Skip to content
Snippets Groups Projects
Commit 427ffa61 authored by Lauri Timmanee's avatar Lauri Timmanee
Browse files

Issue #2940012 by John Cook, rachel_norfolk, abhisekmazumdar,...

Issue #2940012 by John Cook, rachel_norfolk, abhisekmazumdar, andrewmacpherson, alexpott: Use prefers-reduced-motion media query on batch progress bar
parent 69167b5d
No related branches found
No related tags found
2 merge requests!7452Issue #1797438. HTML5 validation is preventing form submit and not fully...,!789Issue #3210310: Adjust Database API to remove deprecated Drupal 9 code in Drupal 10
...@@ -10,6 +10,9 @@ ...@@ -10,6 +10,9 @@
"no-descending-specificity": null, "no-descending-specificity": null,
"no-duplicate-selectors": null, "no-duplicate-selectors": null,
"no-unknown-animations": true, "no-unknown-animations": true,
"media-feature-name-no-unknown": [true, {
"ignoreMediaFeatureNames": ["prefers-reduced-motion"]
}],
"number-leading-zero": "always", "number-leading-zero": "always",
"plugin/no-browser-hacks": [true, { "plugin/no-browser-hacks": [true, {
"browsers": [ "browsers": [
......
...@@ -41,6 +41,15 @@ ...@@ -41,6 +41,15 @@
-moz-animation-direction: reverse; -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. * Progress bar animations.
*/ */
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment