WebAIM - Web Accessibility In Mind

E-mail List Archives

Re: Clear text within search edit field

for

From: Birkir R. Gunnarsson
Date: Sep 14, 2024 9:12AM


The mouse user needs a form of input, most likely a keyboard, to enter the
search input value.
For inputs that are predictable, e.g. first name or address, users could
use an auto-fill solution, but you are not likely to enter the same thing
every time into a search input.

In other words, mouse users are likely to have a keyboard with all the
conveniences of keyboard shortcuts for clearing an input.

So why do people add a clear icon into an input, and if they bother to do
that, why don't they make it a button?

I agree that this is a usability/best practice issue, not a flagrant WCAG
violation, I'm just trying to make sense of this pattern.