You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Yeah, so this is something that I've been thinking a lot about. We need to differentiate between keyboard focus and mouse focus and currently there's no easy way to do that. While we can certainly make that focus style nicer but the real solution would be differentiating focus states.
I've had this video on my to-watch list for a while but haven't had time to get to it yet
So mulling this over, on macOS at least, I wouldn't expect clicking on a button/link to give it focus.
I can see that but I don't think there's any easy way for us to prevent that from happening, the web has its own set of focus rules and they don't quite abide with native expectations (on Mac or Windows). That's why I'm saying that we should differentiate between keyboard focus (i.e. tabbing to a control) and mouse focus (focus received by clicking) for certain controls. It won't prevent the component becoming the activeElement but we will be able to control the focus style. In the case above (and setting aside that it's not the best focus outline to begin with) I would turn only show the focus state if someone tabs to that link.
It's worth noting that macOS differs even further from what we currently have by default but comes much closer when one turns on Full Keyboard Access.
Activity
niik commentedon Apr 4, 2017
Yeah, so this is something that I've been thinking a lot about. We need to differentiate between keyboard focus and mouse focus and currently there's no easy way to do that. While we can certainly make that focus style nicer but the real solution would be differentiating focus states.
I've had this video on my to-watch list for a while but haven't had time to get to it yet
https://www.youtube.com/watch?v=ilj2P5-5CjI&index=1&list=PLNYkxOF6rcICWx0C9LVWWVqvHlYJyqw7g
https://github.com/wicg/focus-ring
Hopefully that's something we can utilize
joshaber commentedon Apr 4, 2017
So mulling this over, on macOS at least, I wouldn't expect clicking on a button/link to give it focus.
niik commentedon Apr 4, 2017
I can see that but I don't think there's any easy way for us to prevent that from happening, the web has its own set of focus rules and they don't quite abide with native expectations (on Mac or Windows). That's why I'm saying that we should differentiate between keyboard focus (i.e. tabbing to a control) and mouse focus (focus received by clicking) for certain controls. It won't prevent the component becoming the
activeElementbut we will be able to control the focus style. In the case above (and setting aside that it's not the best focus outline to begin with) I would turn only show the focus state if someone tabs to that link.It's worth noting that macOS differs even further from what we currently have by default but comes much closer when one turns on Full Keyboard Access.
Revert "Make focused link buttons look like links"
joshaber commentedon Apr 6, 2017
Another case of kinda weird focus: