From cb04a6daddc9bc66d81491aaf5c0230bd233cf25 Mon Sep 17 00:00:00 2001 From: Steve Jones Date: Wed, 30 Oct 2024 14:17:54 -0400 Subject: [PATCH 1/2] updated: Navigation Target description --- includes/classes/Fixes/Fix/SkipLinkFix.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/includes/classes/Fixes/Fix/SkipLinkFix.php b/includes/classes/Fixes/Fix/SkipLinkFix.php index c2a8695f..98f2d8da 100644 --- a/includes/classes/Fixes/Fix/SkipLinkFix.php +++ b/includes/classes/Fixes/Fix/SkipLinkFix.php @@ -103,8 +103,7 @@ public function get_fields_array( array $fields = [] ): array { 'label' => esc_html__( 'Navigation Target', 'accessibility-checker' ), 'type' => 'text', 'labelledby' => 'skip_link_nav_target_id', - // translators: %1$s: ampersand character wrapped in a tag. - 'description' => sprintf( __( 'Set the ID attribute of the navigation element, starting with %1$s. This is useful if your main navigation contains actions that most site visitors would want to take such as login or search features.', 'accessibility-checker' ), '#' ), + 'description' => __( 'Set the ID attribute of the navigation element. This is useful if your main navigation contains actions that most site visitors would want to take such as login or search features.', 'accessibility-checker' ), 'sanitize_callback' => 'sanitize_text_field', 'section' => 'skip_link', 'condition' => 'edac_fix_add_skip_link', From 51feaf64e192d8c54d41c777a67118db8386ce96 Mon Sep 17 00:00:00 2001 From: Steve Jones Date: Wed, 30 Oct 2024 14:24:04 -0400 Subject: [PATCH 2/2] updated: fix title and labels --- .../classes/Fixes/Fix/AddLabelToUnlabelledFormFieldsFix.php | 4 ++-- includes/classes/Fixes/Fix/CommentSearchLabelFix.php | 4 ++-- includes/classes/Fixes/Fix/FocusOutlineFix.php | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/includes/classes/Fixes/Fix/AddLabelToUnlabelledFormFieldsFix.php b/includes/classes/Fixes/Fix/AddLabelToUnlabelledFormFieldsFix.php index 4e630654..c89a9ca1 100644 --- a/includes/classes/Fixes/Fix/AddLabelToUnlabelledFormFieldsFix.php +++ b/includes/classes/Fixes/Fix/AddLabelToUnlabelledFormFieldsFix.php @@ -54,7 +54,7 @@ public function register(): void { 'edac_filter_fixes_settings_sections', function ( $sections ) { $sections[ $this->get_slug() ] = [ - 'title' => esc_html__( 'Unlabelled Form Fields', 'accessibility-checker' ), + 'title' => esc_html__( 'Label Form Fields', 'accessibility-checker' ), 'callback' => [ $this, $this->get_slug() . '_section_callback' ], ]; @@ -77,7 +77,7 @@ function ( $sections ) { */ public function get_fields_array( array $fields = [] ): array { $fields[ 'edac_fix_' . $this->get_slug() ] = [ - 'label' => esc_html__( 'Unlabelled Form Fields', 'accessibility-checker' ), + 'label' => esc_html__( 'Label Form Fields', 'accessibility-checker' ), 'type' => 'checkbox', 'labelledby' => $this->get_slug(), 'description' => esc_html__( 'Add labels to unlabelled form fields if field purpose can be determined.', 'accessibility-checker' ), diff --git a/includes/classes/Fixes/Fix/CommentSearchLabelFix.php b/includes/classes/Fixes/Fix/CommentSearchLabelFix.php index 6403201d..6b5733b7 100644 --- a/includes/classes/Fixes/Fix/CommentSearchLabelFix.php +++ b/includes/classes/Fixes/Fix/CommentSearchLabelFix.php @@ -78,7 +78,7 @@ function ( $sections ) { */ public function get_fields_array( array $fields = [] ): array { $fields['edac_fix_comment_label'] = [ - 'label' => esc_html__( 'Comment Form', 'accessibility-checker' ), + 'label' => esc_html__( 'Label Comment Form', 'accessibility-checker' ), 'type' => 'checkbox', 'labelledby' => 'add_comment_label', 'description' => esc_html__( 'Add missing labels to the WordPress comment form.', 'accessibility-checker' ), @@ -89,7 +89,7 @@ public function get_fields_array( array $fields = [] ): array { ]; $fields['edac_fix_search_label'] = [ - 'label' => esc_html__( 'Search Form', 'accessibility-checker' ), + 'label' => esc_html__( 'Label Search Form', 'accessibility-checker' ), 'type' => 'checkbox', 'labelledby' => 'add_search_label', 'description' => esc_html__( 'Add a missing label to the WordPress search form.', 'accessibility-checker' ), diff --git a/includes/classes/Fixes/Fix/FocusOutlineFix.php b/includes/classes/Fixes/Fix/FocusOutlineFix.php index e7edf632..84e96adb 100644 --- a/includes/classes/Fixes/Fix/FocusOutlineFix.php +++ b/includes/classes/Fixes/Fix/FocusOutlineFix.php @@ -78,7 +78,7 @@ function ( $sections ) { public function get_fields_array( array $fields = [] ): array { $fields['edac_fix_focus_outline'] = [ 'type' => 'checkbox', - 'label' => esc_html__( 'Focus Outline', 'accessibility-checker' ), + 'label' => esc_html__( 'Add Focus Outline', 'accessibility-checker' ), 'labelledby' => 'fix_focus_outline', 'description' => esc_html__( 'Add an outline to elements when they receive keyboard focus.', 'accessibility-checker' ), 'section' => 'focus_outline',