#34613 closed defect (bug) (fixed)
Accessibility improvements while editing categories and tags
Reported by: |
|
Owned by: |
|
---|---|---|---|
Milestone: | 4.4 | Priority: | normal |
Severity: | normal | Version: | 4.3 |
Component: | Administration | Keywords: | has-patch has-screenshots |
Focuses: | ui, accessibility, javascript | Cc: |
Description
The categories and tags quick edit form could be improved a bit for accessibility.
- in the quick edit form both cancel and update are anchors. That's not a good practice because they are buttons and not links.
- When keyboard or screen reader users press cancel or update the focus is moved on top of the page. Some browser like Firefox fix this issue natively but Chrome and others still have the problem.
- There is no audible message for screen reader users when they press update.
We are working on a patch at the first italian Contributor Day.
Patch coming soon :)
Attachments (3)
Change History (12)
This ticket was mentioned in Slack in #accessibility by garusky. View the logs.
9 years ago
#5
@
9 years ago
First accessibility patch at the first Italian WordPress Contributor Day on Saturday November 7th in Milan :) Looks good to me, needs just a couple of tweaks.
#6
@
9 years ago
In the refreshed patch:
- since the "Cancel" and "Update" controls are now buttons, there's no need for
return false
because there's no default action to prevent. - some error strings from the AJAX response may contain HTML entities and can't be used for the
wp.a11y.speak()
message since screen readers will read things like“
character by character (see also screenshot below); a simple fix is to get the same text after it is used for the error span element and entities are already converted in characters
Other things the proposed patch does:
- when clicking on "Cancel" and "Update", moves focus back to the term's title
- dispatches feedback messages to
wp.a11y.speak()
in case of success or errors
Note for committers: need to retrieve the username of one of the contributors before commit :)
This ticket was mentioned in Slack in #core-editor by afercia. View the logs.
9 years ago
Note: See
TracTickets for help on using
tickets.
In the proposed patch we try to address the issues listed above.
Any feedback more than welcome.