Make WordPress Core

Opened 6 years ago

Closed 7 weeks ago

#47105 closed defect (bug) (wontfix)

Not focusing on input control when validate that input control

Reported by: hardipparmar's profile hardipparmar Owned by:
Milestone: Priority: normal
Severity: normal Version:
Component: Taxonomy Keywords: input-validation
Focuses: ui, accessibility, administration Cc:

Description

This issue is generated in form validation (category,tag,taxonomy,etc...) in input controls.

When anyone submits or save categories without a fill input box then showing red box validation but currently, it's not focusing validate a field (input field).

Expected:
When anyone submits or save category without fill input box then autofocus on validating input field that showing to the user to enter some value in the input box.

Please follow this GIF steps:

https://s3.gifyu.com/images/screencast-localhost-2019.05.03-11-19-35.gif

Attachments (2)

screencast-localhost-2019.05.03-11-19-35.gif (4.4 MB) - added by hardipparmar 6 years ago.
47105.patch (469 bytes) - added by chiragpatelhtml 6 years ago.
I have fixed this focusing issue.

Change History (10)

@chiragpatelhtml
6 years ago

I have fixed this focusing issue.

#1 @SergeyBiryukov
6 years ago

  • Component changed from General to Taxonomy
  • Focuses ui accessibility administration added

#2 @afercia
6 years ago

  • Keywords input-validation added

#3 @afercia
6 years ago

Related: #47018.

This ticket was mentioned in Slack in #accessibility by afercia. View the logs.


6 years ago

#5 @afercia
6 years ago

  • Milestone changed from Awaiting Review to Future Release

Related: #47505.

This ticket was mentioned in Slack in #accessibility by joedolson. View the logs.


2 months ago

This ticket was mentioned in Slack in #accessibility by joedolson. View the logs.


7 weeks ago

#8 @joedolson
7 weeks ago

  • Milestone Future Release deleted
  • Resolution set to wontfix
  • Status changed from new to closed

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.

Note: See TracTickets for help on using tickets.