Skip to content

[selectors] :focus-visible should match when focus is programmatically moved into a dialog #7214

@craigkovatch

Description

@craigkovatch

Whether <dialog> or [role="dialog"], focus should become visible when it is programmatically moved from outside to inside a dialog.

e.g. if a user clicks a button that opens a dialog, and now a button is focused-by-default within the dialog per Dialog, that button should show an indicator regardless of whether the dialog was launched by 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 (though I may have missed something, apologies if so).

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.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions