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:
lijianan
2026-02-01 17:52:13 +08:00
committed by GitHub
parent a28f8aa863
commit 191db91774

View File

@@ -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;