Skip to content

Commit e2f5e2c

Browse files
authored
fix(typed effect): allow fade effect with reduced motion (@d1rshan) (#7849)
### Current Behavior for Reduced Motion 1. keep - Letters stay (No change) 2. hide - Letters vanish instantly (No change) 3. fade - Letters stay **(Effect is lost)** 4. dots - Letters become dots instantly (has a Fallback) ### Changes This PR makes sure that `fade` effect works for reduced motion by adding it to the global exclude list for reduced motion. Closes #7847
1 parent 964fcf0 commit e2f5e2c

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

frontend/src/styles/media-queries.scss

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,12 @@ body {
4343

4444
@media (prefers-reduced-motion) {
4545
body:not(.ignore-reduced-motion)
46-
*:not(.fa-spin, .animate-\[loader\], .preloader) {
46+
*:not(
47+
.fa-spin,
48+
.animate-\[loader\],
49+
.preloader,
50+
.typed-effect-fade .word.typed
51+
) {
4752
animation: none !important;
4853
transition: none !important;
4954

0 commit comments

Comments
 (0)