I faced some strange behavior with the JAWS reader where it was reading the question labels twice.
In the below code, I added an aria-labelledby for the radio group which referenced the question id from the 'p' tag.
<div class="form-group">
<p id="question1">What is your favourite color? <span class="sr-only">select one color</span></p>
<div class="radio-group" role="radiogroup" aria-labelledby="question1">
... radio button 1 ...
... radio button 1 ...
... radio button 1 ...
</div>
</div>
Am I missing anything here?
Thanks
You aren't missing anything. If you navigate in the page with arrow keys using the virtual (browse) cursor, you effectively read "What is your favorite color ?" twice.
You can make it be read only once, but I strongly discourage you to go for any of these solutions, as they are all bad:
Side question: why are you using <div role=radiogroup">
instead of <fieldset>
and <legend>
?
It would certainly be better if you could use the later.