From 2e276f354b4e4ff28fd6866260f680ffdef65e84 Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Tue, 23 Jun 2020 21:51:25 +0000 Subject: [PATCH] Accessibility: Administration: Give the link to meetup organizer handbook in the WordPress Events and News dashboard widget a more meaningful label. This ensures that the link still makes sense when read out of context by assistive technologies. Additionally, underline the link per the accessibility coding standards. Props samful, afercia, williampatton, audrasjb. Fixes #50338. git-svn-id: https://develop.svn.wordpress.org/trunk@48146 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-admin/css/dashboard.css | 4 ++++ src/wp-admin/includes/dashboard.php | 4 ++-- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/src/wp-admin/css/dashboard.css b/src/wp-admin/css/dashboard.css index e341c61bbc..6160ee3d09 100644 --- a/src/wp-admin/css/dashboard.css +++ b/src/wp-admin/css/dashboard.css @@ -348,6 +348,10 @@ border-left: 4px solid #00a0d2; } +#dashboard-widgets .community-events li.event-none a { + text-decoration: underline; +} + .community-events-form label { display: inline-block; vertical-align: top; diff --git a/src/wp-admin/includes/dashboard.php b/src/wp-admin/includes/dashboard.php index 7435ec7988..28859aae0b 100644 --- a/src/wp-admin/includes/dashboard.php +++ b/src/wp-admin/includes/dashboard.php @@ -1391,7 +1391,7 @@ function wp_print_community_events_templates() { organize one?' ), + __( 'There aren’t any events scheduled near %1$s at the moment. Would you like to organize a WordPress event?' ), '{{ data.location.description }}', __( 'https://make.wordpress.org/community/handbook/meetup-organizer/welcome/' ) ); @@ -1401,7 +1401,7 @@ function wp_print_community_events_templates() { organize one?' ), + __( 'There aren’t any events scheduled near you at the moment. Would you like to organize a WordPress event?' ), __( 'https://make.wordpress.org/community/handbook/meetup-organizer/welcome/' ) ); ?>