Add keyboard access for messages without a CTA link
Categories
(Firefox :: Messaging System, enhancement, P1)
Tracking
()
Tracking | Status | |
---|---|---|
firefox70 | --- | fixed |
People
(Reporter: andreio, Assigned: emcminn)
References
Details
(Keywords: access, Whiteboard: [skyline])
Attachments
(1 file, 1 obsolete file)
The button is the only element you can focus on, without it you just skip the message when navigating only with the keyboard.
Comment 1•5 years ago
|
||
Comment 2•5 years ago
|
||
Do we want keyboard focus to go to both the link and the message for those that do have links? Probably not?
Comment 3•5 years ago
|
||
A quick test shows setting tabindex=0 doesn't seem to work (and curiously the text-link gets tabindex=-1 ? But setting text-link class on the div or whatever makes it tabbable although it also comes with the styling of a text-link. So perhaps alternatively, make the desired tabbable thing a <button> instead of a <div> ?
Updated•5 years ago
|
Updated•5 years ago
|
Updated•5 years ago
|
Comment 4•5 years ago
|
||
Making sure this shows up on the Skyline Accessibility radar.
Comment 5•5 years ago
|
||
Why can't you just use an a with a href attribute, AKA a normal link where a link is due? Because of restrictions with sandboxing? If that's the case, a button is probably the more appropriate element. Or a div with role="link" and tabindex="0" instead of -1. 0 will make it tabable by default. Of course, then you'd need to make sure that Enter opens the link, AKA does the same as OnClick.
Reporter | ||
Comment 6•5 years ago
|
||
We're capturing click events in order to track the events for telemetry. We're then opening the link programmatically.
Comment 7•5 years ago
|
||
Hm, then using something similar to what Jamie suggests in bug 1561334 comment #3 might help here, have you investigated that?
Updated•5 years ago
|
Assignee | ||
Comment 8•5 years ago
|
||
Replaced the message body div with an unstyled button element, which creates the correct tabbing behavior.
Assignee | ||
Comment 9•5 years ago
|
||
Updated•5 years ago
|
Updated•5 years ago
|
Comment 10•5 years ago
|
||
Pushed by khudson@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/875e7754b202 Added keyboard access to WhatsNew panel messages r=k88hudson,andreio
Comment 11•5 years ago
|
||
bugherder |
Description
•