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

craigkovatch has just created a new issue for https://github.com/w3c/csswg-drafts:

== [selectors] `:focus-visible` should match when focus is programmatically moved into a dialog ==
Whether <dialog> or [role="dialog], focus should become visible when it is programmatically moved from outside to inside the dialog. i.e. if a user clicks a button that opens a dialog, and now a button is focused-by-default with the dialog per [Dialog](https://www.w3.org/TR/wai-aria-practices-1.2/#keyboard-interaction-7), that button should show an indicator regardless of whether the button was clicked by a mouse or keyboard. (Probably not for touch.)

This seems like a significant usability hole in the current heuristic, which I don't see discussed directly in other issues here.

I don't much experience contributing to CSS spec discussion, so please forgive (and educate) me if I'm posting this in the wrong place, or need to further explain my concern, etc.

Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/7214 using your GitHub account


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

Received on Wednesday, 13 April 2022 21:43:03 UTC