Skip to content

Commit

Permalink
Add a min-height: 1.5rem; to custom controls
Browse files Browse the repository at this point in the history
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
  • Loading branch information
mdo committed Oct 27, 2016
1 parent da6b5a0 commit 1421ca5
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions scss/_custom-forms.scss
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
.custom-control {
position: relative;
display: inline-block;
min-height: (1rem * $line-height-base);
padding-left: $custom-control-gutter;
cursor: pointer;

Expand Down

0 comments on commit 1421ca5

Please sign in to comment.