Skip to content

Commit

Permalink
Fix wrapping, fix z index issue.
Browse files Browse the repository at this point in the history
  • Loading branch information
jasmussen authored and Vicente Canales committed Nov 5, 2021
1 parent 09635f7 commit a800969
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 5 deletions.
1 change: 1 addition & 0 deletions packages/block-library/src/navigation-link/editor.scss
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@
min-width: 200px !important;
height: auto !important;
width: auto !important;
overflow: visible !important;
}
}
}
Expand Down
1 change: 1 addition & 0 deletions packages/block-library/src/navigation/editor.scss
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@
.wp-block-navigation__container.is-parent-of-selected-block {
visibility: visible;
opacity: 1;
overflow: visible;
}

// Low specificity default to ensure background color applies to submenus.
Expand Down
6 changes: 1 addition & 5 deletions packages/block-library/src/navigation/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -127,10 +127,6 @@
display: flex;
flex-grow: 1;

// Without this, the changing to zero on hover-out can cause wrapping and
// result in an invinite hover/hover-out loop.
white-space: nowrap;

// Right-align the chevron in submenus.
.wp-block-navigation__submenu-icon {
margin-right: 0;
Expand Down Expand Up @@ -446,7 +442,7 @@
display: contents;
width: 100%;
position: relative;
z-index: 2;
z-index: auto;
background-color: inherit;

.wp-block-navigation__responsive-container-close {
Expand Down

0 comments on commit a800969

Please sign in to comment.