aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGaĆ«l Poupard <[email protected]>2021-12-20 13:22:29 +0100
committerGitHub <[email protected]>2021-12-20 14:22:29 +0200
commita2c056e1f6d5925a5e6fef1f5d709f07a2a535d1 (patch)
tree4cf7f886999d61b8d4ba069c69a08225d8456dcb
parent42162546f27314b36b6c26112303666246a7b67b (diff)
downloadbootstrap-a2c056e1f6d5925a5e6fef1f5d709f07a2a535d1.tar.xz
bootstrap-a2c056e1f6d5925a5e6fef1f5d709f07a2a535d1.zip
fix(alerts): ensure color is set and used (#35571)
-rw-r--r--scss/_alert.scss3
1 files changed, 2 insertions, 1 deletions
diff --git a/scss/_alert.scss b/scss/_alert.scss
index ed47806e2..c8275e8d2 100644
--- a/scss/_alert.scss
+++ b/scss/_alert.scss
@@ -7,7 +7,7 @@
--#{$variable-prefix}alert-bg: transparent;
--#{$variable-prefix}alert-padding: #{$alert-padding-y $alert-padding-x};
--#{$variable-prefix}alert-margin-bottom: #{$alert-margin-bottom};
- --#{$variable-prefix}alert-color: #{$alert-padding-y $alert-padding-x};
+ --#{$variable-prefix}alert-color: inherit;
--#{$variable-prefix}alert-border-color: transparent;
--#{$variable-prefix}alert-border: #{$alert-border-width} solid var(--#{$variable-prefix}alert-border-color);
--#{$variable-prefix}alert-border-radius: #{$alert-border-radius};
@@ -16,6 +16,7 @@
position: relative;
padding: var(--#{$variable-prefix}alert-padding);
margin-bottom: var(--#{$variable-prefix}alert-margin-bottom);
+ color: var(--#{$variable-prefix}alert-color);
background-color: var(--#{$variable-prefix}alert-bg);
border: var(--#{$variable-prefix}alert-border);
border-radius: var(--#{$variable-prefix}alert-border-radius, 0); // stylelint-disable-line property-disallowed-list