WebAIM - Web Accessibility In Mind

E-mail List Archives

Re: Relating answer options to their question

for

From: Birkir R. Gunnarsson
Date: Sep 15, 2018 4:14PM


Well put Jon
Quick question, would providing a checkbox without a label in a
fieldset with a legend be a WCAG 4.1.2 violation?

<fieldset>
<legend>I agree to the terms</legend>
<input type="checkbox">
</fieldset>

My interpretation is that, yes it does.
Because while "I agree to the terms" is the accessible name of the
group element for the checkbox it is not the accessible name of the
checkbox itself (per the accessible name and description calculation
algorithm).
Screen readers have verbosity setttings that may include not
announcing legends for fieldsets (they shouldn't but they do), but, as
far as I know, no screen reader ignores the accessible name of a form
input element like a checkbox (certain caveats about aria labeling
support in IE11 and such aside).

Thanks
-Birkir


On 9/15/18, Jonathan Avila < <EMAIL REMOVED> > wrote:
>> I ran into an interesting, related question just yesterday - is it a WCAG
> 1.3.1 failure for a text box to have a fieldset legend, but not a label?
>
> I look at it this way.
> SC 3.3.2 covers the requirement for visible labels (graphics or text)
> SC 4.1.2 covers programmatic labels
> SC 1.3.1 In this case is there to make sure the programmatic and visible
> label coincide -- not to the point of the new WCAG 2.1 SC 2..5.3 Label in
> Name -- but that a person can make that connection that the programmatic
> name sufficiently provides the same information as communicated visually.
> SC 2.5.3 takes this to a higher level then was required previously
> explicitly indicating the same text be included but does not address
> situations where no-text graphical labels are provided such as icons without
> text. So 1.3.1 still has value in that situation even under WCAG 2.1.
>
> Jonathan
>
> Jonathan Avila, CPWA
> Chief Accessibility Officer
> Level Access
> <EMAIL REMOVED>
> 703.637.8957 office
>
> Visit us online:
> Website | Twitter | Facebook | LinkedIn | Blog
>
> Looking to boost your accessibility knowledge? Check out our free webinars!
>
> The information contained in this transmission may be attorney privileged
> and/or confidential information intended for the use of the individual or
> entity named above. If the reader of this message is not the intended
> recipient, you are hereby notified that any use, dissemination, distribution
> or copying of this communication is strictly prohibited.
>
>