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

feat(web): add skip link to top navigation #7091

Merged
merged 3 commits into from
Feb 18, 2024

Conversation

ben-basten
Copy link
Member

@ben-basten ben-basten commented Feb 13, 2024

Added an invisible skip link button in the top navigation bar that appears when focused for easier keyboard navigation.

Screenshots Dark

dark-mode

Light
light-mode

Checklist

  • npm run lint (linting via ESLint)
  • npm run format (formatting via Prettier)
  • npm run check:svelte (Type checking via SvelteKit)
  • npm test (Tests via Jest)

@@ -3,6 +3,7 @@

<section
id="sidebar"
tabindex="-1"
Copy link
Member Author

@ben-basten ben-basten Feb 13, 2024

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.

@alextran1502
Copy link
Contributor

alextran1502 commented Feb 13, 2024

Can you help including a screenshot?

nvm I see it

@alextran1502
Copy link
Contributor

What is the problem you are trying to solve here?

@bo0tzz
Copy link
Member

bo0tzz commented Feb 13, 2024

@alextran1502 this is for users who use screen readers and such, to streamline their navigation.

@ben-basten
Copy link
Member Author

@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

@alextran1502 alextran1502 merged commit 9c1dd37 into immich-app:main Feb 18, 2024
24 checks passed
@ben-basten ben-basten deleted the feat/skip-link-only branch March 5, 2024 12:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants