Improve padding and text wrapping

This commit is contained in:
Thomas Roberts 2024-07-18 15:28:44 +01:00
parent 56b3e56e6f
commit 78504d5d0f
No known key found for this signature in database
GPG Key ID: 0262BEBCBE336365
1 changed files with 10 additions and 3 deletions

View File

@ -41,10 +41,8 @@
.wc-block-components-radio-control__description-group {
@include font-size(smaller);
// Use balance, then pretty so that browser support for pretty is preferred, but falls back to balance if not supported.
// Use balance as this is not a good candidate for pretty. Pretty is intended for body copy which this is not.
text-wrap: balance;
text-wrap: pretty;
// This targets the rate *description* and prevents the rules applying to the delivery_time.
.wc-block-components-radio-control__description {
padding-right: $gap-small;
@ -57,6 +55,15 @@
}
}
.is-large {
.wc-block-components-shipping-rates-control__package {
// This targets the rate *description* and prevents the rules applying to the delivery_time.
.wc-block-components-radio-control__description {
padding-right: $gap;
}
}
}
.wc-block-components-shipping-rates-control__package-items {
@include font-size(small);
display: block;