Skip to content

Commit

Permalink
Update comments
Browse files Browse the repository at this point in the history
  • Loading branch information
adamziel committed May 7, 2020
1 parent bb4ac8b commit 10c6bdf
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
4 changes: 3 additions & 1 deletion packages/block-library/src/navigation/edit.js
Original file line number Diff line number Diff line change
Expand Up @@ -264,7 +264,9 @@ function Navigation( {
<InnerBlocks
ref={ ref }
allowedBlocks={ [ 'core/navigation-link' ] }
renderAppender={ isSelected ? InnerBlocks.DefaultAppender : false }
renderAppender={
isSelected ? InnerBlocks.DefaultAppender : false
}
templateInsertUpdatesSelection={ false }
__experimentalMoverDirection={
attributes.orientation || 'horizontal'
Expand Down
3 changes: 2 additions & 1 deletion packages/block-library/src/navigation/editor.scss
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ $navigation-item-height: 46px;
// Styles for submenu flyout
.has-child {
// Only show the flyout when the parent menu item is selected.
// Specifically, do not show it on hover.
// Do not show it on hover.
&,
&:hover {
> .wp-block-navigation__container {
Expand All @@ -54,6 +54,7 @@ $navigation-item-height: 46px;
}
}

// Adjust the appender margin to match other menu items
.wp-block-navigation__container {
.block-list-appender .block-editor-button-block-appender {
margin-left: $grid-unit-10 * 2;
Expand Down

0 comments on commit 10c6bdf

Please sign in to comment.