Page MenuHomePhabricator

Make ULS language panel keyboard accessible at the personal bar
Open, Needs TriagePublic

Description

Universal Language Selector trigger in personal bar (like one on mediawiki.org), language settings cog icon (T52575), and the language selector for the Compact Language Links (T70075) are all keyboard accessible. Recent efforts are made to increase the keyboard accessibility of the panels opened from those triggers.

Language settings panel and its associated 'Display' and 'Input' tabs should be accessible after T52793: Make ULS accessible from keyboard.

For the rest of the panels, following behaviors are observed in production:

  • CLL has decent keyboard accessibility:
    • You can open language selector with Enter/Space when CLL trigger has focus
    • Using TAB switches from input field to list of results immediately or after completing the placeholder
    • Once the focus is moved from input field to language list, scrolling works fine with keyboard arrows, page up/down and home/end keys
  • ULS in personal bar has limited keyboard accessibility:
    • Language selector can be opened using Enter (but not with Space) when trigger has focus
    • When input field has focus, tabbing leads you away from the ULS panel altogether
    • Clicking on the language results panel (on the panel itself, not on any language link) gives ability to use keyboard arrows, page up/down and home/end keys, but there doesn't seem to be the way to get focus for any of the languages on the list

As noted, arrow keys serve good role in scrolling the language results panel (once it receives focus), but navigating through the list of languages using keyboard arrows may be desired behavior and certainly one I expected many times as user.

Expected results: ULS (in personal bar) should have at least same accessibility features as CLL one and using arrows to navigate through the list of languages could be considered.

Event Timeline

Restricted Application added a subscriber: Aklapper. · View Herald TranscriptFeb 5 2018, 7:11 PM
Pginer-WMF updated the task description. (Show Details)Feb 6 2018, 7:23 AM

The patch for T52793: Make ULS accessible from keyboard currently also changes the triggers (e.g. fixing Language selector can be opened using Enter (but not with Space) when trigger has focus).

To me it seems the main issue you are reporting is that from non-CLL entry point it is not possible to tab into the list of languages, is that correct?

To me it seems the main issue you are reporting is that from non-CLL entry point it is not possible to tab into the list of languages, is that correct?

Yes, that is correct.

The other part is being able to use keyboard arrows to navigate through the list of languages (give focus to different language links). But, that is in contrast with current behavior when using arrows, which might be more natural.

Pginer-WMF renamed this task from Make ULS language panel keyboard accessible to Make ULS language panel keyboard accessible at the personal bar .Feb 6 2018, 9:40 AM
tstarling added a subscriber: tstarling.

This is probably a WCAG 2.0 SC 2.1.1 conformance failure. You can type the language name, but if "suggested languages" counts as functionality then it's a violation to not give keyboard access to it.

Volker_E moved this task from Unsorted to Tabindex on the Accessibility board.Apr 30 2018, 7:58 PM
Volker_E moved this task from Tabindex to Access keys / keyboard on the Accessibility board.