Skip to content

SearchControl style variants #65323

Open
Open
@jameskoster

Description

The SearchControl appearance–notably the light gray background–can make it appear disabled in some contexts.

This has come up a few times, most recently in #64935 (comment), pointed out by @keoshi.

So far as I can tell, the original design for this component was created solely for the Block inserter context. While it may work well there, it might be time to consider adding a style variant to create a more 'standard' appearance, more like regular inputs.

Muted variant

Light gray background, no border, right-aligned icon, for the block inserter:

Screenshot 2024-09-13 at 14 40 19

Regular variant

Appearance essentially matches other inputs, with decorative icon on the left, for use in data views and other non-block-inserter environments.

Screenshot 2024-09-13 at 14 43 54

Placing the decorative element (search icon) on the left, and reserving the suffix slot for the x button would align with other input types like passwords:

Screenshot 2024-09-30 at 15 19 17

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    Design SystemIssues related to the system of combining components according to best practices.Needs Design FeedbackNeeds general design feedback.[Package] Components/packages/components[Type] EnhancementA suggestion for improvement.

    Type

    No type

    Projects

    • Status

      No status
    • Status

      🏗️ In Progress

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions