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 4, 2015 5:26AM


On 04/03/2015 12:12, Lynn Holdsworth wrote:
> But isn't it hugely confusing if a success criterion for one
> checkpoint fails on others? Presumably this one fails 4.1.2?

On its own, it would fail 4.1.2. Of course, you'd then also need to look
at making sure your form fields pass 4.1.2, which would lead you down
the path of using a <label> element, aria-label, aria-labelledby, etc.

> As a
> developer, if I implement this success criterion, aren't I likely to
> assume that it passes WCAG2?

You'd assume wrong. Just implementing a technique that is sufficient for
one SC does not mean it satisfies all other SCs.

For instance, imagine if you added a nice visible <label>...but then
styled it so that its color contrast is something like 1.5:1. Yes, you
just satisfied 4.1.2, but now are failing 1.4.3.

To pass WCAG2, you need to ensure all SCs are satisfied. If, as a
developer, you just take one sufficient technique that addresses one SC
and hope that this then automatically also satisfies all other SCs,
you're going to have a bad time in many cases.

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