diff --git a/scss/_variables.scss b/scss/_variables.scss index 5e959ffb63..e4b9148239 100644 --- a/scss/_variables.scss +++ b/scss/_variables.scss @@ -2282,6 +2282,11 @@ $quantity-selector-btn-padding-x-sm: add($btn-icon-padding-x-sm, 2px) !defa $quantity-selector-icon-width: .875rem !default; $quantity-selector-icon-sm-width: .625rem !default; +$quantity-selector-disabled-color: var(--#{$prefix}disabled-color) !default; // Could be `$input-disabled-color` after #2221 +$quantity-selector-disabled-bg: var(--#{$prefix}body-bg) !default; // Could be `$input-disabled-bg` after #2221 +$quantity-selector-button-bg: var(--#{$prefix}body-bg) !default; // Could be `$input-disabled-bg` after #2221 +$quantity-selector-button-border: var(--#{$prefix}border-width) solid var(--#{$prefix}border-color-translucent) !default; + $quantity-selector-icon-add: $add-icon !default; $quantity-selector-icon-add-sm: $add-icon-sm !default; $quantity-selector-icon-add-height: .875rem !default; diff --git a/scss/forms/_quantity-selector.scss b/scss/forms/_quantity-selector.scss index 417c7b8b7b..3df9030c6c 100644 --- a/scss/forms/_quantity-selector.scss +++ b/scss/forms/_quantity-selector.scss @@ -19,13 +19,18 @@ } &:disabled { - color: $gray-500; - background-color: $white; + color: $quantity-selector-disabled-color; + background-color: $quantity-selector-disabled-bg; } } button { - border: var(--#{$prefix}border-width) solid $gray-500; + background-color: $quantity-selector-button-bg; + border: $quantity-selector-button-border; + + &:disabled { + background-color: $quantity-selector-button-bg; + } &:first-of-type { @include button-icon($quantity-selector-icon-remove, $size: $quantity-selector-icon-width $quantity-selector-icon-remove-height, $pseudo: "after"); diff --git a/site/content/docs/5.3/dark-mode.md b/site/content/docs/5.3/dark-mode.md index f8396a0e51..d50d34372d 100644 --- a/site/content/docs/5.3/dark-mode.md +++ b/site/content/docs/5.3/dark-mode.md @@ -1690,3 +1690,120 @@ sitemap_exclude: true + +### Quantity selector + +