Closed Bug 1894535 Opened 5 months ago Closed 5 months ago

Change the moz-message-bar role to alert to ensure it's announced when visibility is changed

Categories

(Toolkit :: UI Widgets, defect)

defect

Tracking

()

RESOLVED FIXED
127 Branch
Accessibility Severity s2
Tracking Status
firefox127 --- fixed

People

(Reporter: ayeddi, Assigned: ayeddi)

References

(Blocks 1 open bug)

Details

(Keywords: access)

Attachments

(1 file)

This component is used in the Selection Translation panel and the errors are not announced by a screen reader, because the <moz-message-bar> is HTML hidden until the error state - and the live region (which status role creates) is not expected to be announced on visibility change. But role alert is the special case on the Accessibility API/platform side and it would be announced to a screen reader user, without being focused.

That the role change should be a fail-safe option for all message bars. I tried it locally on macOS and Win11 and screen readers are happily doing what’s needed on the translations panel and on the about:addons where the bar is visible by default. Since this may be a more wide spread use case (un-hiding the error message dynamically when the error state is triggered) and thus I thought to bring this up for the component-level update.

This component is used in the Selection Translation panel and the errors are not announced by a screen reader, because the <moz-message-bar> is HTML hidden until the error state - and the live region (which status role creates) is not expected to be announced on visibility change. But role alert is the special case on the Accessibility API/platform side and it would be announced to a screen reader user, without being focused.

Pushed by ayeddi@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/e1684cedfdbb Change the moz-message-bar role to alert to ensure it's announced when visibility is changed. r=nordzilla,extension-reviewers,reusable-components-reviewers,translations-reviewers,hjones,willdurand
Status: NEW → RESOLVED
Closed: 5 months ago
Resolution: --- → FIXED
Target Milestone: --- → 127 Branch
Blocks: 1887170
Blocks: 1895778
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: