WordPress.org

Make WordPress Core

Changeset 30760


Ignore:
Timestamp:
12/07/2014 12:44:49 AM (5 years ago)
Author:
azaozz
Message:

Customizer - Widgets: add feedback for screen readers when moving up or down. Props adamsilverstein, afercia. Fixes #28892.

Location:
trunk/src
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/customize.php

    r30695 r30760  
    119119<div class="wp-full-overlay expanded">
    120120    <form id="customize-controls" class="wrap wp-full-overlay-sidebar">
     121        <div id="screen-reader-messages" aria-live="polite" aria-relevant="all" aria-role="status" aria-atomic="true" class="screen-reader-text"></div>
    121122
    122123        <div id="customize-header-actions" class="wp-full-overlay-header">
  • trunk/src/wp-admin/js/customize-widgets.js

    r30738 r30760  
    672672                    if ( isMoveUp ) {
    673673                        self.moveUp();
     674                        $( '#screen-reader-messages' ).text( l10n.widgetMovedUp );
    674675                    } else {
    675676                        self.moveDown();
     677                        $( '#screen-reader-messages' ).text( l10n.widgetMovedDown );
    676678                    }
    677679
  • trunk/src/wp-includes/class-wp-customize-widgets.php

    r30695 r30760  
    729729                'removeBtnTooltip' => __( 'Trash widget by moving it to the inactive widgets sidebar.' ),
    730730                'error'            => __( 'An error has occurred. Please reload the page and try again.' ),
     731                'widgetMovedUp'    => __( 'Widget moved up' ),
     732                'widgetMovedDown'  => __( 'Widget moved down' ),
    731733            ),
    732734            'tpl' => array(
Note: See TracChangeset for help on using the changeset viewer.