Issue #2940012 by John Cook, rachel_norfolk, abhisekmazumdar, andrewmacpherson, alexpott: Use prefers-reduced-motion media query on batch progress bar

8.6.x
Lauri Eskola 2018-05-23 07:39:36 +03:00
parent 69167b5dc8
commit 427ffa6125
2 changed files with 12 additions and 0 deletions

View File

@ -10,6 +10,9 @@
"no-descending-specificity": null,
"no-duplicate-selectors": null,
"no-unknown-animations": true,
"media-feature-name-no-unknown": [true, {
"ignoreMediaFeatureNames": ["prefers-reduced-motion"]
}],
"number-leading-zero": "always",
"plugin/no-browser-hacks": [true, {
"browsers": [

View File

@ -41,6 +41,15 @@
-moz-animation-direction: reverse;
}
@media screen and (prefers-reduced-motion: reduce) {
.progress__bar {
-webkit-animation: none;
-moz-animation: none;
-webkit-transition: none;
transition: none;
}
}
/**
* Progress bar animations.
*/