0
0
mirror of https://github.com/twbs/bootstrap.git synced 2025-01-28 20:52:21 +01:00

Add a min-height: 1.5rem; to custom controls

Fixes #20730.

This change computes the minimum needed height of what a single line of text would be for the custom checkboxes/radios. This is required because our custom control indicators are positioned absolutely, meaning they cannot be clearfixed or anything like that. Using a computed value means it should scale nicely in case of customization
This commit is contained in:
Mark Otto 2016-10-27 14:32:56 -07:00
parent da6b5a0551
commit 1421ca5b87

View File

@ -12,6 +12,7 @@
.custom-control {
position: relative;
display: inline-block;
min-height: (1rem * $line-height-base);
padding-left: $custom-control-gutter;
cursor: pointer;