Skip to content

Commit

Permalink
Fix duplicate --bs-emphasis-color set value (#37809)
Browse files Browse the repository at this point in the history
* Fix duplicate `--bs-emphasis-color` set value

* Restore body- prefix

Co-authored-by: Mark Otto <markdotto@gmail.com>
  • Loading branch information
julien-deramond and mdo authored Jan 6, 2023
1 parent d17d2ab commit 702a3b6
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 9 deletions.
4 changes: 0 additions & 4 deletions scss/_root.scss
Original file line number Diff line number Diff line change
Expand Up @@ -115,8 +115,6 @@
--#{$prefix}box-shadow-lg: #{$box-shadow-lg};
--#{$prefix}box-shadow-inset: #{$box-shadow-inset};

--#{$prefix}emphasis-color: #{$emphasis-color};

// scss-docs-start form-control-vars
--#{$prefix}form-control-bg: var(--#{$prefix}body-bg);
--#{$prefix}form-control-disabled-bg: var(--#{$prefix}secondary-bg);
Expand Down Expand Up @@ -159,8 +157,6 @@
--#{$prefix}tertiary-bg: #{$body-tertiary-bg-dark};
--#{$prefix}tertiary-bg-rgb: #{to-rgb($body-tertiary-bg-dark)};

--#{$prefix}emphasis-color: #{$emphasis-color-dark};

--#{$prefix}primary-text: #{$primary-text-dark};
--#{$prefix}secondary-text: #{$secondary-text-dark};
--#{$prefix}success-text: #{$success-text-dark};
Expand Down
3 changes: 1 addition & 2 deletions scss/_variables-dark.scss
Original file line number Diff line number Diff line change
Expand Up @@ -36,12 +36,11 @@ $dark-border-subtle-dark: $gray-800 !default;

$body-color-dark: $gray-500 !default;
$body-bg-dark: $gray-900 !default;
$body-emphasis-color-dark: $gray-100 !default;
$body-secondary-color-dark: rgba($body-color-dark, .75) !default;
$body-secondary-bg-dark: $gray-800 !default;
$body-tertiary-color-dark: rgba($body-color-dark, .5) !default;
$body-tertiary-bg-dark: mix($gray-800, $gray-900, 50%) !default;
$emphasis-color-dark: $white !default;
$body-emphasis-color-dark: $white !default;
$border-color-dark: $gray-700 !default;
$border-color-translucent-dark: rgba($white, .15) !default;
$headings-color-dark: null !default;
Expand Down
4 changes: 1 addition & 3 deletions scss/_variables.scss
Original file line number Diff line number Diff line change
Expand Up @@ -432,15 +432,13 @@ $body-text-align: null !default;
$body-color: $gray-900 !default;
$body-bg: $white !default;

$body-emphasis-color: $black !default;

$body-secondary-color: rgba($body-color, .75) !default;
$body-secondary-bg: $gray-200 !default;

$body-tertiary-color: rgba($body-color, .5) !default;
$body-tertiary-bg: $gray-100 !default;

$emphasis-color: $black !default;
$body-emphasis-color: $black !default;

// Links
//
Expand Down

0 comments on commit 702a3b6

Please sign in to comment.