Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix navigation block menu alignment (#17630)
* align items * hiding all those appenders * hiding the child items until selection but tricky to reselect them * we require more props down here * reafactored to not expose a new public API
- Loading branch information
1 parent
f3e8ac1
commit 2927ee7
Showing
4 changed files
with
25 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,18 @@ | ||
.wp-block-navigation-menu .block-editor-block-list__layout, | ||
.wp-block-navigation-menu { | ||
display: grid; | ||
display: flex; | ||
grid-auto-columns: min-content; | ||
grid-auto-flow: column; | ||
align-items: center; | ||
align-items: top; | ||
white-space: nowrap; | ||
} | ||
|
||
.wp-block-navigation-menu__inserter-content { | ||
width: 350px; | ||
padding: $grid-size-large; | ||
} | ||
|
||
.wp-block-navigation-menu-item { | ||
.wp-block-navigation-menu-item { | ||
margin-left: $grid-size-large; | ||
} | ||
} |