aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorlavsemen <[email protected]>2023-03-02 23:49:54 +0500
committerGitHub <[email protected]>2023-03-02 10:49:54 -0800
commit9a1f4ed9e5cba6424247928b786858edd38223da (patch)
tree1228a387deb10aea914fe856f162b96be23842cd
parentdbc021b220d29a3c87f6968fbc84860be311610f (diff)
downloadbootstrap-9a1f4ed9e5cba6424247928b786858edd38223da.tar.xz
bootstrap-9a1f4ed9e5cba6424247928b786858edd38223da.zip
Fix button visibility issue on dark theme (#38115)
* Fix button visibility issue on dark theme * Add $btn-color-variable in _buttons.scss * Apply suggestions from code review --------- Co-authored-by: Семен Лаверентьев <[email protected]> Co-authored-by: Mark Otto <[email protected]>
-rw-r--r--scss/_buttons.scss2
-rw-r--r--scss/_variables.scss1
2 files changed, 2 insertions, 1 deletions
diff --git a/scss/_buttons.scss b/scss/_buttons.scss
index bb1ae3d84..cbc0784a4 100644
--- a/scss/_buttons.scss
+++ b/scss/_buttons.scss
@@ -10,7 +10,7 @@
@include rfs($btn-font-size, --#{$prefix}btn-font-size);
--#{$prefix}btn-font-weight: #{$btn-font-weight};
--#{$prefix}btn-line-height: #{$btn-line-height};
- --#{$prefix}btn-color: #{$body-color};
+ --#{$prefix}btn-color: #{$btn-color};
--#{$prefix}btn-bg: transparent;
--#{$prefix}btn-border-width: #{$btn-border-width};
--#{$prefix}btn-border-color: transparent;
diff --git a/scss/_variables.scss b/scss/_variables.scss
index ec2ff3750..315b2bb77 100644
--- a/scss/_variables.scss
+++ b/scss/_variables.scss
@@ -810,6 +810,7 @@ $input-btn-border-width: var(--#{$prefix}border-width) !default;
// For each of Bootstrap's buttons, define text, background, and border color.
// scss-docs-start btn-variables
+$btn-color: var(--#{$prefix}body-color) !default;
$btn-padding-y: $input-btn-padding-y !default;
$btn-padding-x: $input-btn-padding-x !default;
$btn-font-family: $input-btn-font-family !default;