Unverified Commit 37ef4e4b authored by Gaël Poupard's avatar Gaël Poupard Committed by GitHub
Browse files

Easier disabled state customization for button variants (#30639)


* feat(buttons): easier disabled state customization

* docs(migration): mention new arguments for disabled state in button-variant()

* Update migration.md

Co-authored-by: default avatarXhmikosR <xhmikosr@gmail.com>
Co-authored-by: default avatarMark Otto <markd.otto@gmail.com>
parent eeb73e0c
Showing with 11 additions and 4 deletions
+11 -4
......@@ -12,7 +12,10 @@
$hover-color: color-contrast($hover-background),
$active-background: darken($background, 10%),
$active-border: darken($border, 12.5%),
$active-color: color-contrast($active-background)
$active-color: color-contrast($active-background),
$disabled-background: $background,
$disabled-border: $border,
$disabled-color: color-contrast($disabled-background)
) {
color: $color;
@include gradient-bg($background);
......@@ -61,11 +64,11 @@
&:disabled,
&.disabled {
color: $color;
background-color: $background;
color: $disabled-color;
background-color: $disabled-background;
// Remove CSS gradients if they're enabled
background-image: if($enable-gradients, none, null);
border-color: $border;
border-color: $disabled-border;
}
}
......
......@@ -16,6 +16,10 @@ toc: true
### Components
#### Buttons
- Disabled states of buttons are easier to customize thanks to additional arguments in the `button-variant()` mixin. [See #30639.](https://github.com/twbs/bootstrap/pull/30639)
#### Popovers
- Renamed `whiteList` option to `allowList`
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment