Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 2 additions & 4 deletions src/js/media/views/media-frame.js
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ MediaFrame = Frame.extend(/** @lends wp.media.view.MediaFrame.prototype */{
tabPanelEl = this.$el.find( '.media-frame-tab-panel' ),
ariaLabelledby;

tabPanelEl.removeAttr( 'role aria-labelledby tabindex' );
tabPanelEl.removeAttr( 'role aria-labelledby' );

if ( this.state().get( 'menu' ) && this.menuView && this.menuView.isVisible ) {
ariaLabelledby = 'menu-item-' + stateId;
Expand All @@ -111,7 +111,6 @@ MediaFrame = Frame.extend(/** @lends wp.media.view.MediaFrame.prototype */{
.attr( {
role: 'tabpanel',
'aria-labelledby': ariaLabelledby,
tabIndex: '0'
} );
}
},
Expand All @@ -127,7 +126,7 @@ MediaFrame = Frame.extend(/** @lends wp.media.view.MediaFrame.prototype */{
var tabPanelEl = this.$el.find( '.media-frame-content' ),
ariaLabelledby;

tabPanelEl.removeAttr( 'role aria-labelledby tabindex' );
tabPanelEl.removeAttr( 'role aria-labelledby' );

// Set the tab panel attributes only if the tabs are visible.
if ( this.state().get( 'router' ) && this.routerView && this.routerView.isVisible && this.content._mode ) {
Expand All @@ -137,7 +136,6 @@ MediaFrame = Frame.extend(/** @lends wp.media.view.MediaFrame.prototype */{
.attr( {
role: 'tabpanel',
'aria-labelledby': ariaLabelledby,
tabIndex: '0'
} );
}
},
Expand Down
Loading