mirror of
https://github.com/twbs/bootstrap.git
synced 2025-08-15 10:05:40 +02:00
Fix alerts colors by using *-text-emphasis
CSS vars in Sass loop (#38003)
This commit is contained in:
@@ -59,10 +59,10 @@
|
|||||||
// Generate contextual modifier classes for colorizing the alert
|
// Generate contextual modifier classes for colorizing the alert
|
||||||
@each $state in map-keys($theme-colors) {
|
@each $state in map-keys($theme-colors) {
|
||||||
.alert-#{$state} {
|
.alert-#{$state} {
|
||||||
--#{$prefix}alert-color: var(--#{$prefix}#{$state}-text);
|
--#{$prefix}alert-color: var(--#{$prefix}#{$state}-text-emphasis);
|
||||||
--#{$prefix}alert-bg: var(--#{$prefix}#{$state}-bg-subtle);
|
--#{$prefix}alert-bg: var(--#{$prefix}#{$state}-bg-subtle);
|
||||||
--#{$prefix}alert-border-color: var(--#{$prefix}#{$state}-border-subtle);
|
--#{$prefix}alert-border-color: var(--#{$prefix}#{$state}-border-subtle);
|
||||||
--#{$prefix}alert-link-color: var(--#{$prefix}#{$state}-text);
|
--#{$prefix}alert-link-color: var(--#{$prefix}#{$state}-text-emphasis);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
// scss-docs-end alert-modifiers
|
// scss-docs-end alert-modifiers
|
||||||
|
Reference in New Issue
Block a user