Skip to content

Use Background Image popover for Cover block media controls #64703

@richtabor

Description

@richtabor

I propose we use the same media controls that we use for the group block's "Background Image" PanelBody, for a "Media" PanelBody within the cover block's Inspector.

It would closely resemble the site logo's "Media" panel for uploading a logo.

This could pave the way for putting the cover block's media in the Styles panel of the Inspector in a future iteration, so you don't have to flip between Settings and Styles to adjust the focal point and change the overlay, etc.

CleanShot 2024-08-21 at 21 11 08

CleanShot 2024-08-21 at 21 12 29

As an aside, the group block's background image popover lacks a bit of finesse. Would be great if they were shared so that fine-tuning one does the other as well.

Metadata

Metadata

Assignees

No one assigned

    Labels

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

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions