October 30th, 2020

Replying to a tweet from @aardrian

Yes, better for screen reader support where the JavaScript executes, but not so good for any situations—screen reader or otherwise—where JavaScript is unavailable (a link would still work as link).

I wish I could handle both scenarios.

51° N , 0° E

Also on Twitter

Reply Retweet Favourite


Adrian Roselli

You can handle both scenarios, but it involves maybe swapping elements and testing with site users. Ideal solutions may vary between sites because of different audience technology profile, skill level, expectation, etc. So less a technical issue than a testing issue.

Jeremy Keith

Ah, right, I see now that you said replacing with an actual button is better than adding a role of “button” to a link—that makes sense! So if JavaScript replaces the links with buttons, I may be on my way to covering both scenarios. adactio.com/notes/17580

Have you published a response to this? :