E-mail List Archives
Form fields in a sentence
From: Mark Magennis
Date: Sep 7, 2023 9:46AM
- Next message: Mark Magennis: "Re: Providing accessible names with
" - Previous message: Yeti: "Re: Providing accessible names with
" - Next message in Thread: Yeti: "Re: Form fields in a sentence"
- Previous message in Thread: None
- View all messages in this Thread
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?
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?
Mark
- Next message: Mark Magennis: "Re: Providing accessible names with
" - Previous message: Yeti: "Re: Providing accessible names with
" - Next message in Thread: Yeti: "Re: Form fields in a sentence"
- Previous message in Thread: None
- View all messages in this Thread