Skip to content

Commit

Permalink
fix(utilities): ensure transparent/inherit are avoided in utility gen…
Browse files Browse the repository at this point in the history
…eration when locking background w foreground
  • Loading branch information
ffoodd committed Apr 8, 2020
1 parent 85e1bb7 commit 601b110
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scss/mixins/_utilities.scss
Original file line number Diff line number Diff line change
Expand Up @@ -43,9 +43,9 @@
@each $property in $properties {
#{$property}: $value if($enable-important-utilities, !important, null);
// Boosted mod
@if "background-color" == $property and "transparent" != $value {
@if "background-color" == $property and "transparent" != inspect($value) {
color: color-contrast($value);
} @else if "color" == $property and "inherit" != $value {
} @else if "color" == $property and "inherit" != inspect($value) {
background-color: color-contrast($value);
}
// End mod
Expand Down

0 comments on commit 601b110

Please sign in to comment.