From a21fed254743d9e4c0e6b0450e95c29c462b058d Mon Sep 17 00:00:00 2001 From: Robert-Jan de Dreu <160743+rjd22@users.noreply.github.com> Date: Sun, 8 May 2022 12:32:11 +0200 Subject: [PATCH] Fix #1082: Make sure text-$color overwrites bg-$color (#1086) --- src/scss/utils/_colors.scss | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/scss/utils/_colors.scss b/src/scss/utils/_colors.scss index a230aaad9..fe23d5062 100644 --- a/src/scss/utils/_colors.scss +++ b/src/scss/utils/_colors.scss @@ -7,12 +7,14 @@ background: $value !important; } - .text-#{"" + $color} { - color: $value !important; - } - .bg-#{"" + $color}-lt { color: $value !important; background: theme-color-lighter($value, true) !important; } } + +@each $color, $value in theme-colors() { + .text-#{"" + $color} { + color: $value !important; + } +}