Skip to content

Commit

Permalink
fix(utils/sui-theme): opacity native functionality
Browse files Browse the repository at this point in the history
  • Loading branch information
andresin87 committed Dec 19, 2024
1 parent aa29925 commit 6232e6e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions utils/sui-theme/src/utils/_opacity.scss
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,11 @@
// @include bgcolor-opacity($c-black);

@mixin bgcolor-opacity($color) {
background-color: rgba($color, 1);
background-color: color-mix(in srgb, $color 100%, transparent);

@each $value in $c-opacity {
&-#{$value} {
background-color: rgba($color, $value * 0.01);
background-color: color-mix(in srgb, #{$value '%'}, transparent);
}
}
}
Expand All @@ -19,7 +19,7 @@
position: relative;

&::before {
background-color: rgba($color, $value * 0.01);
background-color: color-mix(in srgb, #{$value '%'}, transparent);
content: '';
display: block;
height: 100%;
Expand Down

0 comments on commit 6232e6e

Please sign in to comment.