Skip to content

Swap order of skip links so main content comes first #3354

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

Merged
merged 1 commit into from
Oct 23, 2024
Merged

Conversation

thatbudakguy
Copy link
Member

Some accessibility checkers, like SiteImprove, regard it as a
failure that the 'skip to main' link is not the first focusable
element on the page.

This swaps the order of the 'skip to main' and 'skip to search'
links so that 'skip to main' comes first, which is in line with
the WCAG 2.2 guidelines
(https://www.w3.org/WAI/WCAG22/Techniques/general/G1.html).

Related: sul-dlss/earthworks#1431

Some accessibility checkers, like SiteImprove, regard it as a
failure that the 'skip to main' link is not the first focusable
element on the page.

This swaps the order of the 'skip to main' and 'skip to search'
links so that 'skip to main' comes first, which is in line with
the WCAG 2.2 guidelines
(https://www.w3.org/WAI/WCAG22/Techniques/general/G1.html).

Related: sul-dlss/earthworks#1431
@jcoyne
Copy link
Member

jcoyne commented Oct 10, 2024

While this may satisfy automated accessibility checkers, I suspect the first interaction people will use in a Blacklight site is the "Search". So I wonder if this would cause a regression in usability for keyboard users.

@cbeer
Copy link
Member

cbeer commented Oct 22, 2024

This makes sense to me. If we want to make it easier to get to search, that seems like a good opportunity for keyboard shortcuts using javascript + https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Attributes/aria-keyshortcuts?

@jcoyne jcoyne merged commit d486e1a into main Oct 23, 2024
10 checks passed
@jcoyne jcoyne deleted the skip-links-order branch October 23, 2024 12:10
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.

3 participants