Skip to content

Commit fcc9bca

Browse files
author
afercia
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. git-svn-id: https://develop.svn.wordpress.org/trunk@37610 602fd350-edb4-49c9-b593-d223f7449a82
1 parent 4dfe0f7 commit fcc9bca

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/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 ) {

src/wp-includes/js/media/views/attachments/browser.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,11 +41,11 @@ AttachmentsBrowser = View.extend({
4141
this.controller.on( 'toggle:upload:attachment', this.toggleUploader, this );
4242
this.controller.on( 'edit:selection', this.editSelection );
4343
this.createToolbar();
44+
this.createUploader();
45+
this.createAttachments();
4446
if ( this.options.sidebar ) {
4547
this.createSidebar();
4648
}
47-
this.createUploader();
48-
this.createAttachments();
4949
this.updateContent();
5050

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

0 commit comments

Comments
 (0)