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 can appreciate that on click is useful and necessary for mobile devices but it's not useful for desktop, where the idea is that a tooltip provides information about the element you are hovering over.
carbon-components-svelte is still on v10 of the design system while the current version is v11.
Would have to dig through the history but I think this is according to specification.
In v11 Tooltip was sort of split up into two components: Tooltip, which should not contain interactive content and shows on hover and Toggletip, which can have interactive content and requires a click.
Tooltip, TooltipIcon, and TooltipDefinition are also receiving updates in v11 and mirror some of the changes seen in Notification. For example, Tooltips can now only contain interactive content. For situations that require interactive content, we are shipping a new component: Toggletip.
And the Toggletip docs:
New in v11: Toggletip should be used in place of tooltip if your content will contain interactive elements. If it does not have any interactive content, consider using Tooltip instead.
Discussed in #1802
Originally posted by geoidesic September 1, 2023
https://carbon-components-svelte.onrender.com/components/Tooltip
I can appreciate that on click is useful and necessary for mobile devices but it's not useful for desktop, where the idea is that a tooltip provides information about the element you are hovering over.
The one on the IBM live demo works as expected: https://carbondesignsystem.com/components/tooltip/usage/#live-demo
The text was updated successfully, but these errors were encountered: