Closed Bug 1703173 Opened 5 years ago Closed 5 years ago

Close button in Proton info bars has no a11y label

Categories

(Firefox :: Messaging System, defect, P1)

defect

Tracking

()

VERIFIED FIXED
89 Branch
Accessibility Severity s2
Tracking Status
firefox89 --- verified
firefox90 --- verified

People

(Reporter: Jamie, Assigned: mstriemer)

References

Details

(Keywords: access, Whiteboard: [proton-infobars] )

Attachments

(2 external files)

The Close button in Proton info bars has no label for accessibility. In the previous info bars, this was provided via tooltiptext="Close this message". If the tooltip isn't considered necessary for visual UX, a label needs to be provided via aria-label="Close" or similar.

Whiteboard: [access-s2] → [proton-infobars] [access-s2]

This one is a bit tricky because message-bar (which is also used by the Add-ons manager) doesn't itself load an FTL or connect l10n, but that's where the Close button is defined. We need it to work in both cases. Should we create a new FTL or just use global/notification.ftl? is it safe to potentially call document.l10n.connectRoot twice for the same shadow root?

:mstriemer, can you perhaps help with this?

Flags: needinfo?(mstriemer)
Priority: -- → P1

I think connecting the shadow root twice throws in debug builds hence breaking the tests, but we can move the connect into message-bar. I'll put a patch up.

Assignee: nobody → mstriemer
Flags: needinfo?(mstriemer)
Status: NEW → ASSIGNED

It turns out the shadow document doesn't need its own FTL imports, the parent can
include them instead. This moves the requirement back onto the caller to ensure
that any FTL files it needs are already imported when creating a notification-message.

Depends on D111189

Pushed by mstriemer@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/35694180b37a Add an aria-label for message-bar close button r=jaws,fluent-reviewers,flod https://hg.mozilla.org/integration/autoland/rev/68d64f879903 Remove ftl adding support from notification-message r=jaws
Status: ASSIGNED → RESOLVED
Closed: 5 years ago
Resolution: --- → FIXED
Target Milestone: --- → 89 Branch

Verified as fixed using the latest Firefox 89 beta 3 and the latest Nightly 90.0a1 - the Close button has the a11 label (close-button-label =
.aria-label = Close). Verified by inspecting the Close button using the Browser Toolbox on macOS BigSur 11.2, Windows 10 x64, and Ubuntu 20.04.

Status: RESOLVED → VERIFIED
Accessibility Severity: --- → s2
Whiteboard: [proton-infobars] [access-s2] → [proton-infobars]
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: