Closed terracoda closed 5 years ago
This is not a new issue. It has been happening for a long time. Apologies for not posting earlier.
@terracoda I've been trying to recreate this issue, but haven't been able to -- is there a particular way I should be trying to use my screenreader to get this issue? Thanks!
@twant, to reproduce, just tab to the checkbox. However, I have to apologize for opening this issue...I could have sworn I was not hearing this label duplication in GFLB.
I am now hearing the duplication there, too. See screenshot below.
This is just built-in duplication that cannot be avoided in a solution that is available to us. I have verified with an ARIA/screen reader expert that the only current way to avoid this label duplication is to nest the input
element inside the label
element, eliminating the need to use the for
attribute. This type of nesting not possible in Scenery.
The other way to avoid duplication is to use an aria-label
attribute instead of a native HTML label
. I do not recommend this approach as it breaks the first rule of ARIA (only use ARIA if there is no native HTML solution available). I reserve the use of aria-label
for very special cases with no visible text label.
I'll close this issue now.
This issue, if resolvable, should be resolved generally, see also https://github.com/phetsims/inverse-square-law-common/issues/74#issuecomment-509356105
@twant, I am not sure why "Solution Values" is said twice when focus in placed on the checkbox. Could you investigate?
You have the
label
element after theinput
, and I am wondering if that is the only difference between this checkbox and the ones in GFL Basics where I don't hear this type of duplication. Though if I read with the cursor keys I do get the name twice, once on the label and once on the input.