Skip to content

Commit ba749c3

Browse files
committed
fix: fixing comment syntax and styles
1 parent 59fbf3a commit ba749c3

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

src/components/experimental/IconButton/IconButton.tsx

+10-10
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ const StandardIconContainer = styled(Button)<Omit<IconButtonProps, 'Icon'>>`
1818
background-color: transparent;
1919
border-color: transparent;
2020
21-
// we create a before pseudo element to mess with the opacity (see the hovered state)
21+
/* we create a before pseudo element to mess with the opacity (see the hovered state) */
2222
&::before {
2323
position: absolute;
2424
content: '';
@@ -28,17 +28,17 @@ const StandardIconContainer = styled(Button)<Omit<IconButtonProps, 'Icon'>>`
2828
width: 5rem;
2929
}
3030
31-
// we want to change the opacity here but not affect the icon, so we have to use the before pseudo element
31+
/* we want to change the opacity here but not affect the icon, so we have to use the before pseudo element */
3232
&[data-hovered]::before {
3333
opacity: 0.16;
3434
background-color: ${getSemanticValue('on-surface')};
3535
}
3636
37-
// this is to position the svg relative to the before pseudo element
37+
/* this is to position the svg relative to the before pseudo element */
3838
> svg {
3939
padding: 1rem;
40-
min-width: 3rem;
41-
min-height: 3rem;
40+
width: 3rem;
41+
height: 3rem;
4242
}
4343
4444
&:not([data-disabled]) {
@@ -57,7 +57,7 @@ const TonalIconContainer = styled(Button)<Omit<IconButtonProps, 'Icon'>>`
5757
border-color: transparent;
5858
background: none;
5959
60-
// we create a before pseudo element to mess with the opacity (see the hovered state)
60+
/* we create a before pseudo element to mess with the opacity (see the hovered state) */
6161
&::before {
6262
position: absolute;
6363
content: '';
@@ -71,7 +71,7 @@ const TonalIconContainer = styled(Button)<Omit<IconButtonProps, 'Icon'>>`
7171
z-index: -1;
7272
}
7373
74-
// we want to change the opacity here but not affect the icon, so we have to use the before pseudo element
74+
/* we want to change the opacity here but not affect the icon, so we have to use the before pseudo element */
7575
&[data-hovered]::before {
7676
background-color: color-mix(
7777
in hsl,
@@ -82,11 +82,11 @@ const TonalIconContainer = styled(Button)<Omit<IconButtonProps, 'Icon'>>`
8282
opacity: 0.16;
8383
}
8484
85-
// this is to position the svg relative to the before pseudo element
85+
/* this is to position the svg relative to the before pseudo element */
8686
> svg {
8787
padding: 2rem;
88-
min-width: 3rem;
89-
min-height: 3rem;
88+
width: 3rem;
89+
height: 3rem;
9090
}
9191
9292
&:not([data-disabled]) {

0 commit comments

Comments
 (0)