You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I wonder if the title attribute is enough or if there is any particular reason you still need a tooltip.
Great question, @miukimiu. From my perspective, I believe using an EuiToolTip would be preferable from a consistency and discoverability standpoint. In Lens, most disabled buttons (excluding those in EuiButtonGroup) and inputs utilize EuiToolTip to explain why that element is disabled and how it can be re-enabled. EuiToolTip also allows us to choose between long and short hover delays. Using native browser tooltips via the title attribute on some elements in Lens would introduce a level of inconsistency into the experience. It also doesn't allow us any control over the delay of the tooltip appearing (in which case, they always show after a fairly lengthy delay).
I'd prefer not to add tooltips to disabled buttons. We use the HTML disabled attribute, so the button won't take keyboard focus. This prevents users who navigate by keyboard and use screen readers from accessing the tooltip information.
This is an excellent point, and one that actually extends beyond this request for tooltips on EuiButtonGroup buttons (as this applies to any disabled EuiButtons using a tooltip). When a button element uses the disabled attribute, the tooltips can't be triggered via keyboard focus, as focus is prevented in a disabled state (though hover is still supported, hence why hovering with the mouse still triggers the tooltip). In reading up on the issue, I found a CSS Tricks article that attempts to remedy this issue by switching out the disabled attribute for aria-disabled.
Any thoughts on such an approach (in addition to the core question of whether we are able and willing to add tooltip support for EuiButtonGroup buttons)?
👋 Hey there. This issue hasn't had any activity for 180 days. We'll automatically close it if that trend continues for another week. If you feel this issue is still valid and needs attention please let us know with a comment.
👋 Hi there - this issue hasn't had any activity in 6 months. If the EUI team has not explicitly expressed that this is something on our roadmap, it's unlikely that we'll pick this issue up. We would sincerely appreciate a PR/community contribution if this is something that matters to you! If not, and there is no further activity on this issue for another 6 months (i.e. it's stale for over a year), the issue will be auto-closed.
Hey team, just adding my +1 here on liking to see this prioritized if possible. We recently did a big design refresh in Discover that uses EuiButtonGroup for a number of new controls, and the inconsistency between the tooltips on these buttons and all other buttons in our app takes away from the experience a bit. I wouldn't say it's necessarily a "high" priority on our end, but it would be great to see this in the near future if possible to help add some polish to our design refresh:
👋 Thank you for your suggestion or request! While the EUI team agrees that it's valid, it's unlikely that we will prioritize this issue on our roadmap. We'll leave the issue open if you or anyone else in the community wants to implement it by contributing to EUI. If not, this issue will auto close in one year.
Activity
[-][EuiButtonGroup][/-][+][EuiButtonGroup] add tooltip support[/+]elizabetdev commentedon Oct 17, 2022
Hi @andrewctate,
Each button in a
EuiButtonGroupsupports an HTMLtitleattibute as we can see on the following example. https://codesandbox.io/s/happy-wilson-uik4bz?file=/demo.js.I wonder if the
titleattribute is enough or if there is any particular reason you still need a tooltip.MichaelMarcialis commentedon Oct 17, 2022
Great question, @miukimiu. From my perspective, I believe using an
EuiToolTipwould be preferable from a consistency and discoverability standpoint. In Lens, most disabled buttons (excluding those inEuiButtonGroup) and inputs utilizeEuiToolTipto explain why that element is disabled and how it can be re-enabled.EuiToolTipalso allows us to choose between long and short hover delays. Using native browser tooltips via thetitleattribute on some elements in Lens would introduce a level of inconsistency into the experience. It also doesn't allow us any control over the delay of the tooltip appearing (in which case, they always show after a fairly lengthy delay).Another great comment came in a previous Slack conversation between @andrewctate and @1Copenut. In it, @1Copenut mentioned the following:
This is an excellent point, and one that actually extends beyond this request for tooltips on
EuiButtonGroupbuttons (as this applies to any disabledEuiButtonsusing a tooltip). When a button element uses thedisabledattribute, the tooltips can't be triggered via keyboard focus, as focus is prevented in a disabled state (though hover is still supported, hence why hovering with the mouse still triggers the tooltip). In reading up on the issue, I found a CSS Tricks article that attempts to remedy this issue by switching out thedisabledattribute foraria-disabled.Any thoughts on such an approach (in addition to the core question of whether we are able and willing to add tooltip support for
EuiButtonGroupbuttons)?elizabetdev commentedon Oct 18, 2022
Thanks, @MichaelMarcialis for providing more context.
It makes sense. We'll see how we can prioritize this.
We also have plans to introduce
aria-disabledinstead of a disabled attribute: #5666.github-actions commentedon Apr 16, 2023
👋 Hey there. This issue hasn't had any activity for 180 days. We'll automatically close it if that trend continues for another week. If you feel this issue is still valid and needs attention please let us know with a comment.
MichaelMarcialis commentedon Apr 17, 2023
Still valid.
github-actions commentedon Oct 15, 2023
👋 Hi there - this issue hasn't had any activity in 6 months. If the EUI team has not explicitly expressed that this is something on our roadmap, it's unlikely that we'll pick this issue up. We would sincerely appreciate a PR/community contribution if this is something that matters to you! If not, and there is no further activity on this issue for another 6 months (i.e. it's stale for over a year), the issue will be auto-closed.
MichaelMarcialis commentedon Oct 18, 2023
I believe there is still a valid use case for supporting tooltips on individual buttons within a button group.
davismcphee commentedon Jan 12, 2024
Hey team, just adding my +1 here on liking to see this prioritized if possible. We recently did a big design refresh in Discover that uses

EuiButtonGroupfor a number of new controls, and the inconsistency between the tooltips on these buttons and all other buttons in our app takes away from the experience a bit. I wouldn't say it's necessarily a "high" priority on our end, but it would be great to see this in the near future if possible to help add some polish to our design refresh:github-actions commentedon Jan 16, 2024
👋 Thank you for your suggestion or request! While the EUI team agrees that it's valid, it's unlikely that we will prioritize this issue on our roadmap. We'll leave the issue open if you or anyone else in the community wants to implement it by contributing to EUI. If not, this issue will auto close in one year.