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

Provide example/guidance on using aria-disabled on a w/out href #186

Closed
scottaohara opened this issue Oct 16, 2019 · 5 comments
Closed

Provide example/guidance on using aria-disabled on a w/out href #186

scottaohara opened this issue Oct 16, 2019 · 5 comments

Comments

@scottaohara
Copy link
Member

if authors really want to disable links, they can instead do <a role=link aria-disabled=true> as removing the href rather than jumping through all the hoops to try and suppress the various ways one can interact with a link.

@scottaohara
Copy link
Member Author

this update should be accompanied by an example

@scottaohara
Copy link
Member Author

this issue will be partially resolved when #262 is merged. an example what to do instead (e.g., an <a> w/out href used with aria-disabled=true) would need to be made to close this issue.

@stes-acc
Copy link

stes-acc commented Mar 12, 2021

Have you checked possible issues with validators using

<a role=link aria-disabled=true>

with respect to role redundancy warnings?

@scottaohara
Copy link
Member Author

<a> without href allows for any role. <a> without href is not supposed to be exposed as a link, so there's no redundancy here.

@scottaohara scottaohara changed the title aria-disabled should be discouraged from a w/href Provide example/guidance on using aria-disabled on a w/out href May 13, 2021
@scottaohara
Copy link
Member Author

closing as this work will be picked up in #259

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants