Skip to content

Commit

Permalink
Omit feat items blocks from txt color selector
Browse files Browse the repository at this point in the history
Confirmed that the featured items WooCommerce blocks are the only Woo
blocks with a dark overlay.

By omiting them from the ruleset that sets the default text color, we
allow the block to use it's set default of white text over the
background overlay, improving color contrast.
  • Loading branch information
danielwrobert committed Sep 9, 2022
1 parent 26b9de9 commit ad9d391
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion inc/customizer/class-storefront-customizer.php
Original file line number Diff line number Diff line change
Expand Up @@ -1254,7 +1254,7 @@ public function block_editor_customizer_css() {
/* WP <=5.3 */
.editor-styles-wrapper .editor-block-list__block,
/* WP >=5.4 */
.editor-styles-wrapper .block-editor-block-list__block {
.editor-styles-wrapper .block-editor-block-list__block:not(.wp-block-woocommerce-featured-product):not(.wp-block-woocommerce-featured-category) {
color: ' . $storefront_theme_mods['text_color'] . ';
}
Expand Down

0 comments on commit ad9d391

Please sign in to comment.