aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMark Otto <[email protected]>2016-10-27 14:32:56 -0700
committerMark Otto <[email protected]>2016-10-27 14:32:56 -0700
commit1421ca5b8790df8b29f555bda4b495852137773a (patch)
tree4d1bcc558bf00fb458bbe690ade679e72ae0130e
parentda6b5a055123937b06960e39c27308214a9374bc (diff)
downloadbootstrap-1421ca5b8790df8b29f555bda4b495852137773a.tar.xz
bootstrap-1421ca5b8790df8b29f555bda4b495852137773a.zip
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
-rw-r--r--scss/_custom-forms.scss1
1 files changed, 1 insertions, 0 deletions
diff --git a/scss/_custom-forms.scss b/scss/_custom-forms.scss
index e74f5c744..5880f2cdc 100644
--- a/scss/_custom-forms.scss
+++ b/scss/_custom-forms.scss
@@ -12,6 +12,7 @@
.custom-control {
position: relative;
display: inline-block;
+ min-height: (1rem * $line-height-base);
padding-left: $custom-control-gutter;
cursor: pointer;