What I did in the past for accessibility is when the tab was pressed to apply the css class to the body with javascript, for example .keyboard-active, and so that the focus style is applied only if this class is active.
.keyboard-active a:focus {
outline: thin dotted;
outline: 5px auto -webkit-focus-ring-color;
outline-offset: -1px;
}
, , javascript .keyboard-active ( ).
, ADA.
sass ( , SO ), ada :
.keyboard-active {
a {
&:focus {
outline: thin dotted;
outline: 5px auto -webkit-focus-ring-color;
outline-offset: -1px;
}
}
}