Make WordPress Core


Ignore:
Timestamp:
11/01/2021 10:53:19 PM (4 years ago)
Author:
joedolson
Message:

Widgets: Use a text-based button to select location.

The WordPress Events and News widget used an icon-only button to select a location. The Pencil icon alone provided insufficient context and labeling for accessibility. Add text to clearly describe button action and change icon to represent a location marker.

Props AmethystAnswers, sabernhardt.
Fixes #53311.

File:
1 edited

Legend:

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

    r51282 r51971  
    13511351                <span id="community-events-location-message"></span>
    13521352
    1353                 <button class="button-link community-events-toggle-location" aria-label="<?php esc_attr_e( 'Edit city' ); ?>" aria-expanded="false">
    1354                     <span class="dashicons dashicons-edit"></span>
     1353                <button class="button-link community-events-toggle-location" aria-expanded="false">
     1354                    <span class="dashicons dashicons-location" aria-hidden="true"></span>
     1355                    <span class="community-events-location-edit"><?php _e( 'Select location' ); ?></span>
    13551356                </button>
    13561357            </p>
Note: See TracChangeset for help on using the changeset viewer.