On WP 6.1, the editor style is updated, which breaks the style of the Add to Cart Button inside products grid blocks like All Products or On Sale Products block. This PR fixes that issue by dynamically generating the style for Add to Cart Button using theme modifications.
Screenshots
Before
After
How to test the changes in this Pull Request:
Check and build this PR.
Add All Products block to the page.
See the color of add to cart button look as expected.
Save the page, see the style of the button look the same between editor and front end.
Use Customizer to change the text and background color of the button.
See the color apply to both front end and editor.
Changelog
Fix - Ensure the style of the poducts grid Add to Cart button is consistent between the editor and front end.
Fix – Edit, reply and author icons are now displayed in comment list form. #1319
Fixes #2065
On WP 6.1, the editor style is updated, which breaks the style of the Add to Cart Button inside products grid blocks like
All Products
orOn Sale Products
block. This PR fixes that issue by dynamically generating the style for Add to Cart Button using theme modifications.Screenshots
How to test the changes in this Pull Request:
All Products
block to the page.Changelog
Fix - Ensure the style of the poducts grid Add to Cart button is consistent between the editor and front end.