[wp-trac] [WordPress Trac] #40677: Widgets page is not accessible for keyboard users
WordPress Trac
noreply at wordpress.org
Wed Mar 7 22:26:41 UTC 2018
#40677: Widgets page is not accessible for keyboard users
-------------------------------------+-------------------------------------
Reporter: juliemoynat | Owner: afercia
Type: defect (bug) | Status: assigned
Priority: normal | Milestone: 5.0
Component: Widgets | Version:
Severity: normal | Resolution:
Keywords: has-patch has- | Focuses: accessibility,
screenshots | javascript
-------------------------------------+-------------------------------------
Comment (by afercia):
In [changeset:"42794"]:
{{{
#!CommitTicketReference repository="" revision="42794"
Accessibility: Widgets: Make the "Available Widgets" section operable with
a keyboard.
For a number of years, the "Available Widgets" section has been off-limits
for
keyboard users. Now it can be used also with the keyboard. This change
introduces
also some improvements for assistive technologies.
- makes the widget toggles focusable and adds an `aria-expanded` attribute
to indicate their state
- improves the toggles labelling to clarify context (add/edit)
- changes the controls to choose a sidebar from list items to buttons
- adds an `aria-label` attribute to the buttons to clarify their purpose
- adds an `aria-pressed` attribute to the buttons to indicate which one is
selected
- improves color contrast of the selected button
- uses a `wp.a11y.speak()` message to announce to screen reader users when
a widget has been added to a sidebar
- moves focus back to the toggle button when closing a widget
See #40677.
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/40677#comment:14>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list