Skip to content

Commit

Permalink
Update WooCommerce product colors when inside of 'has-secondary-backg…
Browse files Browse the repository at this point in the history
…round-color' block. (#905)

Co-authored-by: aledesma-godaddy <[email protected]>
  • Loading branch information
AnthonyLedesma and aledesma-godaddy authored Feb 16, 2024
1 parent 0da7808 commit 35beeac
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions .dev/assets/shared/css/woocommerce/single-product.scss
Original file line number Diff line number Diff line change
Expand Up @@ -161,6 +161,15 @@
color: var(--go-caption--color--text);
}

// Nested within a block with a secondary background color.
// We should use alternate colors for text within a secondary background.
.has-secondary-background-color .wc-block-grid .wc-block-grid__products {
.wc-block-grid__product-title,
.wc-block-grid__product-price.price .woocommerce-Price-amount {
color: var(--go--color--primary);
}
}

.woocommerce-Price-amount {
color: var(--go-heading--color--text);
}
Expand Down

0 comments on commit 35beeac

Please sign in to comment.