Skip to content

Commit 8bd79e4

Browse files
committed
Accessibility: match the visual and tab order in the Media Modal grid.
By moving the Details sidebar after the attachments grid, the tab order is greatly improved for keyboard users and matches the logical and visual order. Fixes #36909. Built from https://develop.svn.wordpress.org/trunk@37610 git-svn-id: http://core.svn.wordpress.org/trunk@37578 1a063a9b-81f0-0310-95a4-ce76da25c4cd
1 parent 5888214 commit 8bd79e4

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

wp-includes/js/media-views.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3772,11 +3772,11 @@ AttachmentsBrowser = View.extend({
37723772
this.controller.on( 'toggle:upload:attachment', this.toggleUploader, this );
37733773
this.controller.on( 'edit:selection', this.editSelection );
37743774
this.createToolbar();
3775+
this.createUploader();
3776+
this.createAttachments();
37753777
if ( this.options.sidebar ) {
37763778
this.createSidebar();
37773779
}
3778-
this.createUploader();
3779-
this.createAttachments();
37803780
this.updateContent();
37813781

37823782
if ( ! this.options.sidebar || 'errors' === this.options.sidebar ) {

0 commit comments

Comments
 (0)