Improved accessibility in Slider/Navigation.tsx and UserLogos/index.tsx #944
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Addressing Issue #904 - Enhance Accessibility
On the Showcase page, users were unable to access the left and right slider navigators for displaying the previous and next company showcases. These navigators rely on left and right arrow keys for interaction.
I've added HTML attributes that allow users to tab to these sections of the page, and I've provided clear instructions for navigation. Although these elements are buttons, the instruction "use left/right arrow to navigate" should suffice for users with impairments.
Here is the change visualized. Changes were made in Slider/Navigation.tsx.
navigation.tsx.mp4
Addressing Issue #769 - Pause Logo Scrolling Animation
This issue suggested allowing users to 'pause' scrolling animated content in compliance with WCAG 2.1 Criterion 2.2.2: Pause, Stop, Hide. Here's how I resolved it:
I implemented a simple solution using React's
useState
hook, which identifies the current state of the moving content 'UserLogos'. Users can now click the container to toggle the CSSanimationPlayState
property between 'paused' and 'running'. Additionally, I've added a pointer cursor to the logo section to indicate that it's a clickable field.Here is the change visualized. Changes were made in UserLogos/index.tsx.
index.tsx.mp4