Closed Bug 2071268 Opened 2 months ago Closed 2 months ago

A scrollable code block or diagram cannot be scrolled with the keyboard

Categories

(Developer Infrastructure :: Source Documentation, defect)

defect

Tracking

(firefox158 fixed)

RESOLVED FIXED
158 Branch
Tracking Status
firefox158 --- fixed

People

(Reporter: dao, Assigned: dao)

References

(Blocks 1 open bug)

Details

Attachments

(1 external file)

firefox-source-docs renders wide content in scroll containers no keyboard user can reach: pre and code are not focusable, so the region scrolls by wheel or drag only, where WCAG 2.1.1 asks for keyboard operation of the same content.

On ipc/docs/ipdl.md, pre.mermaid reports tabIndex -1 and does not take focus even programmatically. A diagram has a partial escape hatch, since the mermaid extension's fullscreen button is a real button opening a scrollable modal; a code block has none.

The usual fix is tabindex="0" on the container that overflows, which wants a few lines of JS in docs/_addons/ for the diagrams and a theme-level answer for the code blocks, whose scroll containers predate bug 2071258.

ipc/docs/ipdl.md is the page to build and open. Twenty of its forty scroll containers overflow at the 442px column a 982px window gives, and those twenty are the ones that take focus; widening the window until the column reaches 891px leaves two.

Assignee: nobody → dao+bmo
Status: NEW → ASSIGNED
Pushed by dgottwald@mozilla.com: https://github.com/mozilla-firefox/firefox/commit/eaea042471bf https://hg.mozilla.org/integration/autoland/rev/f546a4efbe1e Make a scrolled code block or diagram reachable with the keyboard. r=sylvestre,firefox-source-docs-reviewers
Status: ASSIGNED → RESOLVED
Closed: 2 months ago
Resolution: --- → FIXED
Target Milestone: --- → 158 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: