Skip to content

Commit

Permalink
feat(breadcrumb): add font weight CSS var (#1252)
Browse files Browse the repository at this point in the history
  • Loading branch information
louismaximepiton authored Jun 8, 2022
1 parent 5ccdf2c commit bc8f505
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
3 changes: 2 additions & 1 deletion scss/_breadcrumb.scss
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
--#{$prefix}breadcrumb-padding-y: #{$breadcrumb-padding-y};
--#{$prefix}breadcrumb-margin-bottom: #{$breadcrumb-margin-bottom};
@include rfs($breadcrumb-font-size, --#{$prefix}breadcrumb-font-size);
--#{$prefix}breadcrumb-font-weight: #{$breadcrumb-font-weight}; // Boosted mod
--#{$prefix}breadcrumb-bg: #{$breadcrumb-bg};
--#{$prefix}breadcrumb-border-radius: #{$breadcrumb-border-radius};
--#{$prefix}breadcrumb-divider-color: #{$breadcrumb-divider-color};
Expand All @@ -18,7 +19,7 @@
padding: var(--#{$prefix}breadcrumb-padding-y) var(--#{$prefix}breadcrumb-padding-x);
margin-bottom: var(--#{$prefix}breadcrumb-margin-bottom);
@include font-size(var(--#{$prefix}breadcrumb-font-size));
font-weight: $font-weight-bold; // Boosted mod
font-weight: var(--#{$prefix}breadcrumb-font-weight); // Boosted mod
list-style: none;
background-color: var(--#{$prefix}breadcrumb-bg);
@include border-radius(var(--#{$prefix}breadcrumb-border-radius));
Expand Down
1 change: 1 addition & 0 deletions scss/_variables.scss
Original file line number Diff line number Diff line change
Expand Up @@ -1796,6 +1796,7 @@ $title-bar-border-color-dark: $gray-700 !default;

// scss-docs-start breadcrumb-variables
$breadcrumb-font-size: $font-size-sm !default;
$breadcrumb-font-weight: $font-weight-bold !default; // Boosted mod

$breadcrumb-padding-y: .5rem !default;
$breadcrumb-padding-x: 0 !default;
Expand Down

0 comments on commit bc8f505

Please sign in to comment.