Password field: Inconsistent autofocus behavior between the Post Editor and the Site Editor (no autofocus) #52605
Labels
[Focus] Accessibility (a11y)
Changes that impact accessibility and need corresponding review (e.g. markup changes).
[Package] Edit Site
/packages/edit-site
[Type] Bug
An existing feature does not function as intended
Description
Discovered while investigating #52601
Auto-focusing input fields should be avoided for the reasons mentioned in #52601. There's even a
jsx-a11y/no-autofocus
eslint rule in place that should never be disabled, unless there are very very good reasons to do that.Besides that, initial hte autofocus behavior on the password field is inconsistent across the Post Editor and the Site Editor.
Screenshot, from left to right:
I'm not sure why the UI within the popover is different and I'm not sure why in the Site editor Visibility and Status properties are mixed together in the same UI. Besides that, the focus behavior is inconsistent and autofocus should be avoided.
Additionally, some wording is inconsistent, although used on different elements. E.g.:
Step-by-step reproduction instructions
Screenshots, screen recording, code snippet
No response
Environment info
No response
Please confirm that you have searched existing issues in the repo.
Yes
Please confirm that you have tested with all plugins deactivated except Gutenberg.
Yes
The text was updated successfully, but these errors were encountered: