Don't use role=button
in anchor tags if it's supposed to be a link
#131
Labels
role=button
in anchor tags if it's supposed to be a link
#131
role=button
should be avoided as much as possible and instead the<button>
tag should be used. It doesn't matter if a link aesthetically looks like a button. What really decides whether an interactive element is a button or a link is this:For example in the home page, all the "Learn More" links are given a
role=button
which is wrong since it goes to a separate page. So it's a link. We should remove all suchrole=button
because it acts just like a<button>
tag for assistive technology and confusing for users.Refs: https://www.youtube.com/watch?v=8XjwDq9zG4I
The text was updated successfully, but these errors were encountered: