openui / open-ui

Maintain an open standard for UI and promote its adherence and adoption.
https://open-ui.org
Other
3.55k stars 192 forks source link

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

Open lukewarlow opened 7 months ago

lukewarlow commented 7 months ago

@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 commented 7 months ago

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

scottaohara commented 7 months ago

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.

lukewarlow commented 5 months ago

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

lukewarlow commented 5 months ago

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).