esc_html__( 'Text Justified', 'accessibility-checker' ), 'info_url' => 'https://a11ychecker.com/help1980', 'slug' => 'text_justified', 'rule_type' => 'warning', 'summary' => sprintf( // translators: %s is text-align: justifytext-align: justify' ), 'summary_plural' => sprintf( // translators: %s is text-align: justifytext-align: justify' ), 'why_it_matters' => esc_html__( 'Justified text can create uneven spacing between words, forming distracting "rivers" of white space that make reading difficult—especially for people with dyslexia, low vision, or cognitive disabilities. Left-aligned text is more predictable and easier to read.', 'accessibility-checker' ), 'how_to_fix' => sprintf( // translators: %s is text-align: justifytext-align: justify' ), 'references' => [ [ 'text' => __( 'W3C: Making Content Usable for People with Cognitive and Learning Disabilities', 'accessibility-checker' ), 'url' => 'https://www.w3.org/TR/coga-usable/#use-left-and-right-alignment-consistently', ], ], 'ruleset' => 'js', 'wcag' => '1.4.8', 'severity' => 4, // Low. 'affected_disabilities' => [ AffectedDisabilities::LOW_VISION, AffectedDisabilities::DYSLEXIA, AffectedDisabilities::COGNITIVE, ], ]; } }