esc_html__( 'Empty Link', 'accessibility-checker' ), 'info_url' => 'https://a11ychecker.com/help4108', 'slug' => 'empty_link', 'rule_type' => 'error', 'summary' => esc_html__( 'This is an empty link that does not contain any meaningful content for assistive technologies.', 'accessibility-checker' ), 'summary_plural' => esc_html__( 'These are empty links that do not contain any meaningful content for assistive technologies.', 'accessibility-checker' ), 'why_it_matters' => esc_html__( 'Screen reader users rely on link text to understand the purpose or destination of a link. An empty link provides no information, making it difficult or impossible for users to decide whether or not to follow it.', 'accessibility-checker' ), 'how_to_fix' => sprintf( // translators: %1$s is <a>, %2$s is aria-hidden="true", %3$s is aria-label<a>', 'aria-hidden="true"', 'aria-label' ), 'references' => [ [ 'text' => __( 'W3C Technique H30: Providing link text that describes the purpose of a link', 'accessibility-checker' ), 'url' => 'https://www.w3.org/WAI/WCAG21/Techniques/html/H30', ], [ 'text' => __( 'WebAIM: Links and Hypertext', 'accessibility-checker' ), 'url' => 'https://webaim.org/techniques/hypertext/', ], [ 'text' => __( 'WordPress: The CSS class screen-reader-text', 'accessibility-checker' ), 'url' => 'https://make.wordpress.org/accessibility/handbook/markup/the-css-class-screen-reader-text/', ], ], 'ruleset' => 'js', 'wcag' => '2.4.4', 'severity' => 1, // Critical.. 'affected_disabilities' => [ AffectedDisabilities::BLIND, AffectedDisabilities::LOW_VISION, AffectedDisabilities::DEAFBLIND, AffectedDisabilities::COGNITIVE, ], ]; } }