Radio group with error - aria-label
applied to <fieldset>
← Return to main list
This is a test case designed to determine how an error message associated with a radio group will be announced by various screen readers.
Example
Code
<fieldset aria-label="Do you like boats? Error: Choose at least one option">
<legend>Do you like boats?</legend>
<div class="form-group">
<input type="radio" id="boats-y" name="boats">
<label for="boats-y">Yes</label>
</div>
<div class="form-group">
<input type="radio" id="boats-n" name="boats">
<label for="boats-n">No</label>
</div>
<p class="error-message" id="e01">Error: Choose at least one option</p>
</fieldset>
Assistive technologies
VoiceOver
- Chrome: Yes. Radio button. 1 of 2. Do you like boats? Error: Choose at least one option Group.
- Firefox: Yes. Radio button. 1 of 2. Do you like boats? Error: Choose at least one option Group.
- Safari: Yes. Radio button. 1 of 2. Do you like boats? Error: Choose at least one option Do you like boats? Error: Choose at least one option Group. [Legend announced twice]
NVDA
- Chrome: Do you like boats? Error: Choose at least one option. Grouping. Yes. Radio button. Not checked. 1 of 2.
- Firefox: Do you like boats? Error: Choose at least one option. Grouping. Yes. Radio button. Not checked. 1 of 2.
- Edge: Do you like boats? Error: Choose at least one option. Grouping. Yes. Radio button. Not checked. 1 of 2.
JAWS
- Chrome: Do you like boats? Error: Choose at least one option. Group. Yes. Radio button. Not checked. 1 of 2.
- Firefox: To change the selection use the up or down arrow. Do you like boats? Error: Choose at least one option. Yes. Radio button. Not checked. Yes. Radio button. Not checked. 1 of 2.
- Edge: Do you like boats? Error: Choose at least one option. Group. Yes. Radio button. Not checked. 1 of 2.
← Return to main list