sourcegraph / sourcegraph-public-snapshot

Code AI platform with Code Search & Cody
https://sourcegraph.com
Other
10.11k stars 1.27k forks source link

[Accessibility]: Global bypass blocks #34409

Open umpox opened 2 years ago

umpox commented 2 years ago

Audit type

General/Other

User journey audit issue

Global navigation

Problem description

We current do not have bypass blocks to quickly allow users to skip to different parts of the page. Without bypass blocks, it can mean a keyboard user might have to tab through numerous links to access obvious content, or a screen reader user might have to listen to hundreds of unnecessary words.

Expected behavior

At minimum:

Improvements:

Additional details

No response

Assigning labels

github-actions[bot] commented 2 years ago

Hey, @sourcegraph/batchers (@eseliger @LawnGnome @courier-new @adeola-ak @BolajiOlajide @malomarrec @chrispine @danielmarquespt) - we have been mentioned. Let's take a look.

felixfbecker commented 1 year ago

Instead of explicit bypass links, it's sufficient to mark up regions so that they can be skipped by assistive technologies:

Sufficient Techniques

Grouping blocks of repeated material in a way that can be skipped, using one of the following techniques:

https://www.w3.org/WAI/WCAG21/Understanding/bypass-blocks.html

We have regions marked up, so we meet the criterion. I think a further improvement that would benefit all users would be keyboard shortcuts for different regions (e.g. main, file browser, sidebar, ref panel, ...)