Skip to content

Commit

Permalink
Address feedback.
Browse files Browse the repository at this point in the history
  • Loading branch information
jasmussen committed Mar 17, 2021
1 parent e3025de commit 522806d
Showing 1 changed file with 9 additions and 11 deletions.
20 changes: 9 additions & 11 deletions packages/block-library/src/navigation/editor.scss
Original file line number Diff line number Diff line change
Expand Up @@ -42,18 +42,16 @@
background-color: inherit;
}

// Styles for submenu flyout
.has-child {
// Only show the flyout when the parent menu item is selected.
// Do not show it on hover.
&,
&:hover {
> .wp-block-navigation-link__container {
opacity: 0;
visibility: hidden;
}
// Only show the flyout on hover if the parent menu item is selected.
.wp-block-navigation:not(.is-selected):not(.has-child-selected) .has-child:hover {
> .wp-block-navigation-link__container {
opacity: 0;
visibility: hidden;
}
}

// Styles for submenu flyout
.has-child {
&.is-selected,
&.has-child-selected,
// Show the submenu list when is dragging and drag enter the list item.
Expand All @@ -65,7 +63,7 @@
}
}

// IE fix for submenu visibility on parent focus
// IE fix for submenu visibility on parent focus.
.is-editing > .wp-block-navigation__container {
visibility: visible;
opacity: 1;
Expand Down

0 comments on commit 522806d

Please sign in to comment.