Open Bug 2026767 Opened 7 months ago Updated 6 months ago

Add disabled support to moz-box-link

Categories

(Toolkit :: UI Widgets, enhancement)

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
See Also: → 2038151

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-button instead of a moz-box-link, or;
  • hiding the moz-box-link under 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

You need to log in before you can comment on or make changes to this bug.