Skip to content

Commit

Permalink
improve my account payment methods UI
Browse files Browse the repository at this point in the history
  • Loading branch information
itambek-godaddy committed Jun 3, 2024
1 parent 2f79146 commit c208e4b
Show file tree
Hide file tree
Showing 7 changed files with 19 additions and 5 deletions.
2 changes: 2 additions & 0 deletions woocommerce/changelog.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@

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

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

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -91,9 +91,11 @@ table.woocommerce-MyAccount-paymentMethods {

.payment-method:not(.editing) {
opacity: 0.5;
pointer-events: none;
cursor: not-allowed;
}

.payment-method:hover {
.payment-method:not(.editing):hover {
opacity: 1;
}

Expand Down Expand Up @@ -144,3 +146,11 @@ table.woocommerce-MyAccount-paymentMethods {
}
}
}


// disable clicks on the "Add Payment Method" button when it's disabled
.woocommerce-MyAccount-content {
.button.disabled[href*="add-payment-method"] {
pointer-events: none;
}
}
Loading

0 comments on commit c208e4b

Please sign in to comment.