Skip to content

Commit

Permalink
Fix #1082: Make sure text-$color overwrites bg-$color (#1086)
Browse files Browse the repository at this point in the history
  • Loading branch information
rjd22 committed May 8, 2022
1 parent a1020cf commit a21fed2
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/scss/utils/_colors.scss
Expand Up @@ -7,12 +7,14 @@
background: $value !important;
}

.text-#{"" + $color} {
.bg-#{"" + $color}-lt {
color: $value !important;
background: theme-color-lighter($value, true) !important;
}
}

.bg-#{"" + $color}-lt {
@each $color, $value in theme-colors() {
.text-#{"" + $color} {
color: $value !important;
background: theme-color-lighter($value, true) !important;
}
}

1 comment on commit a21fed2

@vercel
Copy link

@vercel vercel bot commented on a21fed2 May 8, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.