9
I know that the outline
is very important for usability and especially for the accessibility of the page, including here is a very interesting Webaim article about it: https://webaim.org/blog/plague-of-outline-0/
But the outline
does not seem to follow the border-radius
elements. In the case of this button for example, see that the outline
does not accompany curvature of the element, causing an unwanted effect...
How could we treat this kind of case as correctly as possible, I mean, what is the best practice for this kind of problem? Which "palliative" we can use without compromising accessibility and usability?
button {
width: 100px;
height: 50px;
border: 0;
border-radius: 25px;
}
<button type="submit">Button</button>