Commit 5cb5f28
authored
Respect prefers-reduced-motion in carousel scroll buttons (#1537)
Adjust the carousel scroll behavior to respect the user's
prefers-reduced-motion setting, providing an instant scroll for users
who have indicated a preference for reduced motion.
Note that this does not solve the scroll-snapping: we need to figure out
a way to scroll instantly when `prefers-reduced-motion` is enabled. That
might require some work. So starting with this as a small improvement.1 parent 2d52120 commit 5cb5f28
File tree
2 files changed
+10
-1
lines changed- .changeset
- packages/react/src/carousel
2 files changed
+10
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
111 | 111 | | |
112 | 112 | | |
113 | 113 | | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
114 | 118 | | |
115 | | - | |
| 119 | + | |
116 | 120 | | |
117 | 121 | | |
118 | 122 | | |
| |||
0 commit comments