UX Collective

We believe designers are thinkers as much as they are makers. https://linktr.ee/uxc

Follow publication

Member-only story

Accessible does not mean ugly

Michael J. Fordham
UX Collective
Published in
7 min readApr 7, 2019

When you’re developing a website or an app, it’s easy to forget that you are making it for people with different needs to you. When you finally push a nice, shiny, Dribbble-worthy product into the world, you might think it’s going to be the same great experience for everyone. However, things aren’t that simple — as is life. People are different, they have needs that vary and if you plan for everyone to be able to use your site, you need to ensure you’ve taken the time to make it accessible to them.

Here are a few things you can do right now to improve accessibility on your site:

Outlines

Sometimes a user might not be able to navigate your site with a conventional mouse. Some users rely on navigating with the use of the tab key, getting to the button or input they need, and then continuing with their journey.

When a user tabs onto an element though, they usually see a pretty ugly focus outline which ruins the aesthetic that your carefully designed site is trying to go for. However, we can improve that.

A great design ruined by an ugly halo (courtesy of Dribbble)

The outline property in CSS is pretty restrictive, but there is actually quite a good alternative to it; the box-shadow. Box shadows are supported on every browser (apart from Opera Mini), and - when applied to an element on focus - have a very similar impact to outline.

Support for box-shadows across browsers (via Can I Use)

What’s even better about the box-shadow property though is that it actually wraps around your element tightly (say you had a button with a border-radius of 4px, an outline would produce a rectangular halo around it, but a box-shadow hugs all the curves). A box-shadow can also be customised a bit more than an outline. In fact, there’s a great site for it. Adding a transition (again — supported on everything apart from Opera Mini) is the cherry on top of the visual cake. Here’s an example:

Create an account to read the full story.

The author made this story available to Medium members only.
If you’re new to Medium, create a new account to read this story on us.

Or, continue in mobile web

Already have an account? Sign in

Written by Michael J. Fordham

UX Designer and Software Engineer, interested in the future of innovative UX. I mainly write about design, development, data and AI. www.lightningux.design

Write a response