aboutsummaryrefslogtreecommitdiff
path: root/site
diff options
context:
space:
mode:
authorGaĆ«l Poupard <[email protected]>2020-10-19 10:42:19 +0200
committerGitHub <[email protected]>2020-10-19 11:42:19 +0300
commitece40bcd110c47478fa1316bd099ba59210a231b (patch)
treed1350fe1b32ebe39f597ef5d324a512643987dee /site
parente0a3b7ef0d529411c4d4e4c7d1831f2152e49252 (diff)
downloadbootstrap-ece40bcd110c47478fa1316bd099ba59210a231b.tar.xz
bootstrap-ece40bcd110c47478fa1316bd099ba59210a231b.zip
Slow down spinners when `prefers-reduced-motion: reduce` (#31882)
* feature(spinners): slow down spinners when prefers-reduced-motion * docs(spinners): add reduced motion callout and mention slowing down in accessibility page * Update spinners.md * docs(accessibility): rewording Co-authored-by: XhmikosR <[email protected]> Co-authored-by: Patrick H. Lauke <[email protected]>
Diffstat (limited to 'site')
-rw-r--r--site/content/docs/5.0/components/spinners.md4
-rw-r--r--site/content/docs/5.0/getting-started/accessibility.md2
2 files changed, 5 insertions, 1 deletions
diff --git a/site/content/docs/5.0/components/spinners.md b/site/content/docs/5.0/components/spinners.md
index fc9cd4e57..250e334b8 100644
--- a/site/content/docs/5.0/components/spinners.md
+++ b/site/content/docs/5.0/components/spinners.md
@@ -12,6 +12,10 @@ Bootstrap "spinners" can be used to show the loading state in your projects. The
For accessibility purposes, each loader here includes `role="status"` and a nested `<span class="visually-hidden">Loading...</span>`.
+{{< callout info >}}
+{{< partial "callout-info-prefersreducedmotion.md" >}}
+{{< /callout >}}
+
## Border spinner
Use the border spinners for a lightweight loading indicator.
diff --git a/site/content/docs/5.0/getting-started/accessibility.md b/site/content/docs/5.0/getting-started/accessibility.md
index 150c80d65..b32daec73 100644
--- a/site/content/docs/5.0/getting-started/accessibility.md
+++ b/site/content/docs/5.0/getting-started/accessibility.md
@@ -45,7 +45,7 @@ For visually hidden interactive controls, such as traditional "skip" links, use
### Reduced motion
-Bootstrap includes support for the [`prefers-reduced-motion` media feature](https://drafts.csswg.org/mediaqueries-5/#prefers-reduced-motion). In browsers/environments that allow the user to specify their preference for reduced motion, most CSS transition effects in Bootstrap (for instance, when a modal dialog is opened or closed, or the sliding animation in carousels) will be disabled.
+Bootstrap includes support for the [`prefers-reduced-motion` media feature](https://drafts.csswg.org/mediaqueries-5/#prefers-reduced-motion). In browsers/environments that allow the user to specify their preference for reduced motion, most CSS transition effects in Bootstrap (for instance, when a modal dialog is opened or closed, or the sliding animation in carousels) will be disabled, and meaningful animations (such as spinners) will be slowed down.
## Additional resources