Issue 794
Follow-ups to the page backdrop: theme token, quality type, image preload, photo edge
Back to our planOpen
frontendtech-debtpriority: low
Summary
Small leftovers from the independent review of PR #793 (page backdrop, #777). None of them changes what visitors get today.
Details
- Move the 80% text mix used inside
PageBackdropinto a theme token, with its contrast documented and covered by the theme contract test (the theme was off-limits for #777). - Make
MediaProps.qualityaccept only the values insrc/imageQualities.js(a/** @type {const} */cast onIMAGE_QUALITIES); today it is any number. priorityis deprecated in Next 16 in favour ofpreload. Move the kit (MediaforPageHero,PageHeaderandPageBackdrop) to the new prop, and skip the backdrop's preload when the hero draws its own photo, so a page doesn't preload two candidate LCP images.- On Get Involved the first opaque
bg-surfaceband cuts the photo while it is still visible. Consider ending the wash at the hero's height so the photo fades out first.
Acceptance criteria
- Not done: No literal in
PageBackdropfor the text mix; the theme test covers it - Not done:
MediaProps.qualityrejects a value not listed inIMAGE_QUALITIESat type-check - Not done: A page with a backdrop and an image hero preloads one image
- Not done: The photo fades out before the first card band on Get Involved, in light and dark at six widths
Generated by Claude Code, opens in a new tab