Skip to content

Commit

Permalink
Navigation: Allow a label to used for placeholder text.
Browse files Browse the repository at this point in the history
  • Loading branch information
gwwar committed Sep 27, 2021
1 parent 8eadcb6 commit 284ab48
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions packages/block-library/src/navigation-link/edit.js
Original file line number Diff line number Diff line change
Expand Up @@ -589,6 +589,9 @@ export default function NavigationLinkEdit( {
/* translators: label for missing values in navigation link block */
missingText = __( 'Add link' );
}
if ( label ) {
missingText = label;
}

return (
<Fragment>
Expand Down

0 comments on commit 284ab48

Please sign in to comment.