Skip to content

Commit

Permalink
Merge pull request #803 from equalizedigital/steve/no-issue/update-fi…
Browse files Browse the repository at this point in the history
…x-labels

Steve/no issue/update fix labels
  • Loading branch information
SteveJonesDev authored Oct 30, 2024
2 parents 98fca46 + 51feaf6 commit df014ad
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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' ],
];

Expand All @@ -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' ),
Expand Down
4 changes: 2 additions & 2 deletions includes/classes/Fixes/Fix/CommentSearchLabelFix.php
Original file line number Diff line number Diff line change
Expand Up @@ -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' ),
Expand All @@ -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' ),
Expand Down
2 changes: 1 addition & 1 deletion includes/classes/Fixes/Fix/FocusOutlineFix.php
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down
3 changes: 1 addition & 2 deletions includes/classes/Fixes/Fix/SkipLinkFix.php
Original file line number Diff line number Diff line change
Expand Up @@ -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 <code> 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' ), '<code>#</code>' ),
'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',
Expand Down

0 comments on commit df014ad

Please sign in to comment.