Skip to content

Commit 191db91

Browse files
authored
site(a11y): apply prefers-reduced-motion handling for transitions (ant-design#56823)
* site(a11y): apply prefers-reduced-motion handling for transitions * site(a11y): apply prefers-reduced-motion handling for transitions
1 parent a28f8aa commit 191db91

1 file changed

Lines changed: 9 additions & 0 deletions

File tree

.dumi/global.less

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,15 @@
11
// FIXME: workaround for avoid searchbar styles be extracted to async chunk
22
@import 'dumi/theme-default/slots/SearchBar/index.less';
33

4+
@media (prefers-reduced-motion: reduce) {
5+
*,
6+
*::before,
7+
*::after {
8+
animation: none;
9+
transition: none;
10+
}
11+
}
12+
413
.demo-logo {
514
width: 120px;
615
min-width: 120px;

0 commit comments

Comments
 (0)