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

Fix #999 Add skip to content link on Home, Slide and Info Pages for accessibility #1055

Open
wants to merge 3 commits into
base: develop
Choose a base branch
from

Conversation

chandrikarj
Copy link

Add skip to content link on Home, Slide and Info Pages for easier accessibility and better navigation

Summary

This pull request adds a "Skip to Content" link to the Home, Slides, and Info pages to improve accessibility. The link allows users to bypass the navigation menu and directly focus on the main content, enhancing the experience for keyboard and screen reader users.

Key changes include:

Added a visually styled "Skip to Content" link at the top of the element.
Ensured the link points to the appropriate id of the main content in each page.
Styled the link for visibility when focused and for a clean appearance.

Screenshots:

after-caMicroscope.mov

GIF of the changes:

after_caMicroscope

Motivation

This change addresses accessibility issues highlighted in #999 . It ensures the website adheres to accessibility standards and improves navigation for users relying on keyboards or assistive technologies.

Testing

Verified functionality on Home, Slides, and Info pages by:
Pressing Tab to focus on the "Skip to Content" link.
Observing that pressing Enter moves the focus directly to the main content.
Tested styling changes to ensure the link is visually unobtrusive but noticeable when focused.
Verified no disruptions to existing functionality.

Questions

Any feedback or suggestions for improvement are welcome.

Copy link
Member

@birm birm left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm not seeing this button consistently when I test this, see below with similar results on other pages.

Screen.Recording.2025-01-22.at.10.42.37.PM.mov

@chandrikarj
Copy link
Author

Hi @birm,

The button is normally hidden but appears when the user presses the Tab key for the first time after landing on the page. It is hidden again after the user presses on it and skips to the content of the page. After that, it will show up again if the user navigates through all the links in the content using the Tab key. This behavior is same on the Slides and Info pages.

If you'd prefer to have it displayed permanently, I can make that change. Thanks!

Screen.Recording.2025-01-25.at.8.16.10.PM.mov

@chandrikarj chandrikarj requested a review from birm January 25, 2025 15:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants