Checkbox Control: Fix squished checkboxes when label text wraps (https://github.com/woocommerce/woocommerce-blocks/pull/5192) (https://github.com/woocommerce/woocommerce-blocks/pull/5206)
On the front-end, checkboxes with labels would look squished when the labels wrapped on a second line. That was due to the flex container taking too much space for the label as the checkbox minimum dimensions was set in `px` rather than `em`, making it work differently depending on the relative font size.
This commit is contained in:
parent
6e079b9a4b
commit
57fcb28720
|
@ -18,8 +18,8 @@
|
|||
width: em(24px);
|
||||
margin: 0;
|
||||
margin-right: $gap;
|
||||
min-height: 24px;
|
||||
min-width: 24px;
|
||||
min-height: em(24px);
|
||||
min-width: em(24px);
|
||||
overflow: hidden;
|
||||
position: static;
|
||||
vertical-align: middle;
|
||||
|
|
Loading…
Reference in New Issue