I know that outline
is very important for usability and especially for the accessibility of the page, even here is a very interesting WebAIM article about it: link
However, outline
does not seem to match the border-radius
of elements. In the case of this button for example, see that outline
does not accompany curvature of the element, causing an undesirable effect ...
Howcanwetreatthistypeofcaseinthemostcorrectway,Isay,whatisthebestpracticeforthistypeofproblem?What"palliative" can we use without compromising accessibility and usability?
button {
width: 100px;
height: 50px;
border: 0;
border-radius: 25px;
}
<button type="submit">Button</button>