]> git.ipfire.org Git - thirdparty/foundation/foundation-sites.git/commitdiff
Use pull request #11433 from ncoden/fix/dropdown-menu-top-level-items-11412 for v6.5.0
authorNicolas Coden <nicolas@ncoden.fr>
Sat, 25 Aug 2018 20:33:41 +0000 (22:33 +0200)
committerNicolas Coden <nicolas@ncoden.fr>
Sat, 25 Aug 2018 20:33:41 +0000 (22:33 +0200)
6a0e3240b fix: fix Dropdown Menu top level item properties #11412

Signed-off-by: Nicolas Coden <nicolas@ncoden.fr>
scss/components/_dropdown-menu.scss

index 6972df4b99bf58dc0f953cbba8767e12b5aba29b..d2d348033b4bee11d3400fde06d53804427cbc58 100644 (file)
@@ -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
@@ -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;
     }