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

Stop theme defaults from overriding the Featured Item blocks text color #2039

Merged
merged 4 commits into from
Sep 14, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion inc/customizer/class-storefront-customizer.php
Original file line number Diff line number Diff line change
Expand Up @@ -1246,9 +1246,15 @@ 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(:has(div.has-background-dim)) {
color: ' . $storefront_theme_mods['text_color'] . ';
}
/* This following ruleset is a fallback for browsers that do not support the :has() selector. It can be removed once support reaches our requirements. */
@supports not (selector(:has(*))) {
.editor-styles-wrapper .block-editor-block-list__block:not(.wp-block-woocommerce-featured-product, .wp-block-woocommerce-featured-category) {
color: ' . $storefront_theme_mods['text_color'] . ';
}
}

.editor-styles-wrapper a,
.wp-block-freeform.block-library-rich-text__tinymce a {
Expand Down