Re: [csswg-drafts] [selectors] `:focus-visible` should match when focus is programmatically moved into a dialog (#7214)

For the case of "focus moved from outside a dialog, to a button within that dialog", yes, focus ring should be shown. Native dialogs do this in macOS, and Chrome does it for its UI dialogs as well. I'm not sure what Windows does these days.

It could be argued that this should be specific only to buttons and not *any* element. I don't have strong opinions on that. But needing to indicate what ENTER (or SPACE) might do in a dialog that just appeared (especially in a modal dialog) is, I think, quite a standard and necessary UX convention.

-- 
GitHub Notification of comment by craigkovatch
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/7214#issuecomment-1099594320 using your GitHub account


-- 
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config

Received on Thursday, 14 April 2022 20:29:19 UTC