Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Slow down spinners when prefers-reduced-motion: reduce #31882

Merged
merged 6 commits into from Oct 19, 2020
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
4 changes: 4 additions & 0 deletions site/content/docs/5.0/components/spinners.md
Expand Up @@ -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.
Expand Down
2 changes: 1 addition & 1 deletion site/content/docs/5.0/getting-started/accessibility.md
Expand Up @@ -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—or slowed down when animation is meaningful, such as in spinners.
ffoodd marked this conversation as resolved.
Show resolved Hide resolved

## Additional resources

Expand Down