Support keyboard only access
If you can make your site usable with just a keyboard then it is likely that other assistive input devices can also use your site so you…
Read more, Support keyboard only accessLast updated on January 01, 2022• A11y issues
Ensure that you have clear focus and hover states, so people know when they are hovering over an element or have it focused.
If you have a site with no focus and no hover states, it is very hard to use as you do not know what you are interacting with.
Anyone who has ever used a keyboard to access a site has probably come across a site where you do not know what item is the current active element, so you don’t know what you are interacting with if you hit enter
.
outline: none
. But you should avoid doing this!The css below shows how to add focus/hover states in CSS for a link:
a {
color: blue;
text-decoration: none;
}
a:hover {
color; navy;
text-decoration: underline;
}
a:focus {
color: green;
border: 1px solid green;
}
Please consider sharing this link with your work colleagues or on social media. There are no ads on my site, I just want to promote accessibility.
Found an issue? please point them out - let me know if there is a mistake and I'll update it
Follow me on Twitter: @A11yForDevs. I post links to interesting a11y articles and resources.
If you can make your site usable with just a keyboard then it is likely that other assistive input devices can also use your site so you…
Read more, Support keyboard only accessAvoid putting text in images. If there is text in images, ensure you have a text based alternative. Screen readers will not be able to read…
Read more, Avoid text in images