Skip to content
This repository was archived by the owner on Feb 17, 2025. It is now read-only.

Conversation

@pbking
Copy link
Contributor

@pbking pbking commented Jul 19, 2021

Changes proposed in this Pull Request:

This change ensures that all instances of post-content blocks have {"layout":{"inherit":true}} and are the TOPMOST container that has {"layout":{"inherit":true}} applied.

The post editor assumes the above situation (and is USUALLY correct). This change adjusts all templates in the theme so that it can be correct in the assumption 100% of the time.

Related issue(s):

Addresses: #4239
An alternative to: #4240
Relevant discussion in this issue: WordPress/gutenberg#33501

@pbking pbking linked an issue Jul 19, 2021 that may be closed by this pull request
@@ -1,4 +1,4 @@
<!-- wp:template-part {"slug":"header","tagName":"header","layout":{"inherit":true}} /-->
<!-- wp:template-part {"slug":"header","tagName":"header"} /-->
Copy link
Contributor Author

Choose a reason for hiding this comment

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

This I think was an unrelated change, but was discovered while scrutinizing the layout properties in the templates. This particular change just makes the markup of all usages of the header template part the same.

Copy link
Contributor

@jffng jffng left a comment

Choose a reason for hiding this comment

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

I prefer this to #4240 because it doesn't require making an exception for how alignment of nested containers is handled.

@pbking pbking force-pushed the fix/blockbase-nested-layouts branch from ba4d58b to 76148c2 Compare July 21, 2021 13:50
@pbking pbking merged commit 096080c into trunk Jul 21, 2021
@pbking pbking deleted the fix/blockbase-nested-layouts branch September 13, 2021 17:59
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Blockbase: Full width alignments not working on the frontend

3 participants