Closed terracoda closed 6 years ago
Screen shot from BASE on Master
Has anyone checked to see if null strings are allowed (valid code) for aria-labelledby
?
Hmm probably caused by changes in https://github.com/phetsims/scenery/issues/701
Thanks for catching this @terracoda, should be fixed in the above commit, those blank aria-labelledby attributes have been removed.
I am totally not up to speed on what you guys are implementing, but I am wondering if you considered options for creating an accessible name? Perhaps this is too high-level.
<button>My Button's Name</button>
for
attribute on a label
element to associate an html label
with html control element, e.g.,
<input id="radiobuttonIDREF" type="radio"><label for="radiobuttonIDREF">My Radio Button's Name</label>
aria-label
attribute to label an html element that does not have inner text, or label or other way to provide an accessible name, e.g.,
<input id="checkboxIDREF" type="checkbox" aria-label="My Checkbox's Name">
aria-labelledby
attribute to label an html element that can be associated with an element in the PDOM, like a heading element that would provide the elements name inner text, e.g.,
<section id="sectionIDREF" aria-labelledby="headingIDREF">
<h2 id="headingIDREF">My Section's Name</h2>
....
</section>
Of course, examples are simplified, and I am not trying to imply an order of priority with these options. There may be diverse reasons (interaction preferences, pedagogical reasons, technical reasons, visual design) on which naming option to choose.
Thanks @jessegreenberg, I'll close again as the issue has been resolved, but leave my comment.
@jessegreenberg, @zepumph, @mbarlow12, I am seeing blank
aria-labelledby=""
attributes on all elements in BASE. I'm not sure why these attributes have appeared en masse.Are you guys working on something? Is something in transition? Perhaps, there is an open issue in another repo about this?