You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@accdc The accessible name computation needs to take into account elements with role=label, similar to the accessible name processing for the HTML LABEL element.
I'll be interested in whether the proposal will include the explicit directional label => control as in HTML rather than the label <= control direction of aria-labelledby.
Hi David,
Actually this role addition is mainly meant for role parody in the mappings, but won't likely change the way that aria-labelledby works.
E.G aria-labelledby will still need to be able to reference any element with an ID regardless what it's explicit or native role is, so the addition of role=label won't have any impact on how this works.
The questionable impact though, is whether role=label would function like a regular label when it surrounds a native form field, such as:
<label>
<input type="checkbox" /> Test
</label>
In which case, the AccName probably should do so.
E.G
<div role="label">
<input type="checkbox" /> Test
</div>
From @jongund on January 14, 2019 17:2
@accdc The accessible name computation needs to take into account elements with role=label, similar to the accessible name processing for the HTML LABEL element.
Copied from original issue: w3c/aria#887
The text was updated successfully, but these errors were encountered: