Skip to content

Commit

Permalink
removed the CSS hiding the inserter
Browse files Browse the repository at this point in the history
  • Loading branch information
draganescu committed Jul 29, 2019
1 parent 4f13e08 commit 50d2018
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 11 deletions.
10 changes: 0 additions & 10 deletions packages/block-library/src/navigation-menu/editor.scss
Original file line number Diff line number Diff line change
Expand Up @@ -7,16 +7,6 @@
white-space: nowrap;
}

// Todo: corerctly allow custom inserters and remove the need for this display none.
.wp-block-navigation-menu .block-editor-block-list__layout .block-list-appender {
display: none;
}

// Custom inserter
.wp-block-navigation-menu__inserter {
display: inline-block;
}

.wp-block-navigation-menu__inserter-content {
width: 350px;
padding: $grid-size-large;
Expand Down
11 changes: 10 additions & 1 deletion packages/block-library/src/navigation-menu/save.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,12 @@
/**
* WordPress dependencies
*/
import { InnerBlocks } from '@wordpress/block-editor';

export default function save() {
return null;
return (
<nav>
<InnerBlocks.Content />
</nav>
);
}

0 comments on commit 50d2018

Please sign in to comment.