Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Global styles: custom styles don't persist after style switching #65391

Open
junglej77 opened this issue Sep 17, 2024 · 1 comment
Open

Global styles: custom styles don't persist after style switching #65391

junglej77 opened this issue Sep 17, 2024 · 1 comment
Labels
[Feature] Theme Style Variations Related to style variations provided by block themes [Type] Enhancement A suggestion for improvement.

Comments

@junglej77
Copy link

Description

When switching global styles, the custom styles (e.g., font size set to XXL) are not persisting. After switching to another global style (e.g., Style A) and back to the default style, the previous custom changes are lost.

Steps to Reproduce

  1. Go to the Global Styles panel.
  2. Modify the font size (e.g., set it to XXL).
  3. Switch to a different global style (e.g., Style A).
  4. Switch back to the default global style.
  5. The font size change is lost, and the global style reverts to the original default settings.

Expected Behavior

I expect the custom styles to persist after switching between global styles. For example, when I modify the font size in the default global style, switch to Style A, and then return to the default style, I expect the custom font size to remain as XXL.

Additional Context

Gutenberg version: [Include the version you're using]
WordPress version: [Include your WordPress version]

@junglej77 junglej77 added the [Type] Enhancement A suggestion for improvement. label Sep 17, 2024
@talldan talldan added the [Feature] Theme Style Variations Related to style variations provided by block themes label Sep 17, 2024
@annezazu
Copy link
Contributor

Thanks for opening this issue! Previously, this feedback has been stored here: #46397 (comment)

Can we close this out in favor of that issue, unless I'm missing something?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[Feature] Theme Style Variations Related to style variations provided by block themes [Type] Enhancement A suggestion for improvement.
Projects
None yet
Development

No branches or pull requests

3 participants