Skip to content

Commit

Permalink
Fix submenu direction justification regression (#31414)
Browse files Browse the repository at this point in the history
  • Loading branch information
jasmussen authored May 5, 2021
1 parent 0d93c15 commit 7201096
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions packages/block-library/src/navigation/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -183,9 +183,11 @@

// When justified space-between, open submenus leftward for last menu item.
// When justified right, open all submenus leftwards.
&.items-justified-space-between > .submenu-container > .has-child:last-child,
&.items-justified-space-between > .wp-block-navigation__container > .has-child:last-child,
&.items-justified-right .has-child {
// This needs high specificity.
&.wp-block-navigation.items-justified-space-between > .submenu-container > .has-child:last-child,
&.wp-block-navigation.items-justified-space-between > .wp-block-navigation__container > .has-child:last-child,
&.wp-block-navigation.items-justified-right .has-child {

// First submenu.
.submenu-container,
.wp-block-navigation-link__container {
Expand Down

0 comments on commit 7201096

Please sign in to comment.