Accessibility for Buttons: A Comprehensive Guide
Accessibility for Buttons: A Comprehensive Guide
Ready to see AudioEye in action?
Watch Demo
Buttons play an essential role in the user experience, which means they need to be accessible and usable by as many people as possible. Learn how to create accessible buttons below.
Think about your online browsing and how often you’re clicking on buttons. Whether it’s ‘Buy Now’, or ‘Submit’, you’re likely frequently using buttons while online.
Now imagine that all buttons were suddenly disabled or unfindable. Imagine how disruptive — and frustrating — that would be. In this situation, you have two options: try to find some clever workaround or abandon your task completely.
Unfortunately, the situation above isn’t uncommon for many users. For users with disabilities, trying to click on buttons is an unnecessarily complicated task on the majority of websites. Understandably, this results in users abandoning a site for something more accessible.
If your website doesn’t have accessible buttons, you’re driving customers — and potential sales — away. So how do you create accessible buttons? And how do these interactive elements create a more inclusive experience for all users? We’ll discuss all that and more below.
How to Design for Inclusion
With the legal and ethical requirements in mind, let’s jump into how to design accessible buttons.
Form and Structure
Buttons are made to be interacted with so large, simple buttons are always better. Remember, not everyone is able to simply click on a button so it’s important they have a large touch target size and can be activated with keyboard commands. You’ll also want to avoid using overly complex designs when building buttons as they can get lost on the page and negatively impact the user experience.
Color and Contrast
Buttons should be easily noticeable by all users — not just those with disabilities. And color plays a huge role in this. You’ll want to ensure the color of the button as well as the text have sufficient color contrast. As we mentioned above, text should have a minimum contrast ratio of 4.5:1 and a contrast ratio of 3:1 between the button and the background. Using a color contrast checker can help you make more accessible color choices.
Labeling for Clarity
Think of your buttons like gateways to other parts of your website. Users are likely to be hesitant walking through an unlabeled mysterious door; that same hesitancy can be applied to unclear, ambiguous buttons. Give each button a clear, distinct, and straightforward label. You may need to use WAI-ARIA (also known as ARIA roles) to help with this. Including ARIA labels in your semantic HTML eliminates confusion or anxiety around buttons and sets clear expectations around what the ensuing action is. More importantly, clear labels help to foster inclusivity on your site as simple, clear directions help all users — including those without disabilities — can use your site.
Understanding Button States
You may not know that buttons have different states outside of their default one. This includes hover, click, active, etc. Each of these states needs to have distinct visual cues so users with disabilities and assistive technologies can use them. This helps assistive technology users easily understand which button they’re interacting with. Implementing ‘tabindex’ into your HTML is an easy way to bring focus to button widgets or dialog boxes.
Ensuring Keyboard Navigability
Not all users are able to use a mouse to navigate the web which means users need to be able to navigate and click on buttons using just their keyboard. When building and designing buttons, ensure they’re responsive to keyboard shortcuts. Button elements should also be designed with a focus state, meaning when a button receives focus (i.e. is tabbed to or hovered over), it presents a clear visual cue to the user.
Screen Reader Compatibility
A huge percentage of people with visual disabilities (87.6% according to a WebAIM survey) rely on screen readers to use the web. These devices read the content on a webpage aloud to users so you’ll want to test how these devices vocalize your buttons. Consider whether or not the text makes sense or conveys a clear action to users. We also recommended testing with various types of screen readers, such as NVDA, Voiceover, or JAWS, to increase compatibility and usability.
Frequently asked questions
Ready to see AudioEye in action?
Watch Demo
Ready to test your website for accessibility?
Share post
Topics:
Keep Reading
How to Test a Website for Accessibility: Quick Test Guide
Testing your website for accessibility doesn't have to be overwhelming. Discover quick ways to test your digital content for accessibility in this quick test guide.
accessibility
December 02, 2024
Web Accessibility Consultants: How the Human + Automation Approach Affords Maximum Protection
Regular web accessibility consultants help with remediation, compliance and legal challenges. Find out how AudioEye's approach goes a step beyond.
accessibility
November 29, 2024
WCAG 2.0 vs. 2.1: What’s the Difference?
Discover the key differences between WCAG 2.0 and 2.1. See how the updates impact web accessibility and how you can meet the latest standards to ensure compliance.
accessibility
November 20, 2024