Skip to content

Is there a disabled state for an anchor? #1637

Answered by nkrantz
mjanssen2021 asked this question in Q&A
Discussion options

You must be logged in to vote

Hey, @mjanssen2021!

Updating my previous answer with a bit more context:

We don't have a disabled state for the Anchor component, but in general we recommend using Buttons to launch Modals. The distinction between Buttons and Anchors informs your customers (especially those who are using assistive technology) of what they can expect to happen when they interact with the component. Anchors should open pages, while Buttons should perform actions.

URLs don't have a disabled state in Paste because it's not a supported interaction in general (there's no disabled state for the HTML a tag). There are hack-y ways to get around disabling an anchor, but it can be confusing for users.

On the other h…

Replies: 1 comment

Comment options

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