refactor(core): ♻️ replace reducemotion with core accessiblity module

This commit is contained in:
alistair3149 2022-10-25 15:19:14 -04:00
parent 159bd8a7d2
commit 8dcb1f37fb
No known key found for this signature in database
3 changed files with 1 additions and 31 deletions

View file

@ -1,30 +0,0 @@
/*
* From Sanitize.css
* 1. Remove animations when motion is reduced (opinionated).
* 2. Remove fixed background attachments when motion is reduced (opinionated).
* 3. Remove timed scrolling behaviors when motion is reduced (opinionated).
* 4. Remove transitions when motion is reduced (opinionated).
*/
@media ( prefers-reduced-motion: reduce ) {
/* stylelint-disable time-min-milliseconds */
*,
:before,
:after {
animation-delay: -1ms !important;
/* 1 */
animation-duration: 1ms !important;
/* 1 */
animation-iteration-count: 1 !important;
/* 1 */
background-attachment: initial !important;
/* 2 */
scroll-behavior: auto !important;
/* 3 */
transition-delay: 0s !important;
/* 4 */
transition-duration: 0s !important;
/* 4 */
}
/* stylelint-enable time-min-milliseconds */
}

View file

@ -14,7 +14,6 @@
@import 'common/scrollbar.less';
@import 'common/hacks.less';
@import 'common/wikitable.less';
@import 'common/reducemotion.less';
@import 'common/progressbar.less';
// Components

View file

@ -76,6 +76,7 @@
"mobile"
],
"features": {
"accessibility": true,
"content-parser-output": false,
"content-body": false,
"logo": false,