Skip to content
This repository has been archived by the owner on Feb 23, 2024. It is now read-only.

Commit

Permalink
Fix the Layout for Shipping and Billing Address Forms in the Checkout…
Browse files Browse the repository at this point in the history
… Block (#11486)

* Fix empty spaces in the address form

* Fix checkout layout for Japan and Hungary

* Added some comments in CSS
  • Loading branch information
tarhi-saad authored Nov 10, 2023
1 parent b06f00d commit fec58f2
Showing 1 changed file with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,11 @@
display: flex;
flex-wrap: wrap;
justify-content: space-between;
gap: 0 calc(#{$gap-smaller} * 2); // Required for spacing especially when using flex-grow

.wc-block-components-text-input,
.wc-block-components-country-input,
.wc-block-components-state-input {
flex: 0 0 calc(50% - #{$gap-smaller});
flex: 1 0 calc(50% - #{$gap-smaller}); // "flex-grow = 1" allows the input to grow to fill the space
box-sizing: border-box;

&:nth-of-type(2),
Expand All @@ -33,7 +33,8 @@

.wc-block-components-address-form__company,
.wc-block-components-address-form__address_1,
.wc-block-components-address-form__address_2 {
.wc-block-components-address-form__address_2,
.wc-block-components-country-input {
flex: 0 0 100%;
}
}
Expand Down

0 comments on commit fec58f2

Please sign in to comment.