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.

Built from https://develop.svn.wordpress.org/trunk@30483


git-svn-id: http://core.svn.wordpress.org/trunk@30471 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Helen Hou-Sandí 2014-11-20 17:15:23 +00:00
parent 7d95c83257
commit 6225c63cf1
2 changed files with 8 additions and 1 deletions

View File

@ -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',

File diff suppressed because one or more lines are too long