Skip to content

Commit

Permalink
() fix icon before and after selectors
Browse files Browse the repository at this point in the history
  • Loading branch information
mrTuomoK committed May 8, 2024
1 parent f46451c commit 6f0636e
Showing 1 changed file with 22 additions and 26 deletions.
48 changes: 22 additions & 26 deletions packages/core/src/icons/icon.css
Original file line number Diff line number Diff line change
Expand Up @@ -33,32 +33,28 @@
--icon-size: var(--spacing-layout-l);
}

[class*="hds-icon-start--"] {
&:before {
background-color: currentcolor;
content: "";
display: inline-flex;
height: var(--icon-size, 24px);
-webkit-mask-image: var(--mask-image-before);
mask-image: var(--mask-image-before);
mask-position: center;
mask-repeat: no-repeat;
mask-size: contain;
width: var(--icon-size, 24px);
}
[class*="hds-icon-start--"]:before {
background-color: currentcolor;
content: "";
display: inline-flex;
height: var(--icon-size, 24px);
-webkit-mask-image: var(--mask-image-before);
mask-image: var(--mask-image-before);
mask-position: center;
mask-repeat: no-repeat;
mask-size: contain;
width: var(--icon-size, 24px);
}

[class*="hds-icon-end--"] {
&:after {
background-color: currentcolor;
content: "";
display: inline-flex;
height: var(--icon-size, 24px);
-webkit-mask-image: var(--mask-image-after);
mask-image: var(--mask-image-after);
mask-position: center;
mask-repeat: no-repeat;
mask-size: contain;
width: var(--icon-size, 24px);
}
[class*="hds-icon-end--"]:after {
background-color: currentcolor;
content: "";
display: inline-flex;
height: var(--icon-size, 24px);
-webkit-mask-image: var(--mask-image-after);
mask-image: var(--mask-image-after);
mask-position: center;
mask-repeat: no-repeat;
mask-size: contain;
width: var(--icon-size, 24px);
}

0 comments on commit 6f0636e

Please sign in to comment.