Skip to content

Commit

Permalink
feat: wrap IconButton in a div for improved styling and structure
Browse files Browse the repository at this point in the history
Signed-off-by: Amit Amrutiya <[email protected]>
  • Loading branch information
amitamrutiya committed Nov 14, 2024
1 parent e65bd46 commit 0295e04
Showing 1 changed file with 16 additions and 14 deletions.
30 changes: 16 additions & 14 deletions src/custom/TooltipIcon.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -20,21 +20,23 @@ export function TooltipIcon({
}: TooltipIconProps): JSX.Element {
return (
<CustomTooltip title={title} arrow={arrow}>
<IconButton
onClick={onClick}
sx={{
'&:hover': {
'& svg': {
fill: '#00d3a9'
<div>
<IconButton
onClick={onClick}
sx={{
'&:hover': {
'& svg': {
fill: '#00d3a9'
},
borderRadius: '4px'
},
borderRadius: '4px'
},
...(style as SxProps)
}}
disableRipple
>
{icon}
</IconButton>
...(style as SxProps)
}}
disableRipple
>
{icon}
</IconButton>
</div>
</CustomTooltip>
);
}
Expand Down

0 comments on commit 0295e04

Please sign in to comment.