fix(website): respect reduced motion for the help illustration
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.
This commit is contained in:
1 parent
b5bc12079d
commit
4b7e232bfc
1 file changed
+3
@@ -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 {
|
||||
|
||||
Reference in new issue
Block a user