Fix: stack coupon fields on smaller screens (#48623)
* Wrap button and input using flexbox * Use basis instead of size * changelog
This commit is contained in:
parent
ccb3d589d6
commit
c2783847c4
|
@ -13,23 +13,23 @@
|
|||
display: flex;
|
||||
width: 100%;
|
||||
margin-bottom: 0;
|
||||
gap: $gap-smaller;
|
||||
flex-wrap: wrap;
|
||||
|
||||
.wc-block-components-totals-coupon__input,
|
||||
.wc-block-components-totals-coupon__button {
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
.wc-block-components-totals-coupon__input {
|
||||
margin-bottom: 0;
|
||||
margin-top: 0;
|
||||
flex-grow: 1;
|
||||
flex: 3 1 120px;
|
||||
}
|
||||
|
||||
.wc-block-components-totals-coupon__button {
|
||||
flex-shrink: 0;
|
||||
margin-left: $gap-smaller;
|
||||
padding-left: $gap-large;
|
||||
padding-right: $gap-large;
|
||||
padding-left: $gap;
|
||||
padding-right: $gap;
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
.wc-block-components-totals-coupon__button.no-margin {
|
||||
margin: 0;
|
||||
flex: 1 1 auto;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -9,7 +9,7 @@
|
|||
@include font-size(regular);
|
||||
position: absolute;
|
||||
transform: translateY(em($gap));
|
||||
line-height: 1.25; // =20px when font-size is 16px.
|
||||
line-height: 1;
|
||||
left: em($gap-smaller + 1px);
|
||||
top: 0;
|
||||
transform-origin: top left;
|
||||
|
@ -44,7 +44,7 @@
|
|||
input[type="number"],
|
||||
input[type="email"] {
|
||||
@include font-size(regular);
|
||||
padding: em($gap);
|
||||
padding: em($gap) em($gap-smaller);
|
||||
line-height: em($gap);
|
||||
width: 100%;
|
||||
border-radius: $universal-border-radius;
|
||||
|
@ -54,7 +54,7 @@
|
|||
margin: 0;
|
||||
box-sizing: border-box;
|
||||
min-height: 0;
|
||||
max-height: 50px;
|
||||
max-height: 52px;
|
||||
background-color: #fff;
|
||||
color: currentColor;
|
||||
|
||||
|
|
|
@ -0,0 +1,4 @@
|
|||
Significance: patch
|
||||
Type: fix
|
||||
|
||||
Made coupon fields during block checkout stack on smaller screen sizes
|
Loading…
Reference in New Issue