Skip to content

Commit 4dc1fbe

Browse files
authored
fix: ensure animated elements are visible when prefers-reduced-motion is enabled (#7047)
1 parent 3dcb03c commit 4dc1fbe

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

ui/desktop/src/styles/main.css

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -373,6 +373,11 @@
373373
[class*='animate-[wind'] {
374374
animation: none !important;
375375
}
376+
377+
/* Elements that use opacity-0 with appear animation need to be visible when animations are disabled */
378+
.opacity-0[class*='animate-'] {
379+
opacity: 1 !important;
380+
}
376381
}
377382

378383
/* Toast close button styling */

0 commit comments

Comments
 (0)