Add disabled support to moz-box-link
Categories
(Toolkit :: UI Widgets, enhancement)
Tracking
()
People
(Reporter: akulyk, Unassigned)
References
(Blocks 1 open bug)
Details
(Whiteboard: [recomp])
In some settings layouts, moz-box-link elements can be nested inside form controls such as inputs or fieldsets (like in Firefox Home). When the parent control is disabled, any nested moz-box-link should also be disabled to ensure consistent behavior.
A disabled moz-box-link should:
- Match the visual styling of a disabled moz-box-button
- Not be focusable
- Not be clickable
Updated•7 months ago
|
Comment 1•6 months ago
|
||
This write up does a good job explaining some of the complexities around disabling links in an accessible way: https://www.scottohara.me/blog/2021/05/28/disabled-links.html
Since a disabled link isn't a thing that's supported natively, any case where we need to do this is probably a sign that we should either be:
- using a
moz-box-buttoninstead of amoz-box-link, or; - hiding the
moz-box-linkunder certain conditions
We might want to close this out, or we can keep it open to track cases where we're finding the need for a disabled link, but I don't really think this is something we want to support in moz-box-link
Description
•