WordPress/wp-includes/js
Andrea Fercia 00704114e0 Accessibility: Make the Media modal an ARIA modal dialog.
For a number of years, the Media modal missed an explicit ARIA role and the required attributes for modal dialogs.

This was confusing for assistive technology users, since they may not realize they're inside a dialog, and that consequently the keyboard interactions may be different from the rest of the page. Lack of an explicit label for the dialog was confusing as well, since assistive technology users didn't have an immediate sense of what the dialog is for.

This change makes the Media modal meet the ARIA Authoring Practices recommendations, helping users better understand the purpose and interactions with the modal. Also, it makes sure to hide the rest of the page content from assistive technologies, until support for `aria-modal="true"` improves.

Additionally:
- moves the modal H1 heading to the beginning of the modal content 
- changes the modal left menu position to make visual and DOM order match 
- improves the `wp.media.view.FocusManager` documentation

Fixes #47145.

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


git-svn-id: http://core.svn.wordpress.org/trunk@45383 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2019-06-27 12:33:56 +00:00
..
codemirror Remove JSHint due to license compatibility 2018-01-23 01:29:32 +00:00
crop its <=> it's in documentation, along with a rogue the, The, and looses. props trepmal. fixes #22665. 2012-12-20 15:55:32 +00:00
dist Build/Test Tools: Add the e2e tests setup. 2019-06-27 11:28:19 +00:00
imgareaselect Media: Update minified version of imgAreaSelect after [42874]. 2018-04-03 19:46:30 +00:00
jcrop Update Jcrop to 0.9.12 (unused in WP core). 2013-09-21 12:46:09 +00:00
jquery jQuery: bring jquery.js back into the WordPress SVN repo and backport the patch from 3.4.0. 2019-05-17 04:25:54 +00:00
mediaelement Accessibility: Improve accessibility of all the media views form controls. 2019-06-07 20:45:02 +00:00
plupload Docs: Improve wp-admin JSDoc structural data globally. 2017-12-15 13:42:46 +00:00
swfupload Remove SWFUpload, 2017-09-21 16:35:48 +00:00
thickbox
tinymce Update TinyMCE to 4.9.4. Changelog: https://github.com/tinymce/tinymce/blob/4.x/changelog.txt. 2019-05-15 23:45:52 +00:00
admin-bar.js Toolbar: Check if obj is set before using it. 2018-08-06 19:33:28 +00:00
admin-bar.min.js
api-request.js
api-request.min.js
autosave.js Docs: Add file doc @output annotations. 2018-06-28 02:30:15 +00:00
autosave.min.js Bump grunt-contrib-uglify from 1.0.1 to 2.0.0 2016-11-03 05:40:34 +00:00
backbone.js Once upon a midnight dreary, while I coded, weak and weary, 2018-05-23 10:05:31 +00:00
backbone.min.js Once upon a midnight dreary, while I coded, weak and weary, 2018-05-23 10:05:31 +00:00
clipboard.js Site Health: Improve the "Copy to clipboard" button. 2019-03-27 22:31:52 +00:00
clipboard.min.js Site Health: Improve the "Copy to clipboard" button. 2019-03-27 22:31:52 +00:00
colorpicker.js Pinking shears 2012-11-17 15:11:29 +00:00
colorpicker.min.js
comment-reply.js Comments: Allow for comment-reply.js to be loaded in the HTML header. 2019-03-05 01:52:51 +00:00
comment-reply.min.js Comments: Allow for comment-reply.js to be loaded in the HTML header. 2019-03-05 01:52:51 +00:00
customize-base.js
customize-base.min.js Customize: Constrain focus when overlay notification is displayed. 2017-10-10 03:34:53 +00:00
customize-loader.js
customize-loader.min.js Customize: Eliminate use of customize-loader in core so Customizer is opened consistently in top window. 2017-10-09 16:04:48 +00:00
customize-models.js Docs: Add file doc @output annotations. 2018-06-28 02:30:15 +00:00
customize-models.min.js
customize-preview-nav-menus.js
customize-preview-nav-menus.min.js Customize: Fix ability to shift-click on placeholder/pre-saved nav menu items in preview to focus on corresponding control. 2016-12-10 23:47:41 +00:00
customize-preview-widgets.js
customize-preview-widgets.min.js
customize-preview.js Customiser: Prevent JS errors when previewing pages with an <area> tag. 2019-01-21 23:03:50 +00:00
customize-preview.min.js Customiser: Prevent JS errors when previewing pages with an <area> tag. 2019-01-21 23:03:50 +00:00
customize-selective-refresh.js
customize-selective-refresh.min.js
customize-views.js Docs: Add file doc @output annotations. 2018-06-28 02:30:15 +00:00
customize-views.min.js
heartbeat.js Block Editor: Refresh nonces used by wp.apiFetch. 2018-12-17 19:28:51 +00:00
heartbeat.min.js Block Editor: Refresh nonces used by wp.apiFetch. 2018-12-17 19:28:51 +00:00
hoverIntent.js
hoverIntent.min.js
imagesloaded.min.js Once upon a midnight dreary, while I coded, weak and weary, 2018-05-23 10:05:31 +00:00
json2.js
json2.min.js
masonry.min.js Once upon a midnight dreary, while I coded, weak and weary, 2018-05-23 10:05:31 +00:00
mce-view.js
mce-view.min.js Editor: Fix determining TinyMCE editor width when in inline mode instead of iframe mode. 2017-12-13 05:17:48 +00:00
media-audiovideo.js Accessibility: Improve focus management in the Media Views. 2019-06-12 21:03:52 +00:00
media-audiovideo.min.js Accessibility: Improve focus management in the Media Views. 2019-06-12 21:03:52 +00:00
media-editor.js Docs: Correct and improve various inline documentation. 2018-08-27 14:28:26 +00:00
media-editor.min.js Media: Remove alt fallbacks to improve accessibility. 2016-10-19 03:06:28 +00:00
media-grid.js Accessibility: Improve focus management in the Media Views. 2019-06-12 21:03:52 +00:00
media-grid.min.js Accessibility: Improve focus management in the Media Views. 2019-06-12 21:03:52 +00:00
media-models.js Script loader: Adjust JS packages registration. 2018-12-13 17:27:38 +00:00
media-models.min.js Build tools: Allow building WordPress to src. 2018-12-24 13:29:50 +00:00
media-views.js Accessibility: Make the Media modal an ARIA modal dialog. 2019-06-27 12:33:56 +00:00
media-views.min.js Accessibility: Make the Media modal an ARIA modal dialog. 2019-06-27 12:33:56 +00:00
quicktags.js
quicktags.min.js
shortcode.js
shortcode.min.js
swfobject.js
tw-sack.js
tw-sack.min.js Update Grunt dev-dependencies 2015-06-28 14:51:30 +00:00
twemoji.js Emoji: Update Twemoji to version 12.0.0. 2019-04-08 05:22:51 +00:00
twemoji.min.js Emoji: Update Twemoji to version 12.0.0. 2019-04-08 05:22:51 +00:00
underscore.js Build Tools: Copy unminified JS files to src. 2019-01-10 01:39:50 +00:00
underscore.min.js Build Tools: Copy unminified JS files to src. 2019-01-10 01:39:50 +00:00
utils.js General: Explicitly assigns all JS globals to the window. 2018-08-19 13:33:24 +00:00
utils.min.js
wp-a11y.js
wp-a11y.min.js
wp-ajax-response.js
wp-ajax-response.min.js General: Explicitly assigns all JS globals to the window. 2018-08-19 13:33:24 +00:00
wp-api.js REST API: generate a valid fallback URI in wp.api.utils.getRootURL. 2018-08-11 18:51:24 +00:00
wp-api.min.js
wp-auth-check.js
wp-auth-check.min.js
wp-backbone.js Docs: Add file doc @output annotations. 2018-06-28 02:30:15 +00:00
wp-backbone.min.js
wp-custom-header.js
wp-custom-header.min.js Themes: Improve a11y and extendability of custom video headers. 2016-11-16 23:26:31 +00:00
wp-embed-template.js Docs: Add file doc @output annotations. 2018-06-28 02:30:15 +00:00
wp-embed-template.min.js Embeds: After [37745], check if a featured image exists before attaching an event listener. 2016-07-05 16:16:57 +00:00
wp-embed.js Embeds: After [43593], move the new check to a separate line to avoid test_js_no_ampersands_in_compiled failure caused by UglifyJS task. 2018-08-30 12:40:26 +00:00
wp-embed.min.js
wp-emoji-loader.js Emoji: Update Twemoji to version 12.0.0. 2019-04-08 05:22:51 +00:00
wp-emoji-loader.min.js Emoji: Update Twemoji to version 12.0.0. 2019-04-08 05:22:51 +00:00
wp-emoji-release.min.js Emoji: Update Twemoji to version 12.0.0. 2019-04-08 05:22:51 +00:00
wp-emoji.js
wp-emoji.min.js Bump grunt-contrib-uglify from 1.0.1 to 2.0.0 2016-11-03 05:40:34 +00:00
wp-list-revisions.js
wp-list-revisions.min.js
wp-lists.js Docs: Add file doc @output annotations. 2018-06-28 02:30:15 +00:00
wp-lists.min.js
wp-pointer.js Docs: Add file doc @output annotations. 2018-06-28 02:30:15 +00:00
wp-pointer.min.js
wp-sanitize.js
wp-sanitize.min.js Security: Rename new wp.sanitize.sanitizeText to stripTagsAndEncodeText.' 2017-10-04 18:58:47 +00:00
wp-util.js
wp-util.min.js
wpdialog.js
wpdialog.min.js
wplink.js TinyMCE Classic Block: Remove unused variable. 2019-01-26 12:59:49 +00:00
wplink.min.js TinyMCE Classic Block: fix the Advanced Link modal (accessible when clicking on the cogwheel in the inline link modal in a Classic Block). 2019-01-24 11:21:50 +00:00
zxcvbn-async.js
zxcvbn-async.min.js
zxcvbn.min.js External Libraries: zxcvbn library. 2018-12-20 21:03:49 +00:00