diff options
| author | Jeremy Jackson <[email protected]> | 2019-10-12 08:21:22 +0000 |
|---|---|---|
| committer | XhmikosR <[email protected]> | 2019-10-12 11:21:22 +0300 |
| commit | 4e37fc3ab4b9441ec749ab91edff66b7fc192456 (patch) | |
| tree | 191e63ab9c88df4bda55b9379495c2ba23905c08 /site | |
| parent | b3451ff258fad12e0803d3c4c0331230748720b8 (diff) | |
| download | bootstrap-4e37fc3ab4b9441ec749ab91edff66b7fc192456.tar.xz bootstrap-4e37fc3ab4b9441ec749ab91edff66b7fc192456.zip | |
Add color argument to button mixins (#29444)
Add optional `$color` argument to `button-variant()` and
`button-outline-variant()` for additional flexibility.
Diffstat (limited to 'site')
| -rw-r--r-- | site/content/docs/4.3/migration.md | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/site/content/docs/4.3/migration.md b/site/content/docs/4.3/migration.md index 4b98e096d..6a8728852 100644 --- a/site/content/docs/4.3/migration.md +++ b/site/content/docs/4.3/migration.md @@ -37,6 +37,8 @@ Changes to our source Sass files and compiled CSS. - Dropped `color()`, `theme-color()` & `gray()` functions in favor of variables. [See #29083](https://github.com/twbs/bootstrap/pull/29083) - The `theme-color-level()` function is renamed to `color-level()` and now accepts any color you want instead of only `$theme-color` colors. [See #29083](https://github.com/twbs/bootstrap/pull/29083) - Line heights are dropped from several components to simplify our codebase. The `button-size()` and `pagination-size()` do not accept line height parameters anymore. [See #29271](https://github.com/twbs/bootstrap/pull/29271) +- The `button-variant()` mixin now accepts 3 optional color parameters, for each button state, to override the color provided by `color-yiq()`. By default, these parameters will find which color provides more contrast against the button state's background color with `color-yiq()`. +- The `button-outline-variant()` mixin now accepts an additional argument, `$active-color`, for setting the button's active state text color. By default, this parameter will find which color provides more contrast against the button's active background color with `color-yiq()`. ## JavaScript |
