Closed Bug 1242856 Opened 10 years ago Closed 6 years ago

[a11y] Add necessary semantics to the computed styles view.

Categories

(DevTools :: Inspector, defect, P2)

defect

Tracking

(firefox79 fixed)

RESOLVED FIXED
Firefox 79
Tracking Status
firefox79 --- fixed

People

(Reporter: yzen, Assigned: MarcoZ)

References

(Blocks 1 open bug)

Details

(Keywords: access, Whiteboard: [btpp-fix-later])

Attachments

(1 file)

We should be consistent with the CSS rules inspector here and use the same semantics. It can either be a list/listbox or tree view semantics. I believe firebug has a tree. It should be in sync with the rules view of course.
Triaging (filter on CLIMBING SHOES).
Priority: -- → P2
Whiteboard: [btpp-fix-later]
Product: Firefox → DevTools

This patch does the following:

  1. Adds a semantic document role to the computed styles pane. This causes screen readers to treat it as something they can use their reading commands on for better navigation and efficiency.
  2. Gives the expansion twisties a button role and a label. I am reusing the labels introduced in an earlier patch.
  3. Turns the name portion of each property into a heading so screen reader users can quickly skip between them, regardless of their expanded status or not.
  4. Explicitly displays the status for each rule match with visually hidden text because screen readers do not pick up text from titles on simple span elements.
Assignee: nobody → mzehe
Status: NEW → ASSIGNED
Pushed by mzehe@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/88d5337be8e0 Add accessibility semantics to the computed styles view, r=gl

Whoops, forgot to actually save the test file. Also, one test is still failing locally, too. Will adjust and push again tomorrow. Sorry about that!

Flags: needinfo?(mzehe)
Pushed by mzehe@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/635d182e24be Add accessibility semantics to the computed styles view, r=gl
Status: ASSIGNED → RESOLVED
Closed: 6 years ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 79
Component: Inspector: Computed → Inspector
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: