-
Notifications
You must be signed in to change notification settings - Fork 3.1k
Consider conformance guidance for authors to explicitly declare autofocus for dialog element #7709
Copy link
Copy link
Closed
Labels
document conformanceimpacts documentationUsed by documentation communities, such as MDN, to track changes that impact documentationUsed by documentation communities, such as MDN, to track changes that impact documentationtopic: dialogThe <dialog> elementThe <dialog> element
Description
Per the dialog initial focus proposal, this unresolved comment has been moved here for further discussion:
As such, authors should use the autofocus attribute on the descendant element of the dialog that the user will expect to immediately interact with after the dialog opens. If there is no such element, then authors should use the autofocus attribute on the dialog element itself.
Summary of exchange between Domenic and Aaron:
- This would mean conformance checkers will warn authors if a dialog element doesn't have autofocus specified somewhere in the dialog.
- agreement that this is probably the right thing to do, but worry about potential warning fatigue or requiring redundant autofocus attributes.
cc @sideshowbarker for thoughts on the matter
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
document conformanceimpacts documentationUsed by documentation communities, such as MDN, to track changes that impact documentationUsed by documentation communities, such as MDN, to track changes that impact documentationtopic: dialogThe <dialog> elementThe <dialog> element