mirror of
https://github.com/ant-design/ant-design.git
synced 2026-02-09 02:49:18 +08:00
site(a11y): apply prefers-reduced-motion handling for transitions (#56823)
* site(a11y): apply prefers-reduced-motion handling for transitions * site(a11y): apply prefers-reduced-motion handling for transitions
This commit is contained in:
@@ -1,6 +1,15 @@
|
|||||||
// FIXME: workaround for avoid searchbar styles be extracted to async chunk
|
// FIXME: workaround for avoid searchbar styles be extracted to async chunk
|
||||||
@import 'dumi/theme-default/slots/SearchBar/index.less';
|
@import 'dumi/theme-default/slots/SearchBar/index.less';
|
||||||
|
|
||||||
|
@media (prefers-reduced-motion: reduce) {
|
||||||
|
*,
|
||||||
|
*::before,
|
||||||
|
*::after {
|
||||||
|
animation: none;
|
||||||
|
transition: none;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
.demo-logo {
|
.demo-logo {
|
||||||
width: 120px;
|
width: 120px;
|
||||||
min-width: 120px;
|
min-width: 120px;
|
||||||
|
|||||||
Reference in New Issue
Block a user