Button vs Anchor #1680
Answered
by
TheSisb
wilfredomerced
asked this question in
Q&A
Button vs Anchor
#1680
-
An engineer brought up a question around the use of a button on this page The question was around whether the "Continue to Setup Guide" should be a button or an anchor? |
Beta Was this translation helpful? Give feedback.
Answered by
TheSisb
Jul 20, 2021
Replies: 1 comment
-
Hi @wilfredomerced, If that button is performing an in-page action, then a Button is fine. If it is redirecting to a new page, then the preferred approach for accessibility is to use an Anchor. We do have Buttons that behave like Anchors as seems to be used in the mockup. Please only use those as a last resort as it is not as accessible of a solution. |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
SiTaggart
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi @wilfredomerced,
If that button is performing an in-page action, then a Button is fine. If it is redirecting to a new page, then the preferred approach for accessibility is to use an Anchor.
We do have Buttons that behave like Anchors as seems to be used in the mockup. Please only use those as a last resort as it is not as accessible of a solution.