mirror of
https://github.com/tabler/tabler.git
synced 2026-10-12 05:06:55 +04:00
Fix --tblr-gray-*-fg tokens resolving to white (#2624)
This commit is contained in:
1 parent
1ed2889cf1
commit
bc24b3ada8
2 files changed
+6
-1
No files matched your search
@@ -0,0 +1,5 @@
|
|||||||
|
---
|
||||||
|
"@tabler/core": patch
|
||||||
|
---
|
||||||
|
|
||||||
|
Fixed `--tblr-gray-*-fg` token generation to map directly to `--tblr-gray-*` instead of contrast-based fallbacks that could resolve to white.
|
||||||
@@ -45,7 +45,7 @@
|
|||||||
|
|
||||||
/** Gray colors */
|
/** Gray colors */
|
||||||
@each $name, $color in $gray-colors {
|
@each $name, $color in $gray-colors {
|
||||||
--#{$prefix}#{$name}-fg: #{if(sass(contrast-ratio($color, white) > $min-contrast-ratio): var(--#{$prefix}white); else: var(--#{$prefix}body-color))};
|
--#{$prefix}#{$name}-fg: var(--#{$prefix}#{$name});
|
||||||
}
|
}
|
||||||
|
|
||||||
/** Spacers */
|
/** Spacers */
|
||||||
|
|||||||
Reference in new issue
Block a user