html - How to have a css outline on a <button> tag, only by tab, but not on click? - Stack Overflow

PHOTO EMBED

Tue Oct 05 2021 08:34:22 GMT+0000 (Coordinated Universal Time)

Saved by @roba #css

button:focus:not(:focus-visible) {
  outline: none;
}
content_copyCOPY

https://stackoverflow.com/questions/54087544/how-to-have-a-css-outline-on-a-button-tag-only-by-tab-but-not-on-click