aboutsummaryrefslogtreecommitdiff
path: root/site
diff options
context:
space:
mode:
authorGaël Poupard <[email protected]>2020-02-14 20:50:50 +0100
committerGitHub <[email protected]>2020-02-14 20:50:50 +0100
commitcd7e5d111102e4422858aa6f255dc243b4cca1ca (patch)
tree46630f3e8b05fbe93e7e0147b98f365d646e9058 /site
parent6933bd4a1d9b3b1de109fc43d9a0da858c205fb0 (diff)
downloadbootstrap-cd7e5d111102e4422858aa6f255dc243b4cca1ca.tar.xz
bootstrap-cd7e5d111102e4422858aa6f255dc243b4cca1ca.zip
Placeholder for transitions reset to prevent code duplication… (#29870)
Co-authored-by: Martijn Cuppens <[email protected]> Co-authored-by: XhmikosR <[email protected]>
Diffstat (limited to 'site')
-rw-r--r--site/assets/scss/docs.scss9
-rw-r--r--site/content/docs/4.3/migration.md1
2 files changed, 10 insertions, 0 deletions
diff --git a/site/assets/scss/docs.scss b/site/assets/scss/docs.scss
index 53622b9c2..67e8413bd 100644
--- a/site/assets/scss/docs.scss
+++ b/site/assets/scss/docs.scss
@@ -51,3 +51,12 @@
@import "syntax";
@import "anchor";
@import "algolia";
+
+@if $enable-prefers-reduced-motion-media-query {
+ @media (prefers-reduced-motion: reduce) {
+ %no-transition {
+ // stylelint-disable-next-line property-blacklist, declaration-no-important
+ transition: none !important;
+ }
+ }
+}
diff --git a/site/content/docs/4.3/migration.md b/site/content/docs/4.3/migration.md
index 4a5d43ede..6517b664d 100644
--- a/site/content/docs/4.3/migration.md
+++ b/site/content/docs/4.3/migration.md
@@ -41,6 +41,7 @@ Changes to our source Sass files and compiled CSS.
- 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()`.
+- The `transition()` mixin now extends `%no-transition` placeholder to handle `prefers-reduced-motion` media query-except vendor prefixes listed in new `$pseudo-vendor-prefixes` variable. [See #29870](https://github.com/twbs/bootstrap/pull/29870/)
## JavaScript