Tibor Martini
but you don’t use it on your website?
a:focus-visible {
outline-offset: 0.25em;
outline-width: 0.25em;
outline-color: currentColor;
}
…makes any website better
but you don’t use it on your website?
@adactio I like similar declarations within :target { } as well.
@adactio I don’t think focus rings need to be bigger and more offset on big text than on smaller text, I’d go with px or maybe rem so they’re a consistent size/offset as you navigate.
currentColor is a good default to be reasonably sure it’ll be visible on the background color but ideally it’s a different color that stands out from other parts of the design, like borders and box-shadow.
6 Shares
# Shared by Thomas Beduneau on Wednesday, March 26th, 2025 at 5:42pm
# Shared by numa bulcub on Wednesday, March 26th, 2025 at 6:04pm
# Shared by Jérémy Renard on Wednesday, March 26th, 2025 at 6:11pm
# Shared by Erica on Wednesday, March 26th, 2025 at 7:41pm
# Shared by lydivette roldán on Wednesday, March 26th, 2025 at 11:30pm
# Shared by Bastien Calou on Thursday, March 27th, 2025 at 9:42am