esc_html__( 'Image Map Missing Alternative Text', 'accessibility-checker' ),
'info_url' => 'https://a11ychecker.com/help1938',
'slug' => 'image_map_missing_alt_text',
'rule_type' => 'error',
'summary' => sprintf(
// translators: %1$s is <area><area>'
),
'summary_plural' => sprintf(
// translators: %1$s is <area><area>'
),
'why_it_matters' => esc_html__( 'Image maps use area elements to define interactive regions. Without alternative text, screen reader users won\'t know what each clickable area does, making it impossible to understand or interact with the map.', 'accessibility-checker' ),
'how_to_fix' => sprintf(
// translators: %1$s is <area>, %2$s is alt=""<area>',
'alt=""'
),
'references' => [
[
'text' => __( 'W3C: HTML Image Maps', 'accessibility-checker' ),
'url' => 'https://www.w3.org/WAI/tutorials/images/imagemap/',
],
[
'text' => __( 'MDN Web Docs: ', 'accessibility-checker' ),
'url' => 'https://developer.mozilla.org/en-US/docs/Web/HTML/Element/area',
],
],
'ruleset' => 'js',
'wcag' => '1.1.1',
'severity' => 1, // Critical..
'affected_disabilities' => [
AffectedDisabilities::BLIND,
AffectedDisabilities::LOW_VISION,
AffectedDisabilities::DEAFBLIND,
],
'combines' => [
'area-alt',
],
];
}
}