WebAIM - Web Accessibility In Mind

E-mail List Archives

Re: Unlabelled form field with adjacent button as label?

for

From: Patrick H. Lauke
Date: Mar 1, 2015 4:52PM


On 01/03/2015 16:08, Lynn Holdsworth wrote:
> Hi Jonathan,
>
> Thanks for the confirmation - I fweared that was the case but hoped
> I'd interpreted it incorrectly.
>
> Yes, I understand that sufficient techniques aren't the only way. But
> I wish that this particular one didn't exist, as I don't think an
> adjacent button should serve as a label by itself.

It satisfies 3.3.2 - as in, a sighted user will likely understand the
purpose of the text field. *IF* the text field has no explicit name,
though (no visually hidden <label>, no title attribute, no aria-label,
etc), then of course it can still satisfy 3.3.2 but will fail at least
4.1.2 (assuming that your concern here is that the technique would be
seen as being sufficient for all types of users, and provides a
suggested solution that passes all other SCs...which of course it doesn't).

P
--
Patrick H. Lauke

www.splintered.co.uk | https://github.com/patrickhlauke
http://flickr.com/photos/redux/ | http://redux.deviantart.com
twitter: @patrick_h_lauke | skype: patrick_h_lauke