Skip to content

Improve the search bar's clear button #8535

@loic-sharma

Description

@loic-sharma

pub.dev's search bar has an 'x' button on the right to clear the current query:

Image

Some potential improvements for this button:

  1. It's hard to see in dark mode. Perhaps it should be lighter to increase the color contrast.
  2. You can't focus it by pressing tab. This isn't ideal for accessibility
  3. When you hover over the button, the cursor should switch to pointer to indicate the x is clickable. Currently, the cursor stays the default pointer cursor.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions