esc_html__( 'Zooming and Scaling Disabled', 'accessibility-checker' ),
'info_url' => 'https://a11ychecker.com/help7947',
'slug' => 'meta_viewport',
'rule_type' => 'error',
'summary' => sprintf(
// translators: %1$s is user-scalable=no, %2$s is maximum-scale.
esc_html__( 'This page disables zooming by using a viewport meta tag with either %1$s or a %2$s value of less than 2. This prevents users from enlarging content to improve readability.', 'accessibility-checker' ),
'user-scalable=no',
'maximum-scale'
),
'summary_plural' => sprintf(
// translators: %1$s is user-scalable=no, %2$s is maximum-scale.
esc_html__( 'These pages disable zooming by using viewport meta tags with either %1$s or a %2$s value of less than 2. This prevents users from enlarging content to improve readability.', 'accessibility-checker' ),
'user-scalable=no',
'maximum-scale'
),
'why_it_matters' => esc_html__( 'Restricting a user\'s ability to zoom creates barriers for individuals with low vision or other visual impairments. These users may rely on browser zoom features, pinch-zooming on mobile, or magnifiers to access content comfortably.', 'accessibility-checker' ),
'how_to_fix' => sprintf(
// translators: %1$s is user-scalable=no, %2$s is maximum-scale, %3$s is
user-scalable=no',
'maximum-scale',
'<head>'
),
'references' => [
[
'text' => esc_html__( 'MDN Web Docs: ', 'accessibility-checker' ),
'url' => 'https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/meta/name/viewport',
],
],
'wcag' => '1.4.4',
'severity' => 1, // Critical.
'affected_disabilities' => [
AffectedDisabilities::LOW_VISION,
],
'ruleset' => 'js',
'combines' => [ 'meta-viewport' ],
'viewable' => false,
'fixes' => [
MetaViewportScalableFix::get_slug(),
],
];
}
}