Skip to content

Commit

Permalink
Dropdown Header font size now references a css variable
Browse files Browse the repository at this point in the history
  • Loading branch information
craigiswayne committed Nov 8, 2023
1 parent a4d2f59 commit 0158b2f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
3 changes: 2 additions & 1 deletion scss/_dropdown.scss
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@
--#{$prefix}dropdown-item-padding-x: #{$dropdown-item-padding-x};
--#{$prefix}dropdown-item-padding-y: #{$dropdown-item-padding-y};
--#{$prefix}dropdown-header-color: #{$dropdown-header-color};
--#{$prefix}dropdown-header-font-size: #{$font-size-sm};
--#{$prefix}dropdown-header-padding-x: #{$dropdown-header-padding-x};
--#{$prefix}dropdown-header-padding-y: #{$dropdown-header-padding-y};
// scss-docs-end dropdown-css-vars
Expand Down Expand Up @@ -219,7 +220,7 @@
display: block;
padding: var(--#{$prefix}dropdown-header-padding-y) var(--#{$prefix}dropdown-header-padding-x);
margin-bottom: 0; // for use with heading elements
@include font-size($font-size-sm);
@include font-size(var(--#{$prefix}dropdown-header-font-size));
color: var(--#{$prefix}dropdown-header-color);
white-space: nowrap; // as with > li > a
}
Expand Down
1 change: 1 addition & 0 deletions scss/_variables.scss
Original file line number Diff line number Diff line change
Expand Up @@ -1263,6 +1263,7 @@ $dropdown-item-padding-y: $spacer * .25 !default;
$dropdown-item-padding-x: $spacer !default;

$dropdown-header-color: $gray-600 !default;
$dropdown-header-font-size: $font-size-sm !default;
$dropdown-header-padding-x: $dropdown-item-padding-x !default;
$dropdown-header-padding-y: $dropdown-padding-y !default;
// fusv-disable
Expand Down

0 comments on commit 0158b2f

Please sign in to comment.