We have some buttons, which are styled with css and have some icons like this:
This button has as default outline property, so that everytime we click on it, it has an outline (in chrome blue):
to get rid of it, we can of course overwrite this property like:
outline: none
but then when we tab through and reach this button, it will also not have any outline, which is a bad practice for accesibility.
Can we achive this so that this outline appears only when we come on this button with tab, but not when we click on it?
Just as info: We have also some a tags which seems visually just like that, and with a tags we have exact this behaviour we want, outlines appear only when we tab on to that link, but not on click. We just want to have exact same behaviour with button tags also.

