Focus vs Focus-Visible

PHOTO EMBED

Wed Jan 05 2022 09:32:59 GMT+0000 (UTC)

Saved by @gorlanova #css #a11y

.next-image-button:focus {
  outline: none;
}
.next-image-button:focus-visible {
  outline: 3px solid currentColor; /* That'll show 'em */
}
content_copyCOPY

https://dev.to/bharathvajganesan/focus-vs-focus-within-vs-focus-visible-14e4