Designing Accessible Keyboard Focus States With CSS

A small CSS decision can have a much bigger impact on how easily someone is able to navigate your website.We can adjust a property's outline’s width, style and color with the outline property.outline: [width] [style] [color]; Sometimes developers use this property to completely remove the outline an element might have on focus. For example:button:focus { outline: none; } It feels like a small design request. A designer might not want an outline on focus and the page might not match the mockup. A developer takes the request, adds 3 lines of code and removes the outline. The page passes automatic accessibility checks and the team believes the task is done. However, the little outline has a big
…