open-ui icon indicating copy to clipboard operation
open-ui copied to clipboard

[interest invokers] Should interesttarget work on disabled form controls?

Open lukewarlow opened this issue 1 year ago • 4 comments
trafficstars

@keithamus mentioned this during review of the initial implementation. Disabled buttons right now can't be focused (at least using the tab key with the default <button disabled>Foo</button> markup). So interest might only work for specific input modalities if we were to allow disabled elements?

lukewarlow avatar Feb 25 '24 21:02 lukewarlow

@scottaohara I would be especially curious for your input here.

lukewarlow avatar Feb 25 '24 21:02 lukewarlow

this seems like it'd legitimize an unfortunate design trend to provide tooltips for disabled controls that often then can't be accessed by everyone since the element is disabled.

one could argue that the title attribute tooltip appears on hover over disabled controls - but... if that person knows anything about the a11y/ux issues of the title attribute, they'd know that's a big opening to rip their argument apart.

scottaohara avatar Feb 26 '24 17:02 scottaohara

I'm going to go ahead and close this as something we don't want to allow.

lukewarlow avatar May 03 '24 18:05 lukewarlow

Actually will leave this open until the explainer is updated to explicitly disallow disabled buttons.

I think we should also update it to disallow links without a href (as they're effectively disabled).

lukewarlow avatar May 03 '24 18:05 lukewarlow