link - button accessibility?

is it OK to style a link like a button from an accessible standpoint?
8 Replies
vince
vince15mo ago
A lot of websites do it, so I'd say sure. Look at primary call to action links in websites.
vince
vince15mo ago
No description
vince
vince15mo ago
Those are all links. (This is mailchimp's website btw)
Vince_M
Vince_MOP15mo ago
I know a lot of sites do it but is it accessible?
vince
vince15mo ago
I don't see why it wouldn't be but I'm not an expert in accessibility
Misha Sosnin
Misha Sosnin15mo ago
Yes, it’s ok) Two things to consider: consistency of your UI elements, and if it’s really necessary to do so.
Jochem
Jochem15mo ago
I think the main concern is that you should ensure that links take you to a different page, and buttons perform actions, either on the same page or by submitting a form that redirects you. Styling then doesn't matter, as long as you don't do stuff like remove the outline in all situations and keep other accessibility concerns in mind (like contrast)
Vince_M
Vince_MOP15mo ago
Thank you Vince, Misha and Jochem. I have been styling my links like buttons but using the class .btn and such using BEM. I just am getting deeper and deeper into accessibility and would like to have my sites as accessible as I can. Thanks again.
Want results from more Discord servers?
Add your server