Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Swipe Slide #2

Merged
merged 7 commits into from
Jun 22, 2024
Merged

Swipe Slide #2

merged 7 commits into from
Jun 22, 2024

Conversation

lucasferreiralimax
Copy link
Member

Update

Adding Swipe Functionality and ARIA Attributes to SlideContent

Enhances the SlideContent component by adding swipe gesture functionality using HammerJS. It allows users to navigate through slides by swiping left or right on touch-enabled devices. Additionally, ARIA attributes have been incorporated to improve accessibility.

Changes Made:

  • Implemented swipe gestures (left and right) using HammerJS for SlideContent component.
  • Added panstart, pan, and panend event handlers to detect swipe gestures and trigger slide navigation accordingly.
  • Introduced ARIA attributes (aria-hidden, aria-labelledby) to indicate slide visibility and describe the purpose of interactive elements, enhancing accessibility for users of assistive technologies.

Technical Details:

  • Integrated HammerJS library for gesture recognition.
  • Used Angular's ViewChild to access DOM elements and manage slide navigation.
  • Incorporated ARIA roles and attributes to improve accessibility compliance.

Checklist:

  • Implemented swipe gestures using HammerJS.
  • Added ARIA attributes (aria-hidden, aria-labelledby) for accessibility.

@lucasferreiralimax lucasferreiralimax added the enhancement New feature or request label Jun 22, 2024
@lucasferreiralimax lucasferreiralimax self-assigned this Jun 22, 2024
Copy link

Visit the preview URL for this PR (updated for commit 0266558):

https://slidecontent-angularjs--pr2-swipe-slide-ns4oux93.web.app

(expires Sat, 29 Jun 2024 08:16:46 GMT)

🔥 via Firebase Hosting GitHub Action 🌎

Sign: a46849f54b15ddea5d3d183b8d030d20fc154f13

@lucasferreiralimax lucasferreiralimax merged commit bf421b6 into master Jun 22, 2024
2 checks passed
@lucasferreiralimax lucasferreiralimax deleted the swipe-slide branch June 22, 2024 08:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant