Closed Bug 1887170 Opened 3 months ago Closed 18 days ago

Moz-message-bar container is missing accessible name that prevents the static text to be announced

Categories

(Toolkit :: UI Widgets, defect, P2)

defect

Tracking

()

RESOLVED WORKSFORME
Accessibility Severity s2

People

(Reporter: ayeddi, Assigned: ayeddi)

References

Details

(Keywords: access)

Attachments

(3 files, 1 obsolete file)

The moz-message-bar is marked up as a group (with role=alert) but the accessible name for the group is missing causing the screen reader users to miss the static text content when navigated to the controls within the group, i.e. by pressing Tab.

Note: VoiceOver would be able to navigate back to the static text to review it, but it's still not an expected behavior. Other screen readers may not be able to announce this because the message bar is included in the xul container.

We could add a unique id to the message container span and refer to it from the message content container with aria-labelledby and by adding to this container role=group.

Ideally, the role=alert container would get the label, but for the nested modules the ID reference won't be visible during the name calculation and it'll be ignored.

The moz-message-bar is marked up as a group (with role=alert) but the accessible name for the group is missing causing the screen reader users to miss the static text content when navigated to the controls within the group, i.e. by pressing Tab.

By adding a grouping on the inner message container (that will be rendered within the same root) and refer to the message text as its accessible name, we'll ensure the grouping information (the static text which is the context for all the included controls) would be announced to screen reader users.

Assignee: nobody → ayeddi
Status: NEW → ASSIGNED
Severity: -- → S3
Priority: -- → P2

The severity field for this bug is set to S3. However, the accessibility severity is higher, .
:ayeddi, could you consider increasing the severity?

For more information, please visit BugBot documentation.

Flags: needinfo?(ayeddi)
Flags: needinfo?(ayeddi)
Attachment #9392843 - Attachment is obsolete: true

Thank you all for the productive feedback and conversation in the patch!

I've tested a few moz-message-bars, with one of nimbus/heartbeat ones that I encountered on Windows recent Nightly with NVDA running, and all of them were announced when a focus is placed on a control within the bar - this has been changed with the bug 1894535 fix that added role=alert to the container.

For example: Choose what I share or Open Nightly every time you restart your computer message bars (attached) that I took a screenshot of with the NVDA output clearly reading all alert's content .

I've abandoned the revision and will close the bug as WFM.

If there would be any message bars discovered that are not fully reading their content for some reason, we could always re-open the bug or open a new one and return to the grouping and label approach as a fail-safe.

Status: ASSIGNED → RESOLVED
Closed: 18 days ago
Depends on: 1894535
Resolution: --- → WORKSFORME
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: