Focus a disabled item
Posted: 16 Jul 2021, 18:15
Hello,
A UX request came up to focus a disabled button. Activating the button shouldn't do anything, but we'd still like to show the focusing highlight on it?
Is there a way currently to do that nicely?
- There's a way to fake it with a disabled-looking button that does nothing and swap buttons to the real enabled one (This is is how we're doing it now).
- There's a way to make it work via a new button style that has different visual states and we just never set it to disabled.
.. I'm wondering if there's a more native way to approach it? Similar to "focusWithoutEnage", maybe "allowFocusWhenDisabled" or the like?
Cheers.
A UX request came up to focus a disabled button. Activating the button shouldn't do anything, but we'd still like to show the focusing highlight on it?
Is there a way currently to do that nicely?
- There's a way to fake it with a disabled-looking button that does nothing and swap buttons to the real enabled one (This is is how we're doing it now).
- There's a way to make it work via a new button style that has different visual states and we just never set it to disabled.
.. I'm wondering if there's a more native way to approach it? Similar to "focusWithoutEnage", maybe "allowFocusWhenDisabled" or the like?
Cheers.