link - button accessibility?

is it OK to style a link like a button from an accessible standpoint?
8 Replies
vince
vince16mo ago
A lot of websites do it, so I'd say sure. Look at primary call to action links in websites.
vince
vince16mo ago
No description
vince
vince16mo ago
Those are all links. (This is mailchimp's website btw)
Vince_M
Vince_MOP16mo ago
I know a lot of sites do it but is it accessible?
vince
vince16mo ago
I don't see why it wouldn't be but I'm not an expert in accessibility
Misha Sosnin
Misha Sosnin16mo ago
Yes, it’s ok) Two things to consider: consistency of your UI elements, and if it’s really necessary to do so.
Jochem
Jochem16mo 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_MOP16mo 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