Skip to content

Commit

Permalink
Remove isLarge attribute from buttons
Browse files Browse the repository at this point in the history
Prevents a console error in WP 5.5 caused by the attribute
being removed in 5.5.

See:
- Removal: WordPress/gutenberg#23239
- Note about isLarge having no effect in the first place: WordPress/gutenberg#16541 (comment)
  • Loading branch information
nickcernis committed Aug 7, 2020
1 parent a774ef4 commit 18996eb
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions js/blocks/components/image.js
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,6 @@ const Image = withSelect( ( select, ownProps ) => {
{ ! isUploading && (
<>
<FormFileUpload
isLarge
disabled={ !! isUploading }
onChange={ ( event ) => {
const files = event.target.files;
Expand All @@ -122,7 +121,6 @@ const Image = withSelect( ( select, ownProps ) => {
render={ ( { open } ) => (
<div className="components-media-library-button">
<Button
isLarge
disabled={ !! isUploading }
className="editor-media-placeholder__button"
onClick={ open }
Expand All @@ -139,7 +137,6 @@ const Image = withSelect( ( select, ownProps ) => {
) }
{ imageSrc && (
<Button
isLarge
disabled={ !! isUploading }
className="gcb-image__remove"
onClick={ removeImage }
Expand Down

0 comments on commit 18996eb

Please sign in to comment.