Skip to content

Commit 6e3c3f5

Browse files
fix(my-account): hide payment method dropdown if only has one child and is disabled (#4472)
1 parent 8eb7cb6 commit 6e3c3f5

1 file changed

Lines changed: 8 additions & 2 deletions

File tree

src/newspack-ui/scss/elements/woocommerce/_my-account.scss

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -138,9 +138,15 @@
138138
}
139139
}
140140
}
141-
#payment-methods .newspack-ui__row > .payment-method {
142-
min-height: 106px;
141+
#payment-methods {
142+
.newspack-ui__dropdown:has( ul > li:only-child .disabled ) {
143+
display: none;
144+
}
145+
.newspack-ui__row > .payment-method {
146+
min-height: 106px;
147+
}
143148
}
149+
144150
#wcpay-upe-element,
145151
.wcpay-upe-element {
146152
margin-bottom: var(--newspack-ui-spacer-2);

0 commit comments

Comments
 (0)