WebAIM - Web Accessibility In Mind

E-mail List Archives

Re: Unlabelled form field with adjacent button as label?

for

From: Steve Faulkner
Date: Mar 4, 2015 5:15AM


Hi Lynn, I am not questioning the need for an accessible name for a
control, but in limited situations the accessible name does not need to be
provided using a visible <label>.

Note any control that does not have an accessible name fails criteria 4.1.2
Name, Role, Value [1]

The accessible name for a control(exposed via accessibility APIs in
browsers) is calculated from a variety of sources [2], the fallback method
to provide accessible name for a control (if no other sources are provided)
is the title attribute.


[1] http://www.w3.org/TR/WCAG20/#ensure-compat
[2]
http://rawgit.com/w3c/aria/master/html-aam/html-aam.html#accessible-name-and-description-calculation

--

Regards

SteveF
HTML 5.1 <http://www.w3.org/html/wg/drafts/html/master/>;

On 4 March 2015 at 03:42, Lynn Holdsworth < <EMAIL REMOVED> > wrote:

> Hi Steve,
>
> If I'm ploughing through a large form, or looking for a particular
> form element, I'll pull up the JAWS forms list (Insert+F5). If an
> element doesn't have a label, JAWS will say "unlabelled 1",
> "unlabelled 2" etc. for each consecutive unlabelled field.
>
> Adding ARIA-LABEL or ARIA-LABELLEDBY to the mix fixes this problem in
> JAWS 16 (I haven't tested older versions).
>
> I've knocked up a quick set of examples to illustrate this. It's at:
>
> http://behindtheyellowline.org.uk/examples/unlabelled.htm
>
> Example 1 (sufficient technique = unlabelled textbox) and example 4
> (using ARIA-DESCRIBEDBY) bring up "unlabelled X" in the JAWS forms
> list.
>
> KR, Lynn
>
> On 01/03/2015, Steve Faulkner < <EMAIL REMOVED> > wrote:
> > On 1 March 2015 at 16:08, Lynn Holdsworth < <EMAIL REMOVED> >
> > wrote:
> >
> >> 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.
> >>
> >
> >
> > why?
> >
> > --
> >
> > Regards
> >
> > SteveF
> > HTML 5.1 <http://www.w3.org/html/wg/drafts/html/master/>;
> > > > > > > >
> > > >