E-mail List Archives
Re: Form fields in a sentence
From: Patrick H. Lauke
Date: Sep 7, 2023 11:10AM
- Next message: Nick Bromley: "Re: Providing accessible names with
" - Previous message: Mark Magennis: "Re: Providing accessible names with
" - Next message in Thread: glen walker: "Re: Form fields in a sentence"
- Previous message in Thread: Mark Magennis: "Re: Form fields in a sentence"
- View all messages in this Thread
On 07/09/2023 16:46, Mark Magennis wrote:
> Suppose I have a page where two text input fields are presented within a sentence of text (and I can't tell the designer to do this a different way). For example, suppose the sentence was like this, where the fields are shown as "[input]":
>
> My favourite country is [input] and favourite sport is [input].
>
> It seems to me that appropriate names for these two fields would be "favourite country" and "favourite sport".
>
> Could the intervening text, "My favourite country is" and "and favourite sport is", be given aria-hidden="true", leaving just the two fields exposed to AT? Would there be any downside to doing this? Or is it important that the visible text is exposed? Or alternatively, should just "My", "is", "and", and "is" have aria-hidden so that the text labels exposed to AT are identical to the field names?
Non-SR users are able to read the whole thing (once filled in) as a
completely formed sentence. The same should be possible for SR users, so
I wouldn't hide it from them.
> Another question is, if I make "favourite country" and "favourite sport" bold to support voice activation users, would that pass WCAG SC 2.5.3 Label in Name in your opinion?
I'd say so, yes. And if those words weren't bold, I'd actually have a
hard time deciding for definitive what the pass/fail cut-off point there
would be (as the SC is eminently vague for things that don't fall under
a fairly limited "there's a visible label" scenario).
P
--
Patrick H. Lauke
https://www.splintered.co.uk/ | https://github.com/patrickhlauke
https://flickr.com/photos/redux/ | https://www.deviantart.com/redux
https://mastodon.social/@patrick_h_lauke | skype: patrick_h_lauke
- Next message: Nick Bromley: "Re: Providing accessible names with
" - Previous message: Mark Magennis: "Re: Providing accessible names with
" - Next message in Thread: glen walker: "Re: Form fields in a sentence"
- Previous message in Thread: Mark Magennis: "Re: Form fields in a sentence"
- View all messages in this Thread