Skip to content

Commit

Permalink
Fix issue with justification and responsive container.
Browse files Browse the repository at this point in the history
  • Loading branch information
jasmussen committed Nov 11, 2021
1 parent e04c8b0 commit b5f5a5c
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
4 changes: 4 additions & 0 deletions packages/block-library/src/navigation-submenu/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,10 @@ button.wp-block-navigation-item__content {
font-size: inherit;
font-family: inherit;
line-height: inherit;

// Buttons default to center alignment. This becomes visible
// when a menu item label is long enough to wrap.
text-align: left;
}

.wp-block-navigation-submenu__toggle {
Expand Down
3 changes: 3 additions & 0 deletions packages/block-library/src/navigation/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -380,6 +380,9 @@
overflow: auto;
padding: 0;

// Always vertically align to the top.
justify-content: flex-start;

.wp-block-navigation__submenu-icon {
display: none;
}
Expand Down

0 comments on commit b5f5a5c

Please sign in to comment.