Skip to content

Commit c208e4b

Browse files
improve my account payment methods UI
1 parent 2f79146 commit c208e4b

7 files changed

+19
-5
lines changed

woocommerce/changelog.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22

33
2024.06.03 - version 5.12.4
44
* Fix - Ensure gateway scripts are compiled as regular JS rather than modules
5+
* Fix - Address an issue where multiple save buttons were displayed when editing a payment method in My Account
6+
* Misc - Disable clicking on other payment methods when editing a payment method in My Account
57

68
2024.05.06 - version 5.12.3
79
* Fix - Ensure gateway block handler files are loaded from payment gateway framework path

woocommerce/payment-gateway/assets/css/frontend/sv-wc-payment-gateway-my-payment-methods.min.css

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

woocommerce/payment-gateway/assets/css/frontend/sv-wc-payment-gateway-my-payment-methods.min.css.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

woocommerce/payment-gateway/assets/css/frontend/sv-wc-payment-gateway-my-payment-methods.scss

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,9 +91,11 @@ table.woocommerce-MyAccount-paymentMethods {
9191

9292
.payment-method:not(.editing) {
9393
opacity: 0.5;
94+
pointer-events: none;
95+
cursor: not-allowed;
9496
}
9597

96-
.payment-method:hover {
98+
.payment-method:not(.editing):hover {
9799
opacity: 1;
98100
}
99101

@@ -144,3 +146,11 @@ table.woocommerce-MyAccount-paymentMethods {
144146
}
145147
}
146148
}
149+
150+
151+
// disable clicks on the "Add Payment Method" button when it's disabled
152+
.woocommerce-MyAccount-content {
153+
.button.disabled[href*="add-payment-method"] {
154+
pointer-events: none;
155+
}
156+
}

0 commit comments

Comments
 (0)