Skip to content

Commit 0067c78

Browse files
committed
style(button): disable transitions for users with reduced motion preferences
1 parent 081b134 commit 0067c78

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

packages/docsearch-css/src/button.css

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,12 @@
6666
transition-duration: 100ms;
6767
}
6868

69+
@media (prefers-reduced-motion) {
70+
.DocSearch-Button-Key {
71+
transition: none;
72+
}
73+
}
74+
6975
.DocSearch-Button-Key--pressed {
7076
transform: translate3d(0, 1px, 0);
7177
box-shadow: var(--docsearch-key-pressed-shadow);

0 commit comments

Comments
 (0)