Skip to content

Individual Block Custom CSS should be hidden when block is inside template preview #76429

@fabiankaegy

Description

@fabiankaegy

In block themes you can have blocks live inside the template but still have part of their content editable. So for example the post title & post featured image blocks allow you to still edit their content when the "Show Template" option is active.

This functionality only works if the fields that are editable save to something other than local block attributes.

Currently the Custom CSS field which was added in #73959 that lives inside the advanced inspector is still visible and editable in that preview. But the value cannot get saved.

The solution here should be that the field is hidden in that mode same as all of the other fields.

Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    [Feature] Design ToolsTools that impact the appearance of blocks both to expand the number of tools and improve the experi[Status] In ProgressTracking issues with work in progress[Type] BugAn existing feature does not function as intended

    Type

    No fields configured for Bug.

    Projects

    Status

    ✅ Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions