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