Skip to content

A free open source IT asset/license management system

Catch-all for prefers-reduced-motion: reduce in font awesome

snipe809592326d11
diff --git a/resources/assets/less/overrides.less b/resources/assets/less/overrides.less
index 21238ab6a1..587be046f1 100644
--- a/resources/assets/less/overrides.less
+++ b/resources/assets/less/overrides.less
@@ -1455,9 +1455,16 @@ Radio toggle styles for permission settings and check/uncheck all
// loop indefinitely, which can trigger vestibular symptoms. One-shot animations
// (like the confetti burst on save) are left alone since they don't loop.
@media (prefers-reduced-motion: reduce) {
+ // Catch-all for any Font Awesome Animation utility (faa-pulse, faa-spin,
+ // faa-tada, faa-shake, faa-bounce, faa-burst, faa-flash, faa-float,
+ // faa-horizontal, faa-vertical, faa-passing, faa-ring, faa-slide, etc.)
+ // regardless of whether the animation is always-on (.animated) or hover-
+ // triggered (.animated-hover:hover). Attribute selector keeps this rule
+ // safe against future FA-Animation class additions.
+ [class*="faa-"].animated,
+ [class*="faa-"].animated-hover:hover,
.fa-spin,
- .faa-pulse.animated,
- .faa-pulse.animated-hover:hover {
+ .fa-pulse {
animation: none !important;
}
}
\ No newline at end of file