Using Tooltips on disabled Buttons #1247
-
Hello! Admiral has a design pattern where a disabled button has a tooltip to tell the user why. The above example is created, using Paste, like this: Because a disabled button triggers no events. Could an exception be made to allow Tooltips to function on disabled Buttons? Having a This is especially relevant because the docs recommend having a working button that returns an error after clicking, which is unreasonable for this use-case. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
Hi @jaakerisalu, For some background on why this doesn't work and possible workarounds, please see Simon's reponse to this discussion thread. |
Beta Was this translation helpful? Give feedback.
-
Hey @jaakerisalu! Good question. As of right now, we’re not ready to provide the Take a look at the response linked above by Shadi where you'll find some alternative solutions. We also have a short video outlining guidance on our Tooltip/Popover components that we’ll share once it’s ready (probably later today). |
Beta Was this translation helpful? Give feedback.
Hey @jaakerisalu! Good question. As of right now, we’re not ready to provide the
variant='disabled'
option to Button. While it is possible from an engineering standpoint, the web accessibility community is hesitant (see links below). Because it’s not expected behavior for a disabled element to provide any type of interactivity, we’re erring on the side of caution and sticking with the HTML spec for the time being. However, it’s possible that this may change in the future depending on need.Take a look at the response linked above by Shadi where you'll find some alternative solutions. We also have a short video outlining guidance on our Tooltip/Popover components that we’ll share once it’s…