Skip to content

Commit

Permalink
fix: Only show aria-label when content is empty
Browse files Browse the repository at this point in the history
Fix issue introduced in #11560
  • Loading branch information
tofumatt committed Nov 9, 2018
1 parent c746581 commit 508fa76
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/block-library/src/paragraph/edit.js
Original file line number Diff line number Diff line change
Expand Up @@ -245,7 +245,7 @@ class ParagraphBlock extends Component {
onMerge={ mergeBlocks }
onReplace={ this.onReplace }
onRemove={ () => onReplace( [] ) }
aria-label={ __( 'Empty block; type text or press the forward slash key to insert a block' ) }
aria-label={ ! content && __( 'Empty block; type text or press the forward slash key to insert a block' ) }
placeholder={ placeholder || __( 'Start writing or press / to insert a block' ) }
/>
</Fragment>
Expand Down

0 comments on commit 508fa76

Please sign in to comment.