Skip to content

Conversation

@MaggieCabrera
Copy link
Contributor

@MaggieCabrera MaggieCabrera commented Jan 15, 2026

What?

Fixes issue found on #74650 (comment)

Why?

We have removed the CSS that adds a background color when the overlay is custom so the user can decide how to style the overlay. This adds a background to the default pattern so the contents are visible when it's open. We are replicating the original behavior of the default overlay. Ideally this color would be dynamic but we don't have a way to target this from a template markup.

How?

Changed the markup of the pattern

Testing Instructions

  1. Create a new overlay template part for a given nav block
  2. insert the default pattern
  3. Check the frontend, it should have a white background

@github-actions
Copy link

github-actions bot commented Jan 15, 2026

The following accounts have interacted with this PR and/or linked issues. I will continue to update these lists as activity occurs. You can also manually ask me to refresh this list by adding the props-bot label.

If you're merging code through a pull request on GitHub, copy and paste the following into the bottom of the merge commit message.

Co-authored-by: MaggieCabrera <[email protected]>
Co-authored-by: mikachan <[email protected]>

To understand the WordPress project's expectations around crediting contributors, please review the Contributor Attribution page in the Core Handbook.

Copy link
Member

@mikachan mikachan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@MaggieCabrera MaggieCabrera merged commit e4b7728 into trunk Jan 15, 2026
51 of 53 checks passed
@MaggieCabrera MaggieCabrera deleted the add-background-to-overlay-pattern branch January 15, 2026 16:19
@github-actions github-actions bot added this to the Gutenberg 22.4 milestone Jan 15, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

[Block] Navigation Affects the Navigation Block [Type] Enhancement A suggestion for improvement.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants