Skip to content

Commit

Permalink
Use <span> for NavigationLink contents
Browse files Browse the repository at this point in the history
  • Loading branch information
WunderBart committed Jan 17, 2020
1 parent 43395d1 commit 5912226
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions packages/block-library/src/navigation-link/edit.js
Original file line number Diff line number Diff line change
Expand Up @@ -156,6 +156,7 @@ function NavigationLinkEdit( {
>
<div className="wp-block-navigation-link__content">
<RichText
tagName="span"
value={ label }
onChange={ ( labelValue ) => setAttributes( { label: labelValue } ) }
placeholder={ itemLabelPlaceholder }
Expand All @@ -168,9 +169,9 @@ function NavigationLinkEdit( {
] }
/>
{ showSubmenuIcon &&
<div className="wp-block-navigation-link__submenu-icon">
<span className="wp-block-navigation-link__submenu-icon">
{ itemSubmenuIcon }
</div>
</span>
}
{ isLinkOpen && (
<Popover position="bottom center">
Expand Down

0 comments on commit 5912226

Please sign in to comment.