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
This commit is contained in:
parent
fed984a90c
commit
00053abb4c
|
@ -7027,6 +7027,13 @@
|
||||||
className: 'attachment-details',
|
className: 'attachment-details',
|
||||||
template: media.template('attachment-details'),
|
template: media.template('attachment-details'),
|
||||||
|
|
||||||
|
attributes: function() {
|
||||||
|
return {
|
||||||
|
'tabIndex': 0,
|
||||||
|
'data-id': this.model.get( 'id' )
|
||||||
|
};
|
||||||
|
},
|
||||||
|
|
||||||
events: {
|
events: {
|
||||||
'change [data-setting]': 'updateSetting',
|
'change [data-setting]': 'updateSetting',
|
||||||
'change [data-setting] input': 'updateSetting',
|
'change [data-setting] input': 'updateSetting',
|
||||||
|
|
Loading…
Reference in New Issue