Skip to content

Commit

Permalink
Navigation: Remove .has-submenu-icon
Browse files Browse the repository at this point in the history
  • Loading branch information
noisysocks committed Jul 3, 2020
1 parent 98bd05a commit fbc0695
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 4 deletions.
2 changes: 1 addition & 1 deletion packages/block-library/src/navigation-link/edit.js
Original file line number Diff line number Diff line change
Expand Up @@ -47,14 +47,14 @@ function NavigationLinkEdit( {
isImmediateParentOfSelectedBlock,
isParentOfSelectedBlock,
setAttributes,
showSubmenuIcon,
insertLinkBlock,
textColor,
backgroundColor,
rgbTextColor,
rgbBackgroundColor,
saveEntityRecord,
selectedBlockHasDescendants,
showSubmenuIcon,
userCanCreatePages = false,
insertBlocksAfter,
mergeBlocks,
Expand Down
1 change: 0 additions & 1 deletion packages/block-library/src/navigation/edit.js
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,6 @@ function Navigation( {
[ `items-justified-${ attributes.itemsJustification }` ]: attributes.itemsJustification,
[ fontSize.class ]: fontSize.class,
'is-vertical': attributes.orientation === 'vertical',
'has-submenu-icon': attributes.showSubmenuIcon,
} );

// UI State: rendered Block UI
Expand Down
3 changes: 1 addition & 2 deletions packages/block-library/src/navigation/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -134,8 +134,7 @@ function render_block_core_navigation( $attributes, $content, $block ) {
isset( $attributes['className'] ) ? array( $attributes['className'] ) : array(),
( isset( $attributes['orientation'] ) && 'vertical' === $attributes['orientation'] ) ? array( 'is-vertical' ) : array(),
isset( $attributes['itemsJustification'] ) ? array( 'items-justified-' . $attributes['itemsJustification'] ) : array(),
isset( $attributes['align'] ) ? array( 'align' . $attributes['align'] ) : array(),
isset( $attributes['showSubmenuIcon'] ) && $attributes['showSubmenuIcon'] ? array( 'has-submenu-icon' ) : array()
isset( $attributes['align'] ) ? array( 'align' . $attributes['align'] ) : array()
);
$class_attribute = sprintf( ' class="%s"', esc_attr( implode( ' ', $classes ) ) );
$style_attribute = ( $colors['inline_styles'] || $font_sizes['inline_styles'] )
Expand Down

0 comments on commit fbc0695

Please sign in to comment.