Make WordPress Core


Ignore:
Timestamp:
10/20/2015 08:14:51 PM (9 years ago)
Author:
afercia
Message:

Customizer: Make the widgets "Reorder" and "Add a Widget" buttons... buttons.

For accessibility, UI controls should preferably be native controls. Adds
ARIA attributes and labels to improve accessibility and pair these buttons
with the ones in the Menu Customizer.

Props obenland, TomHarrigan, sanket.parmar, metodiew, afercia.

Fixes #33327.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/class-wp-customize-widgets.php

    r35231 r35304  
    675675                'widgetMovedDown'  => __( 'Widget moved down' ),
    676676                'noAreasRendered'  => __( 'There are no widget areas currently rendered in the preview. Navigate in the preview to a template that makes use of a widget area in order to access its widgets here.' ),
     677                'reorderModeOn'    => __( 'Reorder mode enabled' ),
     678                'reorderModeOff'   => __( 'Reorder mode closed' ),
     679                'reorderLabelOn'   => esc_attr__( 'Reorder widgets' ),
     680                'reorderLabelOff'  => esc_attr__( 'Close reorder mode' ),
    677681            ),
    678682            'tpl' => array(
Note: See TracChangeset for help on using the changeset viewer.