DEV Community

loading...

"Practically" Accessible

binyamin profile image Binyamin Green ・1 min read

I was designing a button component today, and it was looking pretty good. But when I decided to check accessibility with a plugin, I realized that I had issues. I spent hours playing with my design before I came to a wonderful conclusion. Dark text on a light background is more accessible than light text on a dark background.

A side-by-side comparison of accessible buttons

That's my a11y gem for the week. I'd love to hear what you've picked up recently.

Discussion

pic
Editor guide