Skip to content

Commit

Permalink
Add border-radius to dropdown items (#27703)
Browse files Browse the repository at this point in the history
  • Loading branch information
royklutman authored and XhmikosR committed Nov 21, 2018
1 parent 31d6d03 commit e7e43ed
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
8 changes: 8 additions & 0 deletions scss/_dropdown.scss
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,14 @@
background-color: transparent; // For `<button>`s
border: 0; // For `<button>`s

&:first-child {
@include border-top-radius($dropdown-inner-border-radius);
}

&:last-child {
@include border-bottom-radius($dropdown-inner-border-radius);
}

@include hover-focus {
color: $dropdown-link-hover-color;
text-decoration: none;
Expand Down
1 change: 1 addition & 0 deletions scss/_variables.scss
Original file line number Diff line number Diff line change
Expand Up @@ -657,6 +657,7 @@ $dropdown-bg: $white !default;
$dropdown-border-color: rgba($black, .15) !default;
$dropdown-border-radius: $border-radius !default;
$dropdown-border-width: $border-width !default;
$dropdown-inner-border-radius: calc(#{$dropdown-border-radius} - #{$dropdown-border-width}) !default;
$dropdown-divider-bg: $gray-200 !default;
$dropdown-box-shadow: 0 .5rem 1rem rgba($black, .175) !default;

Expand Down

0 comments on commit e7e43ed

Please sign in to comment.