Skip to content

Commit

Permalink
Address feedback
Browse files Browse the repository at this point in the history
  • Loading branch information
talldan committed Sep 10, 2021
1 parent 16862c5 commit 16a6998
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -322,7 +322,7 @@ describe( 'Navigation editor', () => {
] );
await visitNavigationEditor();

// Select a link block with nested links in a submenu.
// Select a submenu block with nested links in a submenu.
const parentLinkXPath =
'//div[@aria-label="Block: Submenu" and contains(.,"WordPress.org")]';
const linkBlock = await page.waitForXPath( parentLinkXPath );
Expand Down
10 changes: 1 addition & 9 deletions packages/edit-navigation/src/components/editor/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,7 @@
font-family: $default-font;

// Increase specificity.
.wp-block-navigation-item,
.wp-block-navigation-submenu {
.wp-block-navigation-item {
display: block;
margin: $grid-unit-10 0;

Expand All @@ -55,13 +54,6 @@
display: none;
}

// Menu items.
// This needs high specificity to override inherited values.
&.wp-block-navigation-item.wp-block-navigation-item,
&.wp-block-navigation-submenu .wp-block-navigation-submenu {
margin-right: 0;
}

.wp-block-navigation-item__content.wp-block-navigation-item__content.wp-block-navigation-item__content {
padding: 0.5em 1em;
margin-right: 0;
Expand Down

0 comments on commit 16a6998

Please sign in to comment.