blacklight icon indicating copy to clipboard operation
blacklight copied to clipboard

Swap order of skip links so main content comes first

Open thatbudakguy opened this issue 1 year ago • 1 comments

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: https://github.com/sul-dlss/earthworks/issues/1431

thatbudakguy avatar Oct 09 '24 17:10 thatbudakguy

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.

jcoyne avatar Oct 10 '24 16:10 jcoyne

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?

cbeer avatar Oct 22 '24 14:10 cbeer