Skip to content

Commit be4da0b

Browse files
rtiohtdat
andauthored
Fix styling for Test Mode badge in block checkout (#11123)
Co-authored-by: Dat Hoang <[email protected]>
1 parent c3a8579 commit be4da0b

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

changelog/fix-missing-badge

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
Significance: patch
2+
Type: fix
3+
Comment: Fix regression caused by PR #11085
4+
5+

client/checkout/blocks/style.scss

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ button.wcpay-stripelink-modal-trigger:hover {
4545
.wc-block-checkout__payment-method {
4646
input:checked ~ div {
4747
/* stylelint-disable-next-line selector-id-pattern */
48-
.wc-block-components-radio-control__label:where( #radio-control-wc-payment-method-options-woocommerce_payments__label ) {
48+
.wc-block-components-radio-control__label:where( [id^='radio-control-wc-payment-method-options-woocommerce_payments'][id$='__label'] ) {
4949
> .payment-method-label {
5050
.test-mode.badge {
5151
// hiding the badge when the payment method is not selected
@@ -56,7 +56,7 @@ button.wcpay-stripelink-modal-trigger:hover {
5656
}
5757

5858
/* stylelint-disable-next-line selector-id-pattern */
59-
.wc-block-components-radio-control__label:where( #radio-control-wc-payment-method-options-woocommerce_payments__label ) {
59+
.wc-block-components-radio-control__label:where( [id^='radio-control-wc-payment-method-options-woocommerce_payments'][id$='__label'] ) {
6060
width: 100%;
6161
display: block !important;
6262

0 commit comments

Comments
 (0)