WordPress/wp-admin/js
Andrea Fercia ffedf3d752 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.

Built from https://develop.svn.wordpress.org/trunk@42794


git-svn-id: http://core.svn.wordpress.org/trunk@42624 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2018-03-07 22:27:31 +00:00
..
widgets Widgets: When checking for errors in Custom HTML widget, pass correct value to `toggleClass()` for Save button. 2018-01-15 23:47:47 +00:00
accordion.js Docs: Remove extra dot from some `@since` tags. 2017-12-15 05:16:47 +00:00
accordion.min.js Update grunt-contrib-uglify from ~0.10.0 to ~1.0.1 2016-04-15 16:10:37 +00:00
code-editor.js Docs: Improve wp-admin JSDoc structural data globally. 2017-12-15 13:42:46 +00:00
code-editor.min.js Code Editor: Define default `gutters` and toggle lint markers based on changes to `lint` option. 2017-10-24 16:35:54 +00:00
color-picker.js Docs: Remove `@summary` tags from JSDoc. 2017-12-18 14:14:53 +00:00
color-picker.min.js Accessibility: Improve the color picker UI accessibility, interaction, and generated markup. 2017-09-03 16:02:46 +00:00
comment.js Docs: Remove `@summary` tags from JSDoc. 2017-12-18 14:14:53 +00:00
comment.min.js Comment status box: Move focus back to Edit link when changing the date. 2015-07-26 02:26:24 +00:00
common.js Docs: Remove `@summary` tags from JSDoc. 2017-12-18 14:14:53 +00:00
common.min.js Permalinks: Fix placement of structure tags based on last cursor position. 2017-10-24 23:27:48 +00:00
custom-background.js Docs: Remove `@summary` tags from JSDoc. 2017-12-18 14:14:53 +00:00
custom-background.min.js Customize: Improve custom background properties UI. 2016-10-26 06:52:29 +00:00
custom-header.js Docs: Remove `@summary` tags from JSDoc. 2017-12-18 14:14:53 +00:00
customize-controls.js General: Replace `Cheatin’ uh?` with friendlier error messages. 2018-02-05 02:30:34 +00:00
customize-controls.min.js General: Replace `Cheatin’ uh?` with friendlier error messages. 2018-02-05 02:30:34 +00:00
customize-nav-menus.js Customizer: in menus, reset results when closing the 'add items' panel. 2018-02-25 18:48:29 +00:00
customize-nav-menus.min.js Customizer: in menus, reset results when closing the 'add items' panel. 2018-02-25 18:48:29 +00:00
customize-widgets.js Docs: Improve wp-admin JSDoc structural data globally. 2017-12-15 13:42:46 +00:00
customize-widgets.min.js Customize: Fix positioning of device-previewed window when publish settings are open. 2017-10-13 21:21:55 +00:00
dashboard.js Docs: Improve JS Docs for `wp-admin/js/dashboard.js`. 2017-12-14 14:11:51 +00:00
dashboard.min.js Dashboard: Remove "Try Gutenberg" callout. 2017-10-23 20:48:47 +00:00
edit-comments.js Accessibility: Change the comments "Quick Edit" and "Reply" links to buttons. 2018-02-28 22:36:34 +00:00
edit-comments.min.js Accessibility: Change the comments "Quick Edit" and "Reply" links to buttons. 2018-02-28 22:36:34 +00:00
editor-expand.js Docs: Remove `@summary` tags from JSDoc. 2017-12-18 14:14:53 +00:00
editor-expand.min.js Bump grunt-contrib-uglify from 1.0.1 to 2.0.0 2016-11-03 05:40:34 +00:00
editor.js Editor: when keeping the scroll position treat all shortcodes as preview-able. Otherwise in some cases the marker span can get stuck inside the shortcode and break the markup. 2018-01-23 17:34:32 +00:00
editor.min.js Editor: when keeping the scroll position treat all shortcodes as preview-able. Otherwise in some cases the marker span can get stuck inside the shortcode and break the markup. 2018-01-23 17:34:32 +00:00
farbtastic.js Farbtastic 1.3u. Props flashingcursor. fixes #14707 2010-11-11 16:34:22 +00:00
gallery.js JS: in event callbacks replace the very outdated `return false` with `preventDefault()`. 2015-10-09 01:27:27 +00:00
gallery.min.js JS: in event callbacks replace the very outdated `return false` with `preventDefault()`. 2015-10-09 01:27:27 +00:00
image-edit.js Docs: Remove `@summary` tags from JSDoc. 2017-12-18 14:14:53 +00:00
image-edit.min.js Media: improve flows for cropping on attachment details screen. 2017-12-15 22:03:50 +00:00
inline-edit-post.js Accessibility: Change the posts "Quick Edit" link to a button. 2018-02-21 22:31:32 +00:00
inline-edit-post.min.js Accessibility: Change the posts "Quick Edit" link to a button. 2018-02-21 22:31:32 +00:00
inline-edit-tax.js Accessibility: Change the terms "Quick Edit" link to a button. 2018-02-21 23:04:31 +00:00
inline-edit-tax.min.js Accessibility: Change the terms "Quick Edit" link to a button. 2018-02-21 23:04:31 +00:00
iris.min.js Customize: Add hue-only mode to color picker. 2016-10-25 22:33:30 +00:00
language-chooser.js Language chooser imporvements. 2014-08-04 20:47:16 +00:00
language-chooser.min.js Language chooser imporvements. 2014-08-04 20:47:16 +00:00
link.js Fix JSHint errors in 5 files. 2013-11-15 05:16:09 +00:00
link.min.js Temporarily remove CSS preprocessing until we can get our Ruby dependency sorted out. 2013-11-13 21:45:11 +00:00
media-gallery.js Media: Add some docs to `media-gallery.js` RIP. 2016-08-20 22:59:29 +00:00
media-gallery.min.js Temporarily remove CSS preprocessing until we can get our Ruby dependency sorted out. 2013-11-13 21:45:11 +00:00
media-upload.js Docs: Improve JSDoc for `js/media-upload.js`. 2018-01-04 14:37:49 +00:00
media-upload.min.js Bump grunt-contrib-uglify from 1.0.1 to 2.0.0 2016-11-03 05:40:34 +00:00
media.js Docs: Remove `@summary` tags from JSDoc. 2017-12-18 14:14:53 +00:00
media.min.js Bump grunt-contrib-uglify from 1.0.1 to 2.0.0 2016-11-03 05:40:34 +00:00
nav-menu.js Docs: Improve wp-admin JSDoc structural data globally. 2017-12-15 13:42:46 +00:00
nav-menu.min.js Menus: Visually hide the menu item edit link text in a consistent way. 2017-08-03 22:12:43 +00:00
password-strength-meter.js Docs: Improve JSDoc for `password-strength-meter.js`. 2018-01-18 13:39:33 +00:00
password-strength-meter.min.js Bump grunt-contrib-uglify from 1.0.1 to 2.0.0 2016-11-03 05:40:34 +00:00
plugin-install.js Plugins: Fix the plugin details modal "Close" button after [42443]. 2018-01-16 17:15:32 +00:00
plugin-install.min.js Plugins: Fix the plugin details modal "Close" button after [42443]. 2018-01-16 17:15:32 +00:00
post.js Docs: Remove `@summary` tags from JSDoc. 2017-12-18 14:14:53 +00:00
post.min.js Bump grunt-contrib-uglify from 1.0.1 to 2.0.0 2016-11-03 05:40:34 +00:00
postbox.js Docs: Remove `@summary` tags from JSDoc. 2017-12-18 14:14:53 +00:00
postbox.min.js Editor, editor-expand: adjust the sidebar position when moving a postbox from one column to another. 2016-06-08 22:37:29 +00:00
revisions.js JavaScript: when starting Backbone history, stop if previously started. 2017-02-17 22:00:42 +00:00
revisions.min.js JavaScript: when starting Backbone history, stop if previously started. 2017-02-17 22:00:42 +00:00
set-post-thumbnail.js Revert a part of [32673] that caused a fatal error with `SCRIPT_DEBUG` disabled. 2015-06-01 04:14:25 +00:00
set-post-thumbnail.min.js Revert a part of [32673] that caused a fatal error with `SCRIPT_DEBUG` disabled. 2015-06-01 04:14:25 +00:00
svg-painter.js Final SVG painter fixes. 2013-12-05 22:01:10 +00:00
svg-painter.min.js Bump grunt-contrib-uglify from 1.0.1 to 2.0.0 2016-11-03 05:40:34 +00:00
tags-box.js Taxonomy: Use `keypress` instead of `keyup` for listening for Enter key to add a tag via Tags meta box. 2017-10-24 11:30:49 +00:00
tags-box.min.js Taxonomy: Use `keypress` instead of `keyup` for listening for Enter key to add a tag via Tags meta box. 2017-10-24 11:30:49 +00:00
tags-suggest.js Remove unused var after r42614, fixing a jshint error. 2018-01-30 00:34:59 +00:00
tags-suggest.min.js Taxonomy: Use REST API for ajax tag search. 2018-01-30 00:17:31 +00:00
tags.js Docs: Remove `@summary` tags from JSDoc. 2017-12-18 14:14:53 +00:00
tags.min.js Taxonomy: Add a "delete" button on term edit page. 2017-05-12 19:26:41 +00:00
theme-plugin-editor.js Accessibility: Improve the File Editors interstitial warning. 2017-10-16 17:59:52 +00:00
theme-plugin-editor.min.js Accessibility: Improve the File Editors interstitial warning. 2017-10-16 17:59:52 +00:00
theme.js Themes: Use `api.wordpress.org/themes/info/1.2/` to query theme information. 2018-02-01 05:19:30 +00:00
theme.min.js Themes: Use `api.wordpress.org/themes/info/1.2/` to query theme information. 2018-02-01 05:19:30 +00:00
updates.js Administration: Make sure `wp.updates.addAdminNotice` is displayed after the page header and does not unexpectedly push down "Add New" and other buttons. 2018-02-11 17:28:30 +00:00
updates.min.js Administration: Make sure `wp.updates.addAdminNotice` is displayed after the page header and does not unexpectedly push down "Add New" and other buttons. 2018-02-11 17:28:30 +00:00
user-profile.js Login: Password reset - add hide icon & confirm weak password checkbox. 2017-09-21 21:29:48 +00:00
user-profile.min.js Login: Password reset - add hide icon & confirm weak password checkbox. 2017-09-21 21:29:48 +00:00
user-suggest.js Docs: Improve JSDoc for `wp-admin/js/user-suggest.js`. 2018-02-15 13:26:33 +00:00
user-suggest.min.js Autocomplete for the new site admin email. Better than trying to remember which email address you used. 2014-01-27 23:10:12 +00:00
widgets.js Accessibility: Widgets: Make the "Available Widgets" section operable with a keyboard. 2018-03-07 22:27:31 +00:00
widgets.min.js Accessibility: Widgets: Make the "Available Widgets" section operable with a keyboard. 2018-03-07 22:27:31 +00:00
word-count.js Docs: Remove `@summary` tags from JSDoc. 2017-12-18 14:14:53 +00:00
word-count.min.js Editor: word count: better names for types. 2015-07-27 11:19:26 +00:00
wp-fullscreen-stub.js Docs: Standardize on 'backward compatibility/compatible' nomenclature in core inline docs. 2016-05-13 18:41:31 +00:00
wp-fullscreen-stub.min.js Editor: 2015-06-01 17:38:29 +00:00
xfn.js Docs: Improve JSDoc for for `wp-admin/js/xfn.js`. 2018-02-15 13:35:31 +00:00
xfn.min.js JSHint and coding style fixes for xfn.js. 2013-11-14 21:58:10 +00:00