Skip to content

Commit 13e7d6d

Browse files
authored
Prevent WooPayments-specific styles in the Checkout block to leak to other payment methods (#11085)
1 parent 7d05fac commit 13e7d6d

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
Significance: patch
2+
Type: fix
3+
4+
Prevent WooPayments-specific styles for the Checkout block to leak to other payment methods

client/checkout/blocks/style.scss

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,8 @@ button.wcpay-stripelink-modal-trigger:hover {
4444

4545
.wc-block-checkout__payment-method {
4646
input:checked ~ div {
47-
.wc-block-components-radio-control__label {
47+
/* stylelint-disable-next-line selector-id-pattern */
48+
.wc-block-components-radio-control__label:where( #radio-control-wc-payment-method-options-woocommerce_payments__label ) {
4849
> .payment-method-label {
4950
.test-mode.badge {
5051
// hiding the badge when the payment method is not selected
@@ -54,7 +55,8 @@ button.wcpay-stripelink-modal-trigger:hover {
5455
}
5556
}
5657

57-
.wc-block-components-radio-control__label {
58+
/* stylelint-disable-next-line selector-id-pattern */
59+
.wc-block-components-radio-control__label:where( #radio-control-wc-payment-method-options-woocommerce_payments__label ) {
5860
width: 100%;
5961
display: block !important;
6062

0 commit comments

Comments
 (0)