From a9507e7d7b951010f669780d705598209ace13e0 Mon Sep 17 00:00:00 2001 From: Adam Wood <1017872+adamwoodnz@users.noreply.github.com> Date: Thu, 25 Jul 2024 15:24:49 +1200 Subject: [PATCH] 2024 Theme: Improve aria labels for learning pathway 'See all' links It is best practice to have the visible text label at the start of the accessible name. This adds speech activation, improving the likelihood that a voice activation technology will activate the right link or set of links. It is better if there is also visible disambiguation so that voice command users are able to distinguish more easily which link they are activating. Fixes #2771 --- wp-content/themes/pub/wporg-learn-2024/functions.php | 12 ++++++------ .../taxonomy-learning-pathway-content-sections.php | 6 +++--- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/wp-content/themes/pub/wporg-learn-2024/functions.php b/wp-content/themes/pub/wporg-learn-2024/functions.php index 1c0406556..2b9a1dfc3 100644 --- a/wp-content/themes/pub/wporg-learn-2024/functions.php +++ b/wp-content/themes/pub/wporg-learn-2024/functions.php @@ -203,34 +203,34 @@ function get_learning_pathway_level_content( $learning_pathway ) { 'beginner' => array( 'title' => __( 'Beginner WordPress users', 'wporg-learn' ), 'description' => __( 'You’re new to WordPress, or building websites, and want the essentials.', 'wporg-learn' ), - 'see_all_aria_label' => 'Beginner WordPress users: See all learning pathways', + 'see_all_aria_label' => 'See all beginner WordPress user learning pathways', ), 'intermediate' => array( 'title' => __( 'Intermediate WordPress users', 'wporg-learn' ), 'description' => __( 'You’re comfortable setting up your site and making small changes or you’ve already completed the Beginner course.', 'wporg-learn' ), - 'see_all_aria_label' => 'Intermediate WordPress users: See all learning pathways', + 'see_all_aria_label' => 'See all intermediate WordPress user learning pathways', ), 'advanced' => array( 'title' => __( 'Advanced WordPress users', 'wporg-learn' ), 'description' => __( 'You’re confident using multiple plugins and know how to customize a Block theme, or you’ve already completed the Intermediate course.', 'wporg-learn' ), - 'see_all_aria_label' => 'Advanced WordPress users: See all learning pathways', + 'see_all_aria_label' => 'See all advanced WordPress user learning pathways', ), ), 'developer' => array( 'beginner' => array( 'title' => __( 'Beginner development concepts', 'wporg-learn' ), 'description' => __( 'You’re new to development or have experience using WordPress’s no-code features and want to do more.', 'wporg-learn' ), - 'see_all_aria_label' => 'Beginner development concepts: See all learning pathways', + 'see_all_aria_label' => 'See all beginner development concepts learning pathways', ), 'intermediate' => array( 'title' => __( 'Intermediate development concepts', 'wporg-learn' ), 'description' => __( 'You’re comfortable writing code and want to extend WordPress with your own plugin or theme.', 'wporg-learn' ), - 'see_all_aria_label' => 'Intermediate development concepts: See all learning pathways', + 'see_all_aria_label' => 'See all intermediate development concepts learning pathways', ), 'advanced' => array( 'title' => __( 'Advanced development concepts', 'wporg-learn' ), 'description' => __( 'You’re confident in the WordPress development environment or have already built your own plugin or theme.', 'wporg-learn' ), - 'see_all_aria_label' => 'Advanced development concepts: See all learning pathways', + 'see_all_aria_label' => 'See all advanced development concepts learning pathways', ), ), ); diff --git a/wp-content/themes/pub/wporg-learn-2024/patterns/taxonomy-learning-pathway-content-sections.php b/wp-content/themes/pub/wporg-learn-2024/patterns/taxonomy-learning-pathway-content-sections.php index 54ce921ca..7a498dfc8 100644 --- a/wp-content/themes/pub/wporg-learn-2024/patterns/taxonomy-learning-pathway-content-sections.php +++ b/wp-content/themes/pub/wporg-learn-2024/patterns/taxonomy-learning-pathway-content-sections.php @@ -41,7 +41,7 @@
@@ -79,7 +79,7 @@ @@ -117,7 +117,7 @@