From 93b2e8d9a685f63a57bed3331d0ca71f45ed5002 Mon Sep 17 00:00:00 2001 From: Joe Dolson Date: Mon, 1 Nov 2021 22:53:19 +0000 Subject: [PATCH] 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. git-svn-id: https://develop.svn.wordpress.org/trunk@51971 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-admin/css/dashboard.css | 2 +- src/wp-admin/includes/dashboard.php | 5 +++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/src/wp-admin/css/dashboard.css b/src/wp-admin/css/dashboard.css index 66505ec34e..1f42793ac1 100644 --- a/src/wp-admin/css/dashboard.css +++ b/src/wp-admin/css/dashboard.css @@ -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; } diff --git a/src/wp-admin/includes/dashboard.php b/src/wp-admin/includes/dashboard.php index 14d2837867..5d332921c0 100644 --- a/src/wp-admin/includes/dashboard.php +++ b/src/wp-admin/includes/dashboard.php @@ -1350,8 +1350,9 @@ function wp_print_community_events_markup() {

-