Blockbase: Remove style variations #7001
Closed
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Changes proposed in this Pull Request:
As of Gutenberg 15.1/WordPress 6.2, child themes inherit the style variations of the parent theme.
This is causing issues to Blockbase child themes such as Jackson in WordPress.com, because the headstart content for a child theme is only created for the default style variation. When a different style variation is applied, the styles from the headstart content are incompatible with the new variation:
Screen.Recording.2023-04-06.at.15.51.17.mov
To mitigate that, and following this suggestion from @pbking, this PR removes the style variations from the Blockbase theme, so users are no longer able to select them for either the parent or any child theme.
This is an alternate approach of #6996 / D107265-code, which only removes the variations for Blockbase child themes and keeps them on the parent theme.
Testing instructions:
npm run deploy:push:changes
themes
cache while testing:wordpress.com/setup/site-setup/designSetup?siteSlug=<SITE_DOMAIN>
)Related issue(s):
Fixes #6941.