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
Unfortunately the workaround has a couple minor limitations:
The icon can still be clicked. That behavior still existed in v5 with the addition that the icon now moves when clicked:
Screen.Recording.2022-06-13.at.6.08.19.PM.mov
When the control is disabled, the tooltip still works:
Screen.Recording.2022-06-13.at.6.11.04.PM.mov
It is however still better than not working at all, so we'll use this for the time being. Thanks!
EDIT: I just noticed that we have the issue when disabled on v5 as well, because we are adding the tooltip ourselves.
How would you feel about supporting tooltips in labels like this directly? I know it's dependent on Clarity Core having a tooltip itself, but it would be great if control actions were not limited to click events, we tend to use this a lot at CloudHealth.
Describe the bug
We use the
CdsControlAction action="label"
component to display an ℹ️ icon next to the label, with a tooltip to add information. For example:This worked fine and well in v5, but starting with v6, we are experiencing 2 issues:
The icon does not get vertically centered anymore:
vs.
The tooltip simply does not appear anymore.
How to reproduce
https://codesandbox.io/s/input-tooltip-issue-v6-qohlfv?file=/src/App.tsx
Steps to reproduce the behavior: Simply hover over the ℹ️ icon, the tooltip does not appear. It does work fine outside an input.
Expected behavior
For reference: https://codesandbox.io/s/input-tooltip-issue-v5-nrjekz?file=/src/App.tsx
Versions
Clarity project:
Clarity version:
Framework:
Framework version:
React 17
The text was updated successfully, but these errors were encountered: