WordPress/wp-includes/js
Sergey Biryukov 5bb75cf4fd 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

Props afercia.
Merges [45572] to the 5.2 branch.
Fixes #47145.
Built from https://develop.svn.wordpress.org/branches/5.2@45866


git-svn-id: http://core.svn.wordpress.org/branches/5.2@45677 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2019-08-20 22:42:51 +00:00
..
codemirror Remove JSHint due to license compatibility 2018-01-23 01:29:32 +00:00
crop
dist Block Editor: Update packages to the ones slated for WP5.2.2 2019-05-30 15:48:56 +00:00
imgareaselect Media: Update minified version of imgAreaSelect after [42874]. 2018-04-03 19:46:30 +00:00
jcrop
jquery jQuery: bring jquery.js back into the WordPress SVN repo and backport the patch from 3.4.0. 2019-05-17 17:08:53 +00:00
mediaelement Build/Test: Update dependencies for 5.0 2018-12-11 16:13:26 +00:00
plupload Docs: Improve wp-admin JSDoc structural data globally. 2017-12-15 13:42:46 +00:00
swfupload
thickbox
tinymce Update TinyMCE to 4.9.4. Changelog: https://github.com/tinymce/tinymce/blob/4.x/changelog.txt. 2019-05-17 04:49:54 +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 Toolbar: Check if obj is set before using it. 2018-08-06 19:33:28 +00:00
api-request.js Docs: Add file doc @output annotations. 2018-06-28 02:30:15 +00:00
api-request.min.js REST API: Handle api-request query parameters with plain permalinks. 2018-04-09 13:10:31 +00:00
autosave.js Docs: Add file doc @output annotations. 2018-06-28 02:30:15 +00:00
autosave.min.js
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
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 Docs: Add file doc @output annotations. 2018-06-28 02:30:15 +00:00
customize-base.min.js
customize-loader.js Docs: Add file doc @output annotations. 2018-06-28 02:30:15 +00:00
customize-loader.min.js
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 Docs: Add file doc @output annotations. 2018-06-28 02:30:15 +00:00
customize-preview-nav-menus.min.js
customize-preview-widgets.js Docs: Add file doc @output annotations. 2018-06-28 02:30:15 +00:00
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 Docs: Add file doc @output annotations. 2018-06-28 02:30:15 +00:00
customize-selective-refresh.min.js Customize: Ensure media playlists get initialized after selective refresh; expose new wp.playlist.initialize() API. 2018-01-29 23:56:29 +00:00
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 Once upon a midnight dreary, while I coded, weak and weary, 2018-05-23 10:05:31 +00:00
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 Docs: Add file doc @output annotations. 2018-06-28 02:30:15 +00:00
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 Script loader: Adjust JS packages registration. 2018-12-13 17:27:38 +00:00
media-audiovideo.min.js Build tools: Allow building WordPress to src. 2018-12-24 13:29:50 +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-grid.js Accessibility: Fix the order of the Previous, Next, and Close buttons in the Attachment Details modal. 2019-08-19 04:55:53 +00:00
media-grid.min.js Accessibility: Fix the order of the Previous, Next, and Close buttons in the Attachment Details modal. 2019-08-19 04:55:53 +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-08-20 22:42:51 +00:00
media-views.min.js Accessibility: Make the Media modal an ARIA modal dialog. 2019-08-20 22:42:51 +00:00
quicktags.js Reorder quicktags.js a bit to account for the order of defining vars and functions after [43577]. 2018-08-20 13:34:25 +00:00
quicktags.min.js Reorder quicktags.js a bit to account for the order of defining vars and functions after [43577]. 2018-08-20 13:34:25 +00:00
shortcode.js Docs: Add file doc @output annotations. 2018-06-28 02:30:15 +00:00
shortcode.min.js
swfobject.js
tw-sack.js
tw-sack.min.js
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 General: Explicitly assigns all JS globals to the window. 2018-08-19 13:33:24 +00:00
wp-a11y.js Docs: Add file doc @output annotations. 2018-06-28 02:30:15 +00:00
wp-a11y.min.js
wp-ajax-response.js General: Explicitly assigns all JS globals to the window. 2018-08-19 13:33:24 +00:00
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 REST API: generate a valid fallback URI in wp.api.utils.getRootURL. 2018-08-11 18:51:24 +00:00
wp-auth-check.js Docs: Improve JSDoc for auth-check.js. 2018-06-28 02:33:38 +00:00
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 Docs: Add file doc @output annotations. 2018-06-28 02:30:15 +00:00
wp-custom-header.min.js
wp-embed-template.js Docs: Add file doc @output annotations. 2018-06-28 02:30:15 +00:00
wp-embed-template.min.js
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 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-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 Docs: Improve JSDoc for emoji.js. 2018-06-28 02:35:44 +00:00
wp-emoji.min.js
wp-list-revisions.js Docs: Add file doc @output annotations. 2018-06-28 02:30:15 +00:00
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 Docs: Add file doc @output annotations. 2018-06-28 02:30:15 +00:00
wp-sanitize.min.js
wp-util.js Docs: Add file doc @output annotations. 2018-06-28 02:30:15 +00:00
wp-util.min.js
wpdialog.js Docs: Add file doc @output annotations. 2018-06-28 02:30:15 +00:00
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 Docs: Add file doc @output annotations. 2018-06-28 02:30:15 +00:00
zxcvbn-async.min.js
zxcvbn.min.js External Libraries: zxcvbn library. 2018-12-20 21:03:49 +00:00