Why do the default buttons don't show any outline styles on click but the custom button shows a outline style on click?
How do I remove the outline styles from a custom button on click but keep the outline styles when the users uses the keyboard to navigate to it (same behavior like the default buttons)?
.btn {
display: inline-block;
padding: 12px;
background: cyan;
border: none;
}
<div>
<button type="button">Why no outline styles on click?</button>
</div>
<div style="margin-top: 24px">
<button class="btn">Why outline styles on click?</button>
</div>
UPDATE: I can't use outline: none for accessibility reasons. Refer: http://www.outlinenone.com/