This repository has been archived by the owner on Feb 23, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 219
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Ensure validation of fields occurs when collapsing fields
- Loading branch information
1 parent
ffaf21f
commit 98a5d96
Showing
6 changed files
with
109 additions
and
56 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,25 +1,30 @@ | ||
.address-fade-transition-wrapper { | ||
.wc-block-components-address-address-wrapper { | ||
position: relative; | ||
} | ||
.address-fade-transition-enter { | ||
opacity: 0; | ||
} | ||
.address-fade-transition-enter-active { | ||
opacity: 1; | ||
transition: opacity 300ms ease-in; | ||
} | ||
.address-fade-transition-enter-done { | ||
opacity: 1; | ||
} | ||
.address-fade-transition-exit { | ||
opacity: 1; | ||
position: absolute; | ||
top: 0; | ||
} | ||
.address-fade-transition-exit-active { | ||
opacity: 0; | ||
transition: opacity 300ms ease-out; | ||
} | ||
.address-fade-transition-done { | ||
opacity: 0; | ||
|
||
.wc-block-components-address-card-wrapper, | ||
.wc-block-components-address-form-wrapper { | ||
transition: opacity 300ms ease-in-out, height 300ms ease-in-out; | ||
width: 100%; | ||
} | ||
|
||
&.is-editing { | ||
.wc-block-components-address-form-wrapper { | ||
opacity: 1; | ||
} | ||
.wc-block-components-address-card-wrapper { | ||
opacity: 0; | ||
position: absolute; | ||
top: 0; | ||
} | ||
} | ||
|
||
&:not(.is-editing) { | ||
.wc-block-components-address-form-wrapper { | ||
opacity: 0; | ||
height: 0; | ||
} | ||
.wc-block-components-address-card-wrapper { | ||
opacity: 1; | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters