[wp-trac] [WordPress Trac] #47105: Not focusing on input control when validate that input control
WordPress Trac
noreply at wordpress.org
Tue Apr 29 15:23:18 UTC 2025
#47105: Not focusing on input control when validate that input control
--------------------------+------------------------------------------------
Reporter: hardipparmar | Owner: (none)
Type: defect (bug) | Status: closed
Priority: normal | Milestone:
Component: Taxonomy | Version:
Severity: normal | Resolution: wontfix
Keywords: input- | Focuses: ui, accessibility, administration
validation |
--------------------------+------------------------------------------------
Changes (by joedolson):
* status: new => closed
* resolution: => wontfix
* milestone: Future Release =>
Comment:
I don't think this is all that clear cut. Moving focus can be disruptive,
and if there are multiple errors, might give a person the impression that
there is only that one.
Right now, if these forms are submitted without a title, there will be an
error shown visibly and announced via `wp.a11y.speak()`. If this was
changed to have a focus move, we'd have to eliminate the spoken message
and add an `aria-describedby` with the field error message.
In my opinion, these are just two different and reasonable ways of
accomplishing this goal. Moving focus may be slightly quicker for some
users, but it could also be confusing for some users. Overall, it's
probably a rare scenario, since the required field here is fairly obvious.
I'm going to close this as wontfix. If at some future point we resolve
#47505, and determine that our global method for validation will be to
focus the first error field, then this will still need to be done, but it
would be done as part of a larger project.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/47105#comment:8>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list