From 4e37fc3ab4b9441ec749ab91edff66b7fc192456 Mon Sep 17 00:00:00 2001 From: Jeremy Jackson Date: Sat, 12 Oct 2019 08:21:22 +0000 Subject: Add color argument to button mixins (#29444) Add optional `$color` argument to `button-variant()` and `button-outline-variant()` for additional flexibility. --- site/content/docs/4.3/migration.md | 2 ++ 1 file changed, 2 insertions(+) (limited to 'site/content/docs') 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 -- cgit v1.2.3