Is there a way to disable a link using CSS?
I have a class called current-page and want links with this class to be disabled so that no action occurs when they are clicked.
current-page
From this solution:
[aria-current="page"] { pointer-events: none; cursor: default; text-decoration: none; color: black; }
<a href="link.html" aria-current="page">Link</a>
1.4m articles
1.4m replys
5 comments
57.0k users