Skip to content

Commit fc298fc

Browse files
committed
Use <span> for NavigationLink contents
1 parent caf4cf1 commit fc298fc

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

packages/block-library/src/navigation-link/edit.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -156,6 +156,7 @@ function NavigationLinkEdit( {
156156
>
157157
<div className="wp-block-navigation-link__content">
158158
<RichText
159+
tagName="span"
159160
value={ label }
160161
onChange={ ( labelValue ) => setAttributes( { label: labelValue } ) }
161162
placeholder={ itemLabelPlaceholder }
@@ -168,9 +169,9 @@ function NavigationLinkEdit( {
168169
] }
169170
/>
170171
{ showSubmenuIcon &&
171-
<div className="wp-block-navigation-link__submenu-icon">
172+
<span className="wp-block-navigation-link__submenu-icon">
172173
{ itemSubmenuIcon }
173-
</div>
174+
</span>
174175
}
175176
{ isLinkOpen && (
176177
<Popover position="bottom center">

0 commit comments

Comments
 (0)