From 00053abb4cd3ad11fd5069a10f6b8f526c06a094 Mon Sep 17 00:00:00 2001 From: Helen Hou-Sandi Date: Thu, 20 Nov 2014 17:14:11 +0000 Subject: [PATCH] Media a11y: Don't set role=checkbox for the attachment details view. Some unnecessary attributes were inherited from the attachment view, which created difficulties with screen readers. fixes #30390. git-svn-id: https://develop.svn.wordpress.org/trunk@30483 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-includes/js/media-views.js | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/wp-includes/js/media-views.js b/src/wp-includes/js/media-views.js index df03d13f36..f8517440a4 100644 --- a/src/wp-includes/js/media-views.js +++ b/src/wp-includes/js/media-views.js @@ -7027,6 +7027,13 @@ className: 'attachment-details', template: media.template('attachment-details'), + attributes: function() { + return { + 'tabIndex': 0, + 'data-id': this.model.get( 'id' ) + }; + }, + events: { 'change [data-setting]': 'updateSetting', 'change [data-setting] input': 'updateSetting',