Skip to content

Commit

Permalink
fix(dropdown): following alpha.6 update, fix dropdown item padding
Browse files Browse the repository at this point in the history
  • Loading branch information
Lausselloic committed Jan 9, 2017
1 parent 3729911 commit 7ef49b8
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
1 change: 1 addition & 0 deletions scss/_custom.scss
Original file line number Diff line number Diff line change
Expand Up @@ -613,6 +613,7 @@ $dropdown-link-active-bg: $black;
$dropdown-link-disabled-color: $gray;

$dropdown-item-padding-x: .625rem;
$dropdown-item-padding-y: .625rem;

$dropdown-header-color: #000;

Expand Down
10 changes: 8 additions & 2 deletions scss/_dropdown.scss
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,10 @@
.dropdown-item {
display: block;
width: 100%; // For `<button>`s
padding: 3px $dropdown-item-padding-x;
// Boosted mod
// set padding top and bottom dynamic by adding a var in _custom.scss
padding: $dropdown-item-padding-y $dropdown-item-padding-x;
// End mod
clear: both;
font-weight: $font-weight-normal;
color: $dropdown-link-color;
Expand Down Expand Up @@ -130,7 +133,10 @@
// Dropdown section headers
.dropdown-header {
display: block;
padding: $dropdown-padding-y $dropdown-item-padding-x;
// Boosted Mod
// replace $dropdown-item-y used by native bootstrap by $dropdown-item-padding-y to be consistent with dropdown-item padding
padding: $dropdown-item-padding-y $dropdown-item-padding-x;
// end mod
margin-bottom: 0; // for use with heading elements
font-size: $font-size-sm;
color: $dropdown-header-color;
Expand Down

0 comments on commit 7ef49b8

Please sign in to comment.