Skip to content

Unify the search fields #56388

@afercia

Description

@afercia

Description

In a few places in the editor, a 'Search' field is in use. There are a few occurrences that are largely inconsistent, both visually and in terms of labelling, semantics, usage of the placeholder.

I'm not sure why there's such inconsistency. To me, it makes sense to establish a well defined pattern that is the best for visuals, usability, accessibility, and then reuse that pattern where necessary. Instead, having serch fields that look all differentand are labelled inconsistently doesn't help user experience and adds unnecessary cognitive load.

A few examples:

In the Patterns explorer modal dialog:

patterns search

In the (so far experimental) Dataviews > pages:

dataviews pages search

In the Fonts modal dialog:

fonts search

@WordPress/gutenberg-design I'd think this is a good case to add to the design system documentation, see #53615. That would help contributors to this project to be trained and educated to re-use existing, established, patterns instead of introducing inconsistent ones.

Step-by-step reproduction instructions

  • Observe the inconsistent Search fields at the following locations:
  • Post editor > Inserter > Patterns > Explore all patterns
  • Enable the 'New admin views' experiment and go to the Site editor > Pages > Manage all pages
  • Site editor > Styles > Typography > Manage fonts (the Aa icon button) > Install Fonts

Screenshots, screen recording, code snippet

No response

Environment info

No response

Please confirm that you have searched existing issues in the repo.

Yes

Please confirm that you have tested with all plugins deactivated except Gutenberg.

Yes

Metadata

Metadata

Assignees

No one assigned

    Labels

    Needs Design FeedbackNeeds general design feedback.[Focus] Accessibility (a11y)Changes that impact accessibility and need corresponding review (e.g. markup changes).[Package] Edit Post/packages/edit-post[Package] Edit Site/packages/edit-site[Type] BugAn existing feature does not function as intended

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions