w3c / html-aria

ARIA in HTML
https://w3c.github.io/html-aria/
Other
181 stars 49 forks source link

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

Closed scottaohara closed 3 years ago

scottaohara commented 5 years ago

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 commented 3 years ago

this update should be accompanied by an example

scottaohara commented 3 years ago

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 commented 3 years ago

Have you checked possible issues with validators using

<a role=link aria-disabled=true>

with respect to role redundancy warnings?

scottaohara commented 3 years ago

<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 commented 3 years ago

closing as this work will be picked up in #259