Skip to content

A free and open source instant messaging and VoIP chat app built for friends, groups, and communities.

TypeScript fluxerfluxerapp

fix(app): stop animations running under reduced motion (#1956)

Hampuse68b5b8b5adf
diff --git a/fluxer_app/src/features/accessibility/components/NekoSprite.module.css b/fluxer_app/src/features/accessibility/components/NekoSprite.module.css
index 0812add9d..946242d4d 100644
--- a/fluxer_app/src/features/accessibility/components/NekoSprite.module.css
+++ b/fluxer_app/src/features/accessibility/components/NekoSprite.module.css
@@ -50,7 +50,7 @@
}
:global(html.reduced-motion) .heart {
- animation: nekoHeartFade 0.8s ease-out forwards;
+ animation: nekoHeartFade 0.8s ease-out forwards !important;
}
@keyframes nekoHeartFade {
diff --git a/fluxer_app/src/features/channel/components/ChannelHeader.module.css b/fluxer_app/src/features/channel/components/ChannelHeader.module.css
index fa60ef593..401d38a23 100644
--- a/fluxer_app/src/features/channel/components/ChannelHeader.module.css
+++ b/fluxer_app/src/features/channel/components/ChannelHeader.module.css
@@ -156,6 +156,11 @@
animation: callBannerRing 1.6s ease-in-out infinite;
}
+:global(html.reduced-motion) .callBannerAvatarPending::before {
+ animation: none;
+ opacity: 0.7;
+}
+
.callBannerAvatarPending .callBannerAvatar {
filter: grayscale(0.75);
opacity: 0.75;
diff --git a/fluxer_app/src/features/theme/styles/Typing.module.css b/fluxer_app/src/features/theme/styles/Typing.module.css
index 384d52895..0d11a3bc7 100644
--- a/fluxer_app/src/features/theme/styles/Typing.module.css
+++ b/fluxer_app/src/features/theme/styles/Typing.module.css
@@ -20,8 +20,8 @@
}
:global(html.reduced-motion) .dot {
- animation-duration: 1s;
- animation-iteration-count: infinite;
+ animation-duration: 1s !important;
+ animation-iteration-count: infinite !important;
}
:global(html:not(.window-focused):not(.unfocused-fully-interactive)) .dot {