Skip to content

Global Style Variations: Changes to JSON file are not applied immediately  #43395

@mikachan

Description

@mikachan

Description

When editing a style variation's JSON file, the styles aren't immediately applied when reloading the front end. In order to see the changes, you need to reload the Site Editor, re-select the variation from within Global Styles, and then reload the front end.

Step-by-step reproduction instructions

  1. Activate a theme with style variations, e.g. Twenty Twenty-Three
  2. Go to Global Styles and change to a different style variation
  3. Edit the chosen style variation's JSON file, e.g. change the font size of the navigation block
  4. Refresh the front end and observe that the font size has not changed
  5. Go back to Global Styles and refresh the Site Editor
  6. Re-select the chosen style variation (you should be able to select it as if it isn't activated)
  7. Reload the front end and observe that the font size has correctly updated

Screenshots, screen recording, code snippet

No response

Environment info

  • WordPress 6.0.1, GB trunk, Twenty Twenty-Three

Please confirm that you have searched existing issues in the repo.

Yes

Please confirm that you have tested with all plugins deactivated except Gutenberg.

Yes

Metadata

Metadata

Labels

Global StylesAnything related to the broader Global Styles efforts, including Styles Engine and theme.jsonNeeds DecisionNeeds a decision to be actionable or relevantNeeds Design FeedbackNeeds general design feedback.[Feature] Site EditorRelated to the overarching Site Editor (formerly "full site editing")[Feature] Theme Style VariationsRelated to style variations provided by block themes[Type] BugAn existing feature does not function as intended

Type

No type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions