Skip to content

Commit

Permalink
Don't show overwrite button if invalid paragraph block
Browse files Browse the repository at this point in the history
Remove the overwrite button in favor of "Attempt Fix" which should
resolve any issues with paragraphs and seems like a better solution to
restore the content verse delete.

Having four buttons to choose from for an invalid block seems like too
much to understand the different options.
  • Loading branch information
mkaz committed Feb 2, 2018
1 parent c798467 commit a0e5933
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions editor/components/block-list/invalid-block-warning.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,12 +42,12 @@ function InvalidBlockWarning( { block, attemptFixParagraph, ignoreInvalid, switc
{ sprintf( __( 'Attempt Fix' ) ) }
</Button>
) }
<Button
{ block.name !== 'core/paragraph' && ( <Button
onClick={ ignoreInvalid }
isLarge
>
{ sprintf( __( 'Overwrite' ) ) }
</Button>
</Button> ) }
{ defaultBlockType && (
<Button
onClick={ switchTo( defaultBlockType ) }
Expand Down

0 comments on commit a0e5933

Please sign in to comment.