Skip to content

Commit 8221318

Browse files
matteiusCopilot
andauthored
Potential fix for pull request finding
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
1 parent 6fe0382 commit 8221318

1 file changed

Lines changed: 6 additions & 3 deletions

File tree

web/css/theme/scrollbar.css

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -53,10 +53,13 @@
5353
* web/js/utils/reduceMotion.js on boot (and on preference change).
5454
* The utility resolves 'auto' against `prefers-reduced-motion: reduce` so
5555
* users who only have the OS setting still get the reduction by default.
56+
*
57+
* Exclude loading indicators and any explicit motion opt-outs so pending
58+
* states (for example Tailwind `animate-spin`) continue to communicate work.
5659
* ------------------------------------------------------------------------- */
57-
[data-reduce-motion="true"] *,
58-
[data-reduce-motion="true"] *::before,
59-
[data-reduce-motion="true"] *::after {
60+
[data-reduce-motion="true"] *:not(.animate-spin):not([data-allow-motion]),
61+
[data-reduce-motion="true"] *:not(.animate-spin):not([data-allow-motion])::before,
62+
[data-reduce-motion="true"] *:not(.animate-spin):not([data-allow-motion])::after {
6063
animation-duration: 0.01ms !important;
6164
animation-iteration-count: 1 !important;
6265
transition-duration: 0.01ms !important;

0 commit comments

Comments
 (0)