From 822043f4330247cff2ff2ee927c5c89e00b3dcfb Mon Sep 17 00:00:00 2001 From: Christian Andolf Date: Mon, 19 May 2025 15:55:39 +0200 Subject: [PATCH] fix(LOY-93): add quickfix for hiding confetti canvas when reduced motion is turned on we shouldn't need this fix but currently tsparticles doesn't support this because of a bug in their lib --- .../components/MyPages/Surprises/surprises.module.css | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/apps/scandic-web/components/MyPages/Surprises/surprises.module.css b/apps/scandic-web/components/MyPages/Surprises/surprises.module.css index 8ec8d9283..149c3e6a8 100644 --- a/apps/scandic-web/components/MyPages/Surprises/surprises.module.css +++ b/apps/scandic-web/components/MyPages/Surprises/surprises.module.css @@ -34,6 +34,10 @@ } @media screen and (min-width: 768px) and (prefers-reduced-motion) { + /* Quickfix since tsparticles doesn't support reduced motion currently */ + .confetti { + display: none; + } .overlay:before { background-image: url("/_static/img/confetti.svg"); background-repeat: no-repeat;