-
I'm implementing a design where most of the links look like buttons. My instinctive approach to implementing them is:
I like this approach for the following reasons:
I don't see this pattern much, though. I'm more likely to see a
Furthermore, for my specific use case, I have to use hash-based routing (this is a non-console project), so I appreciate the extra abstraction this approach gives me. Can you please either:
Thanks Paste crew <3 |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Hi @sebm Before anyone gives a full answer, you're on the right lines and the Button vs Anchor section, followed by the accessibility section on the Button component page should help answer some of the missing pieces. What might be nice in addition to the question would be a screen shot of what you're trying to achieve. By the sounds of it, you might be running against the final bullet point in the Accessibility section:
This is where the screenshot might help give better guidance on what to do with the design, before we get into implementation details. In general terms of wiring up the Anchor or Button component to something like react router, the Link component has a |
Beta Was this translation helpful? Give feedback.
Hi @sebm
Before anyone gives a full answer, you're on the right lines and the Button vs Anchor section, followed by the accessibility section on the Button component page should help answer some of the missing pieces.
What might be nice in addition to the question would be a screen shot of what you're trying to achieve. By the sounds of it, you might be running against the final bullet point in the Accessibility section: