From 7604a095ca35de2d4ecdd85d2ab3ea700be38e9d Mon Sep 17 00:00:00 2001 From: Mike Jolley Date: Tue, 10 Oct 2023 18:36:39 +0100 Subject: [PATCH] Add visibility rule --- assets/js/blocks/checkout/address-wrapper/style.scss | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/assets/js/blocks/checkout/address-wrapper/style.scss b/assets/js/blocks/checkout/address-wrapper/style.scss index 3be7c838b4d..3f18307a240 100644 --- a/assets/js/blocks/checkout/address-wrapper/style.scss +++ b/assets/js/blocks/checkout/address-wrapper/style.scss @@ -3,7 +3,7 @@ .wc-block-components-address-card-wrapper, .wc-block-components-address-form-wrapper { - transition: opacity 300ms ease-in-out, height 300ms ease-in-out; + transition: all 300ms ease-in-out; width: 100%; } @@ -13,6 +13,7 @@ } .wc-block-components-address-card-wrapper { opacity: 0; + visibility: hidden; position: absolute; top: 0; } @@ -21,8 +22,8 @@ &:not(.is-editing) { .wc-block-components-address-form-wrapper { opacity: 0; + visibility: hidden; height: 0; - pointer-events: none; } .wc-block-components-address-card-wrapper { opacity: 1;