The expand button for an event listener category has no accessible name
Categories
(DevTools :: Debugger, defect)
Tracking
(firefox158 fixed)
| 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.
| Assignee | ||
Comment 1•3 days ago
|
||
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.
Description
•