Style Book: Inconsistent preview of Custom HTML widget between styles variations #48152
Labels
[Feature] Theme Style Variations
Related to style variations provided by block themes
Global Styles
Anything related to the broader Global Styles efforts, including Styles Engine and theme.json
[Type] Bug
An existing feature does not function as intended
Description
When browsing through the style variations of a block theme, the Custom HTML widget preview on the Style Book is displayed inconsistently. This is because the background of the currently active style variation is carried over to other style variations.
This issue affected WP 6.2 Beta 2 and Gutenberg 15.1.1 as well.
I've checked #9129 but it is not related.
Step-by-step reproduction instructions
Screenshots, screen recording, code snippet
On WP 6.2 Beta 2
![custom-html-inconsistent-display-stylebook](https://user-images.githubusercontent.com/79677758/219538838-6d0b3d26-4bda-49fb-8500-5b6be4b44904.gif)
On Gutenberg 15.1.1
![custom-html-inconsistent-display-stylebook-gutenberg](https://user-images.githubusercontent.com/79677758/219538886-039fbe0a-ebf6-49dc-b67b-45efc77ba777.gif)
Environment info
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
The text was updated successfully, but these errors were encountered: