From 4b7e232bfc5b8ea5b4444bd6c6c950dfef7ac553 Mon Sep 17 00:00:00 2001 From: TNTcraft <35992542+TNTcraftHIM@users.noreply.github.com> Date: Sat, 21 Nov 2026 07:11:31 -0400 Subject: [PATCH] fix(website): respect reduced motion for the help illustration MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Keep the help-center illustration still when the page requests reduced motion. Chromium's background-image rendering did not apply the embedded SVG media preference during the public-page check, so the page selects the asset's existing still frame. Verified the explicit reduced-motion rule with unchanged hero screenshots two seconds apart, alongside the normal animated view. Website and documentation checks pass; no App/Server package is published. --- site/docs/.vitepress/theme/style.css | 3 +++ 1 file changed, 3 insertions(+) diff --git a/site/docs/.vitepress/theme/style.css b/site/docs/.vitepress/theme/style.css index 4eb27607d..24ded0306 100644 --- a/site/docs/.vitepress/theme/style.css +++ b/site/docs/.vitepress/theme/style.css @@ -53,6 +53,9 @@ html[data-reduced-motion] .identity * { animation: none !important; } content: ""; position: absolute; z-index: -1; inset: 8% 3% 5% 59%; background: url("../../../assets/living-room.svg") center / contain no-repeat; } +@media (prefers-reduced-motion: reduce) { + .help-hero::after { background-image: url("../../../assets/living-room.svg#still"); } +} .help-hero h1 { max-width: 60%; font-size: clamp(34px, 4.6vw, 62px); line-height: 1.08; font-weight: 740; letter-spacing: -.045em; text-wrap: balance; } .help-hero p { max-width: 55%; margin: 10px 0 20px; color: var(--muted); line-height: 1.6; } .help-search {