Make WordPress Core

Changeset 29534


Ignore:
Timestamp:
08/18/2014 08:01:47 PM (10 years ago)
Author:
ocean90
Message:

Plugin details: Accessibility improvements

  • Focus the close link to transfer focus into the plugin modal.
  • Set title attribute on iframe for screereaders.

props jwenerd for initial patch and a11y team for testing.
fixes #28823.

Location:
trunk/src/wp-admin
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/css/common.css

    r29510 r29534  
    25342534}
    25352535
     2536body.plugin-install-php #TB_closeWindowButton:focus .tb-close-icon,
     2537body.import-php #TB_closeWindowButton:focus .tb-close-icon,
     2538body.plugins-php #TB_closeWindowButton:focus .tb-close-icon,
     2539body.update-core-php #TB_closeWindowButton:focus .tb-close-icon,
     2540body.index-php #TB_closeWindowButton:focus .tb-close-icon,
    25362541body.plugin-install-php .tb-close-icon:focus,
    25372542body.plugin-install-php .tb-close-icon:hover,
  • trunk/src/wp-admin/js/plugin-install.js

    r29474 r29534  
    4343
    4444        $('#TB_title').css({'background-color':'#222','color':'#cfcfcf'});
    45         $('#TB_ajaxWindowTitle').html('<strong>' + plugininstallL10n.plugin_information + '</strong>&nbsp;' + $(this).data( 'title' ) );
     45        $('#TB_ajaxWindowTitle').html( '<strong>' + plugininstallL10n.plugin_information + '</strong>&nbsp;' + $(this).data( 'title' ) );
     46        $('#TB_iframeContent').attr( 'title', plugininstallL10n.plugin_information + ' ' + $(this).data( 'title' ) );
     47        $('#TB_closeWindowButton').focus();
     48
    4649        return false;
    4750    });
Note: See TracChangeset for help on using the changeset viewer.