Make WordPress Core

Changeset 51971


Ignore:
Timestamp:
11/01/2021 10:53:19 PM (3 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.

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

Legend:

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

    r51727 r51971  
    355355.community-events-loading[aria-hidden="true"],
    356356.community-events[aria-hidden="true"],
    357 .community-events [aria-hidden="true"] {
     357.community-events form[aria-hidden="true"] {
    358358    display: none;
    359359}
  • 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.