WordPress.org

Make WordPress Core

Changeset 30483


Ignore:
Timestamp:
11/20/2014 05:14:11 PM (7 years ago)
Author:
helen
Message:

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.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/js/media-views.js

    r30461 r30483  
    70287028        template:  media.template('attachment-details'),
    70297029
     7030        attributes: function() {
     7031            return {
     7032                'tabIndex':     0,
     7033                'data-id':      this.model.get( 'id' )
     7034            };
     7035        },
     7036
    70307037        events: {
    70317038            'change [data-setting]':          'updateSetting',
Note: See TracChangeset for help on using the changeset viewer.