Skip to content

Button component when used as an anchor doesn't get disabled #604

Answered by SiTaggart
josamit asked this question in General
Discussion options

You must be logged in to vote

HI there @josamit, thanks for using Paste.

What we have here is unfortunately not an issue with the Paste component as such, but a limitation of the Web platform. In HTML you aren't allowed to disable a anchor, the HTML element doesn't support the disabled property. So it's something we would strongly advise against doing in your experiences.

In cases like these we would suggest coming with your design partner to a Design Systems Office hours so we can better understand what you're trying to do, and potentially offer alternative solutions.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by serifluous
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants