aboutsummaryrefslogtreecommitdiff
path: root/site/content/docs
diff options
context:
space:
mode:
authorJeremy Jackson <[email protected]>2019-10-12 08:21:22 +0000
committerXhmikosR <[email protected]>2019-10-12 11:21:22 +0300
commit4e37fc3ab4b9441ec749ab91edff66b7fc192456 (patch)
tree191e63ab9c88df4bda55b9379495c2ba23905c08 /site/content/docs
parentb3451ff258fad12e0803d3c4c0331230748720b8 (diff)
downloadbootstrap-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/content/docs')
-rw-r--r--site/content/docs/4.3/migration.md2
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