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. Built from https://develop.svn.wordpress.org/trunk@51971 git-svn-id: http://core.svn.wordpress.org/trunk@51560 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
@@ -355,7 +355,7 @@
|
||||
.community-events-errors [aria-hidden="true"],
|
||||
.community-events-loading[aria-hidden="true"],
|
||||
.community-events[aria-hidden="true"],
|
||||
.community-events [aria-hidden="true"] {
|
||||
.community-events form[aria-hidden="true"] {
|
||||
display: none;
|
||||
}
|
||||
|
||||
|
||||
2
wp-admin/css/dashboard-rtl.min.css
vendored
2
wp-admin/css/dashboard-rtl.min.css
vendored
File diff suppressed because one or more lines are too long
@@ -354,7 +354,7 @@
|
||||
.community-events-errors [aria-hidden="true"],
|
||||
.community-events-loading[aria-hidden="true"],
|
||||
.community-events[aria-hidden="true"],
|
||||
.community-events [aria-hidden="true"] {
|
||||
.community-events form[aria-hidden="true"] {
|
||||
display: none;
|
||||
}
|
||||
|
||||
|
||||
2
wp-admin/css/dashboard.min.css
vendored
2
wp-admin/css/dashboard.min.css
vendored
File diff suppressed because one or more lines are too long
@@ -1350,8 +1350,9 @@ function wp_print_community_events_markup() {
|
||||
<p>
|
||||
<span id="community-events-location-message"></span>
|
||||
|
||||
<button class="button-link community-events-toggle-location" aria-label="<?php esc_attr_e( 'Edit city' ); ?>" aria-expanded="false">
|
||||
<span class="dashicons dashicons-edit"></span>
|
||||
<button class="button-link community-events-toggle-location" aria-expanded="false">
|
||||
<span class="dashicons dashicons-location" aria-hidden="true"></span>
|
||||
<span class="community-events-location-edit"><?php _e( 'Select location' ); ?></span>
|
||||
</button>
|
||||
</p>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user