Update selector for hiding express checkout

This commit is contained in:
Alex P. 2025-04-14 09:43:46 +03:00
parent c34ae55a7b
commit f98720969a
No known key found for this signature in database
GPG key ID: 54487A734A204D71
2 changed files with 2 additions and 2 deletions

View file

@ -101,7 +101,7 @@ $fast-transition-duration: 0.5s;
}
// 3. Express Payment Block
.wp-block-woocommerce-checkout-express-payment-block {
.wc-block-components-express-payment--checkout, .wp-block-woocommerce-checkout-express-payment-block {
transition: opacity $transition-duration ease-in,
scale $transition-duration ease-in,
display $transition-duration ease-in;

View file

@ -10,7 +10,7 @@ import { STORE_NAME } from '../stores/axoStore';
*/
export const setupAuthenticationClassToggle = () => {
const targetSelector =
'.wp-block-woocommerce-checkout-express-payment-block';
'.wc-block-components-express-payment--checkout, .wp-block-woocommerce-checkout-express-payment-block';
const authClass = 'wc-block-axo-is-authenticated';
const updateAuthenticationClass = () => {