A lint/a11y/noAutofocus contradicts with MDN recommendations for
The autofocus attribute should be added to the element the user is expected to interact with immediately upon opening a modal dialog. If no other element involves more immediate interaction, it is recommended to add autofocus to the close button inside the dialog, or the dialog itself if the user is expected to click/activate it to dismiss.
Environment information
What happened?
A
lint/a11y/noAutofocus
contradicts with MDN recommendations forhttps://developer.mozilla.org/en-US/docs/Web/HTML/Element/dialog
Code example
Expected result
It should permit
autoFocus
when it is used inside a dialog.Code of Conduct