Skip to content

Button as Link doesn't work as intended #2550

Answered by shleewhite
dholliday3 asked this question in General
Discussion options

You must be logged in to vote

Hi @dholliday3

Can you explain your use case for an anchor with no underline?

In general, buttons perform actions on the page the user is currently on and anchors take the user to another page. For consistency and clarity for users, Paste has a rule that all anchors have an underline and buttons do not have an underline (we have documentation about this in the Button vs. Anchor pattern).

The link style button doesn’t have an underline because even though it looks similar to an anchor, it is a button. We throw an error when you try to make a link style button an anchor because generally, it is preferable to use the actual Anchor component. The only time we only allow a Button with as=“a” i…

Replies: 1 comment 6 replies

Comment options

You must be logged in to vote
6 replies
@shleewhite
Comment options

@dholliday3
Comment options

@shleewhite
Comment options

@dholliday3
Comment options

@shleewhite
Comment options

Answer selected by shleewhite
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants