xilli
xilli
KPCKevin Powell - Community
Created by xilli on 6/24/2024 in #front-end
focus-visible not properly working on inputs
Hey. We are currently styling an input element and we try to show the outline when the user navigates by keyboard. There is the selector :focus-visible for that. Unfortunately it also gets triggered when we navigate by mouse. I’ve found out, that is a new and intentional behavior for inputs. Buttons and links work just fine. Is there a way to only show the outline when navigating by keyboard and not by mouse? Thanks 😀
13 replies