Skip to content

Commit 5bb6cae

Browse files
committed
fix: fixing comment syntax
1 parent 59fbf3a commit 5bb6cae

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

src/components/experimental/IconButton/IconButton.tsx

+6-6
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,13 +28,13 @@ 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;
4040
min-width: 3rem;
@@ -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,7 +82,7 @@ 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;
8888
min-width: 3rem;

0 commit comments

Comments
 (0)