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

Additional CSS Erased When Switching Style Variations in WordPress 6.2 #50685

Closed
amjadr360 opened this issue May 17, 2023 · 2 comments
Closed
Labels
[Feature] Theme Style Variations Related to style variations provided by block themes [Type] Bug An existing feature does not function as intended

Comments

@amjadr360
Copy link

Description

The Additional CSS feature in WordPress 6.2 is not functioning as expected when switching style variations. Currently, any custom CSS entered into the Additional CSS field gets erased when a user switches to a different style variation and does not reappear when the user reverts back to the original style variation.

Expected behavior:

When switching between different style variations, the custom CSS entered into the Additional CSS field should persist. It should not be erased and should remain available for the user across all style variations.

This issue could potentially impact user experience, particularly for users who heavily utilize custom CSS for their site designs. It is important that user customizations persist across style variations for a more consistent and user-friendly experience.

Step-by-step reproduction instructions

  1. Open WordPress 6.2 site editor.
  2. Navigate to the Additional CSS field under Global Styles.
  3. Enter custom CSS and save.
  4. Switch to a different style variation.
  5. Observe that the custom CSS entered earlier has been erased from the Additional CSS field.
  6. Switch back to the original style variation.
  7. Notice that the Additional CSS field remains empty and does not reload the custom CSS entered earlier.

Screenshots, screen recording, code snippet

Monosnap.screencast.2023-05-17.09-34-09.mp4

Environment info

WordPress version: 6.2
Gutenberg version: 15.7.1
Active Theme: Twenty Twenty-Three
Browsers: Chrome
Device and Operating System: Macbook

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

@mrfoxtalbot mrfoxtalbot added [Type] Bug An existing feature does not function as intended [Feature] Theme Style Variations Related to style variations provided by block themes labels May 20, 2023
@mrfoxtalbot
Copy link

Ugh, that sucks. Thank you for reporting this, I was able to reproduce this on my end.

@annezazu
Copy link
Contributor

annezazu commented Jun 2, 2023

Hey there! Thanks for reporting. This is a duplicate of the current issue: #47433 (comment) I'm going to close this out as a result but feel free to reopen if I missed something.

@annezazu annezazu closed this as completed Jun 2, 2023
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] Bug An existing feature does not function as intended
Projects
None yet
Development

No branches or pull requests

3 participants