Skip to content

Adds media replace flow to the cover block#19583

Merged
draganescu merged 2 commits intomasterfrom
add/media-replace-to-cover
Jan 14, 2020
Merged

Adds media replace flow to the cover block#19583
draganescu merged 2 commits intomasterfrom
add/media-replace-to-cover

Conversation

@draganescu
Copy link
Copy Markdown
Contributor

Description

Adds the new media replace control to the toolbar of the cover block.

How has this been tested?

Tested locally.

Screenshots

cover-media-replace

Types of changes

Non breaking enhancement.

@draganescu draganescu added [Type] Enhancement A suggestion for improvement. [Block] Cover Affects the Cover Block - used to display content laid over a background image labels Jan 11, 2020
<MediaReplaceFlow
mediaURL={ url }
allowedTypes={ ALLOWED_MEDIA_TYPES }
accept="image/*,video/*"
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why does this need to be specified twice given ALLOWED_MEDIA_TYPES already says the same?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes that is a very good question :) and the reason why one of them always ends up wrong

Copy link
Copy Markdown
Member

@Soean Soean left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code looks good and replacement works.

@draganescu draganescu merged commit 67db0c6 into master Jan 14, 2020
@draganescu draganescu deleted the add/media-replace-to-cover branch January 14, 2020 06:23
@ellatrix ellatrix added this to the Gutenberg 7.3 milestone Jan 20, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

[Block] Cover Affects the Cover Block - used to display content laid over a background image [Type] Enhancement A suggestion for improvement.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants