Skip to content

Commit 0295e04

Browse files
committed
feat: wrap IconButton in a div for improved styling and structure
Signed-off-by: Amit Amrutiya <[email protected]>
1 parent e65bd46 commit 0295e04

File tree

1 file changed

+16
-14
lines changed

1 file changed

+16
-14
lines changed

src/custom/TooltipIcon.tsx

Lines changed: 16 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -20,21 +20,23 @@ export function TooltipIcon({
2020
}: TooltipIconProps): JSX.Element {
2121
return (
2222
<CustomTooltip title={title} arrow={arrow}>
23-
<IconButton
24-
onClick={onClick}
25-
sx={{
26-
'&:hover': {
27-
'& svg': {
28-
fill: '#00d3a9'
23+
<div>
24+
<IconButton
25+
onClick={onClick}
26+
sx={{
27+
'&:hover': {
28+
'& svg': {
29+
fill: '#00d3a9'
30+
},
31+
borderRadius: '4px'
2932
},
30-
borderRadius: '4px'
31-
},
32-
...(style as SxProps)
33-
}}
34-
disableRipple
35-
>
36-
{icon}
37-
</IconButton>
33+
...(style as SxProps)
34+
}}
35+
disableRipple
36+
>
37+
{icon}
38+
</IconButton>
39+
</div>
3840
</CustomTooltip>
3941
);
4042
}

0 commit comments

Comments
 (0)