Closed Bug 2070911 Opened 3 days ago Closed 1 day ago

The expand button for an event listener category has no accessible name

Categories

(DevTools :: Debugger, defect)

defect

Tracking

(firefox158 fixed)

RESOLVED FIXED
158 Branch
Tracking Status
firefox158 --- fixed

People

(Reporter: florian, Assigned: florian)

References

(Blocks 2 open bugs)

Details

Attachments

(1 file)

In the debugger's Event Listener Breakpoints pane, each category row starts with a button that expands and collapses the category. devtools/client/debugger/src/components/shared/EventListeners.js renders it as button.event-listener-expand containing only an arrow image, so it has no text, no title and no aria-label. a11y_checks reports Interactive elements must be labeled for it.

The category name is already displayed beside the button, so the button can take it as its aria-label at no localization cost. aria-expanded should carry the open state, which today lives only in a CSS class. A patch doing this is in hand.

button.event-listener-expand holds only an arrow image, so it had no accessible
name and nothing exposed whether its category was open. Name it after the
category text shown beside it and add aria-expanded. head.js clicks this button
on every toggleEventBreakpoint(), which is what put "Interactive elements must
be labeled" behind the annotations retired here; they cite Bug 1849028 and
Bug 1924435.

Pushed by fqueze@mozilla.com: https://github.com/mozilla-firefox/firefox/commit/638fd537f9ef https://hg.mozilla.org/integration/autoland/rev/8623c429dbb2 Give the event listener category expander an accessible name, r=devtools-reviewers,ochameau.
Status: ASSIGNED → RESOLVED
Closed: 1 day 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: