Skip to content

Commit

Permalink
Component-Dropdown: Add variable for dropdown header padding (#554)
Browse files Browse the repository at this point in the history
  • Loading branch information
mbrambilla committed Feb 19, 2020
1 parent 6aafc64 commit e37cb6e
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 1 deletion.
1 change: 1 addition & 0 deletions scss/_settings.scss
Expand Up @@ -1066,6 +1066,7 @@ $dropdown-link-disabled-bg: $component-disabled-bg !default;
$dropdown-item-padding-x: 1.125rem !default;
$dropdown-item-padding-y: .125rem !default;

$dropdown-header-padding: $dropdown-item-padding-y $dropdown-item-padding-x !default;
$dropdown-header-font-size: ($font-size-base * .875) !default;
$dropdown-header-font-weight: $font-weight-bold !default;
$dropdown-header-color: $uibase-500 !default;
Expand Down
2 changes: 1 addition & 1 deletion scss/component/_dropdown.scss
Expand Up @@ -156,7 +156,7 @@
@if $enable-dropdown-header {
.dropdown-header {
display: block;
padding: $dropdown-item-padding-y $dropdown-item-padding-x;
padding: $dropdown-header-padding;
margin-bottom: 0;
@include font-size($dropdown-header-font-size);
font-weight: $dropdown-header-font-weight;
Expand Down
8 changes: 8 additions & 0 deletions site/4.0/widgets/dropdown.md
Expand Up @@ -1084,6 +1084,14 @@ The available [Customization options]({{ site.path }}/{{ version.docs }}/get-sta
Horizontal padding for dropdown menu links.
</td>
</tr>
<tr>
<td><code>$dropdown-header-padding</code></td>
<td>string</td>
<td><code>$dropdown-item-padding-y $dropdown-item-padding-x</code></td>
<td>
Padding for dropdown menu headers.
</td>
</tr>
<tr>
<td><code>$dropdown-header-font-size</code></td>
<td>string</td>
Expand Down

0 comments on commit e37cb6e

Please sign in to comment.