Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

label role affects the accessible name computation #43

Open
jnurthen opened this issue Jan 14, 2019 · 4 comments
Open

label role affects the accessible name computation #43

jnurthen opened this issue Jan 14, 2019 · 4 comments
Assignees
Labels
Milestone

Comments

@jnurthen
Copy link
Member

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

@DavidMacDonald
Copy link

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.

@accdc
Copy link
Contributor

accdc commented Jan 15, 2019

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>

@devarshipant
Copy link

Bryan,

Would your example with role label on a div support a larger click area, as in selecting the checkbox on clicking the label?

<div role="label">
<input type="checkbox" /> Test
</div>

@jnurthen
Copy link
Member Author

@devarshipant No. The WAI-ARIA specification cannot require user agents to change native presentation and interaction patterns based on ARIA markup.

@jnurthen jnurthen changed the title label role affects the accesible name computation label role affects the accessible name computation Feb 26, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants