Skip to content

Search: Width support is missing from theme.json #42159

Open

Description

@roseg43

What problem does this address?

This issue is meant to be a follow-up feature for #42079, suggested by @skorasaurus . After adding support to toggle the Width settings panel for the Button block using theme.json, we should add the same support for the Width setting on the Search block now that there will be a related property intheme.json.

What is your proposed solution?

In the Search block's Edit component, only show the Width setting if true === spacing.width in theme.json, using useSetting() to get the value of spacing.width

Activity

  1. added
    [Block] Search
    [Type] Enhancement
    on Jul 5, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    [Block] Search[Type] Enhancement

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions