Close button in Proton info bars has no a11y label
Categories
(Firefox :: Messaging System, defect, P1)
Tracking
()
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.
Updated•5 years ago
|
| Reporter | ||
Comment 1•5 years ago
|
||
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?
Updated•5 years ago
|
Updated•5 years ago
|
| Assignee | ||
Comment 2•5 years ago
|
||
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 | ||
Updated•5 years ago
|
| Assignee | ||
Comment 3•5 years ago
|
||
| Assignee | ||
Comment 4•5 years ago
|
||
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
Comment 6•5 years ago
|
||
| bugherder | ||
https://hg.mozilla.org/mozilla-central/rev/35694180b37a
https://hg.mozilla.org/mozilla-central/rev/68d64f879903
Comment 7•5 years ago
|
||
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.
Updated•3 years ago
|
Description
•