Skip to content

Commit

Permalink
fixup! fix(material/theming): restrict css color usage behind a flag
Browse files Browse the repository at this point in the history
  • Loading branch information
wagnermaciel committed Apr 23, 2024
1 parent 5730d30 commit 198d669
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/material/core/style/_sass-utils.scss
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ $use-system-typography-variables: false;
@return color.change($color, $args...);
}
@else if ($color != null and map.get($args, alpha) != null and $use-system-color-variables) {
@return #{color(from #{$color} srgb r g b / #{map.get($args, alpha)})};
@return rgb(from $color #{r g b} / map.get($args, alpha));
}
@return $color;
}
Expand Down
2 changes: 1 addition & 1 deletion src/material/core/tokens/_m3-tokens.scss
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@
}
@else if($color != null) {
$result: map.remove($result, $opacity-key);
$combined-color: #{color(from #{$color} srgb r g b / #{$opacity})};
$combined-color: rgb(from $color #{r g b} / $opacity);
$result: map.set($result, $color-key, $combined-color);
}
}
Expand Down

0 comments on commit 198d669

Please sign in to comment.