Skip to content

Let a cover's own overlay settings win over the Dark overlay style - #291

Merged
amjadr360 merged 3 commits into
mainfrom
fix/dark-overlay-respects-user
Dec 2, 2026
Merged

amjadr360 merged 3 commits into
mainfrom
fix/dark-overlay-respects-user

Conversation

@amjadr360

@amjadr360 amjadr360 commented Dec 2, 2026 •

Copy link
Copy Markdown
Contributor

Photo covers with the Dark overlay style now keep whatever overlay colour, dim or gradient someone sets on the block. Before, the stylesheet painted over those settings. The style also ships in the theme now, so it's available on every site, not just sites with a design applied.

  • If someone picks a light overlay, the cover goes back to the palette's normal colours, with dark text.
  • The 11 dark colour styles now say their inverted sections are light, so form fields and scrollbars inside an inverted section match it instead of drawing dark on light.

The stylesheet painted the overlay itself, so a user's overlay colour, dim
and gradient never applied. It now only re-points the colour names inside
a dark-overlay cover, and steps aside on a cover the editor marks light.
A cover written with the dark-overlay class had no style behind it on a
site with no design applied. The theme now registers it once, so every
site has it and its colour switch.
The 11 dark colour styles set no inverse-color-scheme, so they took the
theme's default of dark. An inverted section on those sites then drew
dark form fields and scrollbars on a light background.
@amjadr360
amjadr360 marked this pull request as ready for review December 2, 2026 13:44
@amjadr360
amjadr360 merged commit 6fce709 into main Dec 2, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant