DEV Community

Discussion on: A quick a11y CSS trick

Collapse
moopet profile image
Ben Sinclair

Ironically, yellow isn't very easy to see against the most common background colour (white). I'd go with a border as well provided it doesn't mess up the box sizing.

Collapse
keltroth profile image
Django Janny Author

You're right about the color, I choose yellow totally randomly ! Maybe not the best one ;)
And I preferred background-color over border precisely because it does not mess with box sizing ;)