-
-
Notifications
You must be signed in to change notification settings - Fork 3.1k
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
feat(web): add skip link to top navigation #7091
Conversation
@@ -3,6 +3,7 @@ | |||
|
|||
<section | |||
id="sidebar" | |||
tabindex="-1" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This pulls the sidebar container out of the tab order, so the next tab stop after <main>
is the first sidebar button.
nvm I see it |
What is the problem you are trying to solve here? |
@alextran1502 this is for users who use screen readers and such, to streamline their navigation. |
@alextran1502 I think the WCAG accessibility spec explains it better than I can - the first 2 paragraphs have a good explanation. https://www.w3.org/TR/UNDERSTANDING-WCAG20/navigation-mechanisms-skip.html |
Added an invisible skip link button in the top navigation bar that appears when focused for easier keyboard navigation.
Screenshots
DarkLight
![light-mode](https://private-user-images.githubusercontent.com/45583362/304509312-8e0535c2-771e-4016-a27f-0e4643e5ba0a.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MzkzNjU4NzcsIm5iZiI6MTczOTM2NTU3NywicGF0aCI6Ii80NTU4MzM2Mi8zMDQ1MDkzMTItOGUwNTM1YzItNzcxZS00MDE2LWEyN2YtMGU0NjQzZTViYTBhLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTAyMTIlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUwMjEyVDEzMDYxN1omWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWZkNTM1NmRiMTU0ZTJlYWU5NzU3YmZlYTZjZWM3ZmRmYzQ0YjQyYTI2M2M1YTg5ZjYzYjkwMWJkODc0ZjFhMDMmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.LLXAlRtNHrQPGzXXdpVu7FfOf_ZSOFxPM8zcUjiXloI)
Checklist