Closed Bug 1780713 Opened 2 years ago Closed 2 years ago

XUL buttons with type="checkbox" have incorrect a11y exposure

Categories

(Core :: Disability Access APIs, defect)

defect

Tracking

()

RESOLVED FIXED
105 Branch
Tracking Status
firefox105 --- fixed

People

(Reporter: Jamie, Assigned: Jamie)

References

(Blocks 1 open bug)

Details

Attachments

(1 file)

Currently, they're exposed with role button and state checkable, which causes NVDA to report, for example, "pressed not checked" when the checked attribute is true. Since we want to use the pressed state here, we must use role toggle button and not expose the checkable state. This is consistent with how we expose ARIA role="button" with aria-pressed.

  1. Expose role TOGGLE_BUTTON without the CHECKABLE state.
  2. Fire a state change event when the button is toggled.
Pushed by jteh@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/2dbe225977cd
Fix a11y exposure of checkable XUL buttons/toolbarbuttons. r=eeejay
Status: NEW → RESOLVED
Closed: 2 years ago
Resolution: --- → FIXED
Target Milestone: --- → 105 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: