mirror of
https://github.com/twbs/bootstrap.git
synced 2025-01-29 21:52:22 +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:
parent
da6b5a0551
commit
1421ca5b87
@ -12,6 +12,7 @@
|
|||||||
.custom-control {
|
.custom-control {
|
||||||
position: relative;
|
position: relative;
|
||||||
display: inline-block;
|
display: inline-block;
|
||||||
|
min-height: (1rem * $line-height-base);
|
||||||
padding-left: $custom-control-gutter;
|
padding-left: $custom-control-gutter;
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user