Skip to content

Commit

Permalink
Fix Tooltip Trigger width
Browse files Browse the repository at this point in the history
  • Loading branch information
vineethasok committed Sep 18, 2023
1 parent 251446a commit a1dad26
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/components/Tooltip/Tooltip.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,9 @@ export const Tooltip = ({ children, ...props }: RadixTooltip.TooltipProps) => {
return <RadixTooltip.Root {...props}>{children}</RadixTooltip.Root>;
};

const Trigger = styled(RadixTooltip.Trigger)`
width: auto;
`;
const TooltipTrigger = (props: RadixTooltip.TooltipTriggerProps) => {
return (
<Trigger
<RadixTooltip.Trigger
asChild
{...props}
/>
Expand Down

0 comments on commit a1dad26

Please sign in to comment.