Tooltips in Labels don't trigger #1123
-
Hello team, maybe I'm doing something wrong but nesting a Tooltip inside of a Label doesn't seem to let it trigger (focuses on the label instead). <Label htmlFor="addressRequirement">
<Box display="flex" alignItems="center">
<Text as="span" marginRight="space10">Address requirements</Text>
<Tooltip text="Some local authorities require you to provide an address before purchasing a phone number.">
<InformationIcon decorative={false} title="Open Tooltip" display="block" />
</Tooltip>
</Box>
</Label> can't see my mouse, but hovering over the icon doesn't open up the tooltip: |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 7 replies
-
Hi @vnguyen94, This seems to be a bug because we don't currently forwardRefs on icons, and so you're probably seeing this error in console: I'll add a ticket to fix this in our next sprint, as all of our components should be forwarding refs. |
Beta Was this translation helpful? Give feedback.
-
Link to a more full answer here: #683 (comment) |
Beta Was this translation helpful? Give feedback.
Link to a more full answer here: #683 (comment)