Skip to content

Commit

Permalink
Merge pull request #11433 from ncoden/fix/dropdown-menu-top-level-ite…
Browse files Browse the repository at this point in the history
…ms-11412

fix: fix Dropdown Menu top level item properties #11412
  • Loading branch information
ncoden committed Aug 9, 2018
2 parents 038f24a + 6a0e324 commit 3bbc707
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions scss/components/_dropdown-menu.scss
Expand Up @@ -28,11 +28,11 @@ $dropdownmenu-min-width: 200px !default;

/// Background color for top level items.
/// @type Color
$dropdownmenu-background: $white !default;
$dropdownmenu-background: null !default;

/// Background color for dropdowns.
/// @type Color
$dropdownmenu-submenu-background: $dropdownmenu-background !default;
$dropdownmenu-submenu-background: $white !default;

/// Padding for top level items.
/// @type Number
Expand Down Expand Up @@ -148,12 +148,16 @@ $dropdown-menu-item-background-active: transparent !default;

a {
@include disable-mouse-outline;
}

// Top-level item
> li > a {
background: $dropdownmenu-background;
padding: $dropdownmenu-padding;
}

// Active state
.is-active > a {
// Top-level item active state
> li.is-active > a {
background: $dropdown-menu-item-background-active;
color: $dropdown-menu-item-color-active;
}
Expand Down

0 comments on commit 3bbc707

Please sign in to comment.