@kinti/a11y-toolkit 5.22.1 → 5.22.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (38) hide show
  1. package/LICENSE +21 -0
  2. package/a11y_toolkit/__init__.py +5 -0
  3. package/a11y_toolkit/a11y.py +117 -0
  4. package/a11y_toolkit/a11yact.py +167 -0
  5. package/a11y_toolkit/a11yaudit.py +1951 -0
  6. package/a11y_toolkit/a11ybadge.py +102 -0
  7. package/a11y_toolkit/a11ybudget.py +122 -0
  8. package/a11y_toolkit/a11ycrit.py +1017 -0
  9. package/a11y_toolkit/a11ydiff.py +192 -0
  10. package/a11y_toolkit/a11ydisprove.py +175 -0
  11. package/a11y_toolkit/a11ydocx.py +132 -0
  12. package/a11y_toolkit/a11ydom.py +1831 -0
  13. package/a11y_toolkit/a11yevidence.py +272 -0
  14. package/a11y_toolkit/a11yfix.py +330 -0
  15. package/a11y_toolkit/a11yi18n.py +100 -0
  16. package/a11y_toolkit/a11yinit.py +113 -0
  17. package/a11y_toolkit/a11yjourney.py +284 -0
  18. package/a11y_toolkit/a11yledger.py +210 -0
  19. package/a11y_toolkit/a11ymutants.py +406 -0
  20. package/a11y_toolkit/a11yopenacr.py +207 -0
  21. package/a11y_toolkit/a11ypdf.py +273 -0
  22. package/a11y_toolkit/a11yroute.py +378 -0
  23. package/a11y_toolkit/a11ysarif.py +139 -0
  24. package/a11y_toolkit/a11yscroll.py +212 -0
  25. package/a11y_toolkit/a11ystatement.py +158 -0
  26. package/a11y_toolkit/a11yvalidate.py +127 -0
  27. package/a11y_toolkit/a11yvpat.py +238 -0
  28. package/a11y_toolkit/a11yvtt.py +136 -0
  29. package/a11y_toolkit/a11ywcag3.py +262 -0
  30. package/a11y_toolkit/a11ywcagem.py +177 -0
  31. package/a11y_toolkit/arialive.js +107 -0
  32. package/a11y_toolkit/arialive_js.py +113 -0
  33. package/a11y_toolkit/contrast.py +536 -0
  34. package/a11y_toolkit/locales/_template.json +468 -0
  35. package/a11y_toolkit/locales/en.json +525 -0
  36. package/a11y_toolkit/locales/es.json +525 -0
  37. package/a11y_toolkit/server.py +1529 -0
  38. package/package.json +7 -2
@@ -0,0 +1,525 @@
1
+ {
2
+ "_meta": {
3
+ "dir": "ltr",
4
+ "name": "English",
5
+ "native": "English",
6
+ "plural": "n == 1"
7
+ },
8
+ "audit": {
9
+ "accesskey_dup": "{n} duplicated accesskey values: {example}.",
10
+ "accesskey_dup_rem": "Duplicated accesskeys trigger the wrong control and clash with browser shortcuts; remove or make unique.",
11
+ "aria_hidden_focusable": "{n} interactive elements (<{tag}>) with aria-hidden=\"true\": hidden from the screen reader yet still focusable.",
12
+ "aria_hidden_focusable_rem": "Remove aria-hidden from the focusable element, or add tabindex=\"-1\" if it must stay out of interaction.",
13
+ "aria_ref_missing": "{n} aria-labelledby/describedby references point to ids that do not exist: {example}.",
14
+ "aria_ref_missing_rem": "Fix or remove the reference: a broken aria-labelledby leaves the control with no accessible name.",
15
+ "aria_value_invalid": "{n} invalid ARIA attribute values: {example}. Assistive tech ignores them.",
16
+ "aria_value_invalid_rem": "Boolean aria-* only accept true/false/undefined, position ones integers, token ones their closed list (4.1.2). Fix or drop the attribute.",
17
+ "audio_desc_missing": "{n} <video> without audio-description track (1.2.3/1.2.5): pending human judgment.",
18
+ "audio_desc_missing_rem": "If the video carries essential visual information not narrated, publish audio description (track kind=\"descriptions\" or alternative) — a person watching the video decides.",
19
+ "autocomplete": "{n} fields collecting user information without an autocomplete attribute: {example}.",
20
+ "autocomplete_invalid": "{n} invalid autocomplete token values: {example}. Tokens must come from the HTML autofill standard (§7.5) or assistive tech cannot identify the purpose (1.3.5).",
21
+ "autocomplete_invalid_rem": "Use standard tokens: email, tel, name, postal-code, one-time-code… (full list in the tool).",
22
+ "autocomplete_rem": "Add autocomplete with the right token (email, tel, name, postal-code…, 1.3.5): free accessibility and autofill at zero cost.",
23
+ "blank_no_warning": "{n} links with target=\"_blank\" that do not warn they open a new window.",
24
+ "blank_no_warning_rem": "Add a text hint (or title/aria-label): \"(opens in a new window)\", or let the user decide.",
25
+ "captcha": "Captcha detected ({example}): 3.3.8 requires a non-cognitive-test alternative for access.",
26
+ "captcha_rem": "Offer alternatives: magic links, OAuth, human support. A CAPTCHA without an alternative excludes (3.3.8, new in WCAG 2.2 AA).",
27
+ "char_shortcut": "{n} single-character keyboard shortcuts detected: {example}. Review (2.1.4).",
28
+ "char_shortcut_rem": "Single-key shortcuts must be disablable, remappable, or active only on focus (2.1.4): voice-dictation users trigger every letter.",
29
+ "click_nonfocusable": "{n} non-interactive elements (<{tag}>) with onclick, no role, no tabindex and no keyboard handling.",
30
+ "click_nonfocusable_rem": "Use a real <button>; if impossible, add role=\"button\", tabindex=\"0\" and Enter/Space handling (2.1.1).",
31
+ "color_only_link": "Links distinguishable only by color detected in the rendered pass (1.4.1).",
32
+ "color_only_link_rem": "A link inside text needs underline or another cue, or ≥3:1 contrast against surrounding text (1.4.1).",
33
+ "ctrl_name": "{n} <{tag}> with no accessible name (no text, aria-label or title).",
34
+ "ctrl_name_rem": "The accessible name comes from inner text, aria-label, title, or an inner image with alt. An empty control is invisible to screen readers.",
35
+ "dom_visual_order": "DOM order differs from visual order in {n} text blocks: review with keyboard (1.3.2).",
36
+ "dom_visual_order_rem": "Programmatic reading order must match visual order: check flex order, grid placement and position absolute (1.3.2).",
37
+ "down_event": "{n} down-event handlers (onmousedown/ontouchstart/onpointerdown): {example}. Review (2.5.2).",
38
+ "down_event_rem": "Activate on the UP event (onclick/onmouseup): dragging away can abort — that is rule 2.5.2.",
39
+ "drag_no_alt": "{n} drag handlers with no visible click/button alternative: {example}. Review (2.5.7).",
40
+ "drag_no_alt_rem": "Every drag action needs a non-dragging alternative: up/down buttons, context menu, arrows (2.5.7).",
41
+ "dup_ids": "{n} duplicated ids; they can break label-for and aria-labelledby associations.",
42
+ "dup_ids_rem": "Make ids unique: <label for> and aria-labelledby only point at the first match.",
43
+ "element_lang_invalid": "{n} invalid lang attributes on elements (BCP-47): {example}.",
44
+ "element_lang_invalid_rem": "Foreign-language fragments carry lang with a valid code (3.1.2): <blockquote lang=\"en\">…</blockquote>.",
45
+ "empty_heading": "{n} empty headings (<h*> with no text).",
46
+ "empty_heading_rem": "Remove empty headings or give them text: they show up as gaps in the reader's index.",
47
+ "fetch_error": "could not download: {e}",
48
+ "field_label": "{n} form fields with no associated <label> and no accessible name.",
49
+ "field_label_rem": "Associate <label for=\"id\"> (or wrap the field), or use aria-label. Applies to input, select and textarea.",
50
+ "fieldset_missing": "{n} radio/checkbox groups without <fieldset><legend>: screen readers do not announce the common question (1.3.1).",
51
+ "fieldset_missing_rem": "Wrap groups in <fieldset><legend>Common question</legend>…</fieldset> (1.3.1): without it, each radio is announced without context.",
52
+ "financial_no_confirm": "{n} financial/legal form(s) without a detectable confirmation step (3.3.4).",
53
+ "financial_no_confirm_rem": "Submissions with legal/financial consequences must be reversible, checked, or confirmed (3.3.4): terms checkbox, \"Review and confirm\" button, or review step.",
54
+ "forced_colors_svg": "{n} SVGs with hardcoded colored fill: under forced-colors (Windows High Contrast) the fill falls back to inherited and the icon can turn invisible.",
55
+ "forced_colors_svg_rem": "Use fill=\"currentColor\" (inherits text color, which the system already adjusts) or the system keywords (CanvasText).",
56
+ "generic_link": "{n} links with generic text (\"more\", \"here\", \"read more\"): {example}.",
57
+ "generic_link_rem": "Describe the destination in the link text (2.4.4): people listing links jump between them with no context.",
58
+ "gesture_no_click": "{n} gesture/drag handlers with no visible click alternative: {example}. Review (2.5.1).",
59
+ "gesture_no_click_rem": "Every gesture function (swipe/drag) needs a non-gesture alternative: prev/next button or plain click (2.5.1).",
60
+ "heading_quality": "{n} suspiciously generic or vague headings/labels: {example}. Review (2.4.6).",
61
+ "heading_quality_rem": "Headings should describe their section: \"Q3 Report Results\", not \"Section 2\" or \"More info\" (2.4.6). Name things.",
62
+ "heading_skips": "Heading level skips: {skips}.",
63
+ "heading_skips_rem": "Do not skip levels (h2→h4): it breaks the navigation outline. Descend one level at a time.",
64
+ "help_inconsistent": "Help (contact/support) appears in different places or shapes across site pages ({example}). Review (3.2.6).",
65
+ "help_inconsistent_rem": "When help appears on multiple pages, it must appear in the same relative order and consistently (3.2.6, new in 2.2): same menu, same place.",
66
+ "iframe_title": "{n} <iframe> without an accessible title.",
67
+ "iframe_title_rem": "Add a descriptive title to the iframe (screen readers announce it on arrival).",
68
+ "images_of_text": "{n} images that appear to be rendered text (very long alt{ej2}). Review (1.4.5).",
69
+ "images_of_text_rem": "Except for logotypes, present text as real text (1.4.5): it rescales, reflows and translates; an image does not.",
70
+ "overlay_widgets_note": "A third-party accessibility overlay widget was detected (see overlay_widgets). Overlays do not make a site accessible — see the community Overlay Fact Sheet (overlayfactsheet.com). Reported as information for procurement diligence, not as a WCAG finding.",
71
+ "img_no_alt": "{n} <img> without an alt attribute (not even alt=\"\").",
72
+ "img_no_alt_rem": "Add alt to every <img>: descriptive text when it conveys information, alt=\"\" when decorative. Same requirement for <input type=\"image\"> and <area>.",
73
+ "input_img_alt": "<input type=\"image\"> without alt (image button with no name).",
74
+ "input_img_alt_rem": "Add descriptive alt to the input type=\"image\" (it is its accessible name), or replace it with a <button> with text or <input type=\"submit\" value=\"…\">.",
75
+ "label_in_name": "{n} controls whose aria-label does not contain the visible text («{example}»): voice-input users say what they see (2.5.3).",
76
+ "label_in_name_rem": "The accessible name must CONTAIN the visible label: \"Summer offers (opens in new window)\", not \"More info\". Use visible text + suffix.",
77
+ "label_orphan": "{n} <label> without for and without a nested field: they label nothing.",
78
+ "label_orphan_rem": "Connect the label to its field via for=\"id\", or move the field inside the label.",
79
+ "label_vague": "{n} suspiciously vague labels: {example} (2.4.6).",
80
+ "label_vague_rem": "Labels should describe the field: \"Contact email address\", not \"Field\" or \"Text\" (2.4.6).",
81
+ "landmark_dup": "{n} groups of duplicated landmarks (<nav>, <header>…) without a distinguishing aria-label: {example}.",
82
+ "landmark_dup_rem": "Name each repeated landmark (aria-label=\"Main menu\", aria-label=\"Footer menu\"): otherwise landmark navigation is a lottery.",
83
+ "lang_invalid": "lang=\"{lang}\" is not a valid BCP-47 language code.",
84
+ "lang_invalid_rem": "Use the correct ISO 639 primary subtag (en, es, pt…).",
85
+ "lang_missing": "The <html> element does not declare lang.",
86
+ "lang_missing_rem": "Add lang=\"en\" (the real language) to <html>: screen readers pick the synthetic voice from it.",
87
+ "lang_region_invalid": "lang “{l}”: the region subtag does not exist (ISO 3166). Use the language alone (“en”) or a real region (“en-GB”).",
88
+ "lang_region_invalid_rem": "Validate the region against the IANA Language Subtag Registry: “en” alone or “en-GB” with a real region.",
89
+ "limits": "Automation ≈ one third of WCAG: this is an express filter, not a substitute for manual review (keyboard, screen reader, real contrast, audit rhyme).",
90
+ "list_structure": "{n} illegal children inside <ul>/<ol> (only <li>, <script> and <template> are valid).",
91
+ "list_structure_rem": "Wrap loose content in <li> or use another container: screen readers announce the list with its item count and skip non-<li> content.",
92
+ "meta_refresh": "<meta http-equiv=\"refresh\"> with a timed reload/redirect ({v}s).",
93
+ "meta_refresh_rem": "Replace the automatic reload with user-initiated navigation (2.2.1). Instant redirects are better done server-side.",
94
+ "motion_actuation": "{n} deviceorientation/devicemotion handlers with no UI alternative: {example}. Review (2.5.4).",
95
+ "motion_actuation_rem": "What motion activates must also be activatable via UI (button) and disablable (2.5.4).",
96
+ "motion_moving": "{n} moving/looping contents with no visible pause control: {example}. Review (2.2.2).",
97
+ "motion_moving_rem": "Content moving/blinking >5s needs a pause/stop mechanism (2.2.2): <marquee> has none; looping animations do not either by default.",
98
+ "multi_h1": "{n} <h1> on the page (recommended maximum: 1).",
99
+ "multi_h1_rem": "Keep a single h1 (page title) and demote the rest one level.",
100
+ "multi_label": "{n} fields with more than one associated <label for>.",
101
+ "multi_label_rem": "One field, one label: screen readers announce concatenated labels. Merge the text into one.",
102
+ "nav_inconsistent": "Repeated navigation changes across site pages ({example}) (3.2.3).",
103
+ "nav_inconsistent_rem": "Repeated navigation mechanisms must appear in the same relative order on every page (3.2.3): shared template.",
104
+ "no_bypass": "Neither <main>/role=\"main\" nor a skip link: no way to bypass repeated blocks.",
105
+ "no_bypass_rem": "Add <main> (or role=\"main\") and a \"Skip to content\" link as the first focus stop.",
106
+ "no_h1": "There is no <h1> on the page.",
107
+ "no_h1_rem": "Add a single h1 naming the page.",
108
+ "no_headings": "The page has no headings (h1–h6).",
109
+ "no_headings_rem": "Structure content with hierarchical headings: they are the screen reader's navigation index.",
110
+ "no_multiple_ways": "No alternative way to find pages (no search, no sitemap, no index) across sampled pages (2.4.5).",
111
+ "no_multiple_ways_rem": "Offer at least two ways: navigation + search or sitemap (2.4.5).",
112
+ "no_status_regions": "No status regions (aria-live/status/alert) detected on the page: dynamic messages will not be announced (4.1.3).",
113
+ "no_status_regions_rem": "Add role=\"status\" or aria-live=\"polite\" for toasts, save confirmations, search results (4.1.3).",
114
+ "orientation_lock": "Orientation lock detected: {example}. Review (1.3.4).",
115
+ "orientation_lock_rem": "Content must not be locked to one orientation unless the exception demonstrably applies (1.3.4): remove screen.orientation.lock() and orientation-forcing media queries.",
116
+ "placeholder_only": "{n} fields using placeholder as their only label (no <label>): {example}. The placeholder vanishes on input (3.3.2).",
117
+ "placeholder_only_rem": "Placeholder is NOT a label: add a visible <label for=\"id\">. The placeholder disappears when typing starts and screen readers do not always announce it (3.3.2).",
118
+ "reduced_motion_ignored": "{n} looping animations still run with prefers-reduced-motion set (before {n}, after {nr}): the user's preference is ignored (2.2.2).",
119
+ "reduced_motion_ignored_rem": "Wrap animations in @media (prefers-reduced-motion: reduce) { animation: none } — or pause via the Animation API. The user asked for less motion; honor it.",
120
+ "required_no_indication": "{n} required fields with no visible required indication: {example} (3.3.2).",
121
+ "required_no_indication_rem": "Required fields must indicate it: asterisk with legend, \"required\" text in the label, or announced aria-required (3.3.2).",
122
+ "role_required_attr": "{n} widgets whose role requires missing ARIA attributes: {example}.",
123
+ "role_required_attr_rem": "A slider needs aria-valuenow (ideally aria-valuemin/max): without the state the widget is inoperative for assistive tech (4.1.2).",
124
+ "role_unknown": "{n} unknown ARIA roles: {example}. Screen readers ignore them.",
125
+ "role_unknown_rem": "Use roles from the ARIA specification (button, dialog, navigation…) or drop the attribute and rely on semantic HTML.",
126
+ "same_name_links": {
127
+ "one": "1 pair of links with identical text pointing to different destinations.",
128
+ "other": "{n} pairs of links with identical text pointing to different destinations."
129
+ },
130
+ "same_name_links_rem": "Differentiate the names (or unify the destination): \"Reports\" ×3 with three different URLs is a problem for anyone navigating by link list.",
131
+ "score_note": "Weighted score: high −12, medium −6, low −2 from 100. It measures only what is automatable (≈1/3 of WCAG): use it to track trends between releases, not as conformance (WCAG-EM-style sampling and scope; not a conformance evaluation). THIS static pass did NOT measure contrast (1.4.3), target size or the criteria in not_measured: a 100 here is not \"contrast is fine\" — run the rendered audit.",
132
+ "sensory_text": "Instructions appealing to senses alone: \"{example}\". Review (1.3.3).",
133
+ "sensory_text_rem": "Do not instruct by position/shape/color alone (\"the button on the right\"): name things (1.3.3).",
134
+ "tabindex_pos": "{n} elements with a positive tabindex (overrides natural order).",
135
+ "tabindex_pos_rem": "Use tabindex=\"0\" or drop the attribute: tab order must follow the DOM.",
136
+ "table_no_th": "{n} <table> with no <th> cells.",
137
+ "table_no_th_rem": "Mark row/column headers with <th> (plus scope) so the reader can associate cells.",
138
+ "text_spacing_clip": "{n} texts clipped when the 1.4.12 spacing overrides apply (line-height 1.5, letter 0.12em): review.",
139
+ "text_spacing_clip_rem": "Content must survive text-spacing overrides without clipping: replace fixed heights with min-height (1.4.12).",
140
+ "title_generic": "Generic title (“{t}”): does not identify this page among the open ones (2.4.2, review).",
141
+ "title_generic_rem": "One unique title per page: content + site (“Contact — MaisMedia”), never “Untitled”, “Home” or “Document”.",
142
+ "title_missing": "The page has no <title> with content.",
143
+ "title_missing_rem": "Write a unique, descriptive <title> per page (screen reader's first announcement, tab text).",
144
+ "video_autoplay": "{n} media elements with autoplay (audio >3s with no way to stop it).",
145
+ "video_autoplay_rem": "Remove autoplay or add muted + a visible pause/stop control (1.4.2): audio that starts on its own disrupts screen-reader users.",
146
+ "video_captions": "{n} <video> without <track kind=\"captions\">.",
147
+ "video_captions_rem": "Publish captions for the video audio track (1.2.2). If decorative and silent, mark it as such.",
148
+ "zoom_max": "The viewport limits zoom (maximum-scale={v}; recommend no limit or ≥2).",
149
+ "zoom_max_rem": "Remove maximum-scale from the viewport, or set it to 2 or higher, so text can be enlarged (1.4.4).",
150
+ "zoom_no": "The viewport blocks user zoom (user-scalable=no/0).",
151
+ "zoom_no_rem": "Remove user-scalable=no and maximum-scale: zooming is the user's right (1.4.4).",
152
+ "rendered_reason": "requires the rendered audit (a11y_audit_dom / a11ytoolkit dom): computed styles, cascade, var(), real layout"
153
+ },
154
+ "badge": {
155
+ "name": "a11y-toolkit",
156
+ "scope": "automated screening",
157
+ "title": "Accessibility: {score}/100 — {date} — {scope} (≈1/3 of WCAG); not conformance."
158
+ },
159
+ "contrast": {
160
+ "criteria": [
161
+ [
162
+ "1.4.3 Contrast (Minimum) · normal text",
163
+ "AA",
164
+ 4.5
165
+ ],
166
+ [
167
+ "1.4.3 Contrast (Minimum) · large text",
168
+ "AA",
169
+ 3.0
170
+ ],
171
+ [
172
+ "1.4.6 Contrast (Enhanced) · normal text",
173
+ "AAA",
174
+ 7.0
175
+ ],
176
+ [
177
+ "1.4.6 Contrast (Enhanced) · large text",
178
+ "AAA",
179
+ 4.5
180
+ ],
181
+ [
182
+ "1.4.11 Non-text Contrast (UI, icons, borders)",
183
+ "AA",
184
+ 3.0
185
+ ]
186
+ ],
187
+ "darkening": "darkening",
188
+ "interp": "Text contrast must be evaluated against the REAL background behind it: use worst_ratio to find the most hostile area and area_passes_aa_normal_text_4_5 to know how much surface is safe. If area_passes_aa_normal_text_4_5 < 100% for text over image, you need an overlay/scrim or repositioned alternative text.",
189
+ "invalid_color": "invalid color (use #rgb, #rrggbb or rgb(r,g,b))",
190
+ "invalid_region": "region must be x,y,width,height (comma-separated numbers)",
191
+ "lightening": "lightening",
192
+ "load_error": "could not load image",
193
+ "no_box": "the element matched by {s} has no visible box to sample",
194
+ "no_pixels": "no pixels in region",
195
+ "no_post_copy": "no specific copy of the post: base only",
196
+ "opaque_text": "use an opaque color for text over images (no alpha)",
197
+ "region_outside": "region outside the image",
198
+ "selector_missing": "selector {s} not found on the page"
199
+ },
200
+ "docx": {
201
+ "docx_fake_headings": "{n} paragraphs with just bold/large text: they LOOK like headings but are not — navigation pane and auto-TOC cannot see them (1.3.1).",
202
+ "docx_fake_headings_rem": "Apply the \"Heading 1/2\" style instead of manual bold: then they exist in the navigation pane and the TOC.",
203
+ "docx_no_alt": "{n} images with no alternative text (docPr without descr, or empty): invisible to screen readers (1.1.1).",
204
+ "docx_no_alt_rem": "Right-click each image → \"Edit Alt Text\" and describe it. Decorative ones: tick \"decorative\".",
205
+ "docx_no_lang": "document language not declared: synthetic voice and spellcheck cannot pick (3.1.1).",
206
+ "docx_no_lang_rem": "Review → Language → set the whole-document language.",
207
+ "docx_table_no_header": "{n} tables with no marked header row: cells lose their column context (1.3.1).",
208
+ "docx_table_no_header_rem": "Table → mark the header row (\"Repeat header rows\" for multi-page tables).",
209
+ "limits": "Structural XML screening: not a substitute for human review (reading order of complex tables, meaning of under-described images, embedded charts)."
210
+ },
211
+ "dom": {
212
+ "contrast_fail": "{n} text areas with insufficient contrast: {det}. (computed fg/background, with alpha compositing).",
213
+ "contrast_fail_rem": "Raise contrast to ≥4.5:1 (≥3:1 for large text). The effective background already includes overlays and translucency; with a background image, check that area manually.",
214
+ "contrast_image_fail": "{n} text areas over an image/gradient with insufficient contrast, MEASURED by real pixel sampling: {det}.",
215
+ "contrast_image_fail_rem": "Add a semi-transparent scrim over the image, darken it, or move the text to a safe zone. The worst ratio marks the hostile area; if the AA-passing area is not 100%, the real background is not safe.",
216
+ "contrast_review": "{n} text areas over background images or with text-shadow: not computable, review.",
217
+ "contrast_review_rem": "Contrast over a background image could not be measured here: use a11y_contrast_image with a screenshot of that region, or a11y_contrast_dom to measure it directly from the page.",
218
+ "focus_invisible": "{n} focusable controls with no apparent focus indicator (outline and box-shadow absent): {det}. Review.",
219
+ "focus_invisible_rem": "Guarantee a visible focus indicator: never outline:none without a replacement; use :focus-visible with ≥2px outline or a contrasted border/shadow (2.4.7).",
220
+ "focus_navigates": "Receiving focus on {example} triggered a context change (URL changed to {url}) — 3.2.1.",
221
+ "focus_navigates_rem": "Receiving focus must never change context (3.2.1): check focus→location.href, focus→form.submit(), focus→window.open().",
222
+ "focus_not_focusable": "{n} controls that never receive focus via .focus(): {det}.",
223
+ "focus_not_focusable_rem": "If it must be interactive, make it focusable (tabindex=\"0\"); otherwise remove it from the tab path.",
224
+ "focus_obscured": "{n} controls end up hidden behind fixed/sticky elements when focused (sticky headers, banners): {det}. Review (2.4.11).",
225
+ "focus_obscured_rem": "Author-fixed content must not hide the focused element (2.4.11, new in WCAG 2.2 AA): set scroll-padding-top to the fixed header height, or make it auto-collapse.",
226
+ "forced_colors_svg": "{n} SVGs with hardcoded colored fill: under forced-colors (Windows High Contrast) the fill falls back to inherited and the icon can turn invisible.",
227
+ "forced_colors_svg_rem": "Use fill=\"currentColor\" (inherits text color, which the system already adjusts) or the system keywords (CanvasText).",
228
+ "form_error_missing": "{n} forms submitted with invalid data with NO error identification: no aria-invalid, aria-describedby with text, role=alert, or error text (3.3.1).",
229
+ "form_error_missing_rem": "Errors must be described in text and associated with the field: aria-invalid=\"true\" + a message linked via aria-describedby (or a summary that takes focus on submit). A red border alone is not an identified error.",
230
+ "form_error_no_suggestion": "{n} fields with an identified error but no detectable correction suggestion (3.3.3). Review.",
231
+ "form_error_no_suggestion_rem": "When the correction is known, say it: \"Use DD/MM/YYYY\", not \"Invalid date\" (3.3.3). Suggestion pattern: format/example text near the field.",
232
+ "form_navigated": "The form navigates on submit; error behavior is not measurable in-page ({example}).",
233
+ "form_navigated_rem": "Capture the destination page or intercept the submit; judging errors requires the post-submit DOM.",
234
+ "hover_not_dismissible": "{n} tooltips/overlays appearing on hover/focus that do NOT dismiss on Escape (1.4.13).",
235
+ "hover_not_dismissible_rem": "Hover/focus-triggered content must be dismissible with Escape without moving the pointer (1.4.13): add a keydown Escape handler that hides the tooltip.",
236
+ "input_navigates": "Changing {example} triggered automatic navigation (URL: {url}) — 3.2.2.",
237
+ "input_navigates_rem": "Changing a setting must never navigate without user request (3.2.2): add an \"Apply\" button or confirm before submitting.",
238
+ "kbd_trap": "KEYBOARD TRAP: {n} controls caught in a cycle ({cycle}) and Escape does not release. Focus cannot leave (2.1.2).",
239
+ "kbd_trap_rem": "Every focus-containing component (modal, menu) must release with Escape (ideally click-outside too): close it and return focus to the trigger. Test it with the keyboard alone.",
240
+ "limits": "Rendered audit: honest heuristics, no substitute for a screen reader or manual review. Contrast computed over computed backgrounds; cases with background images are reported as \"review\". 2.5.8 allows exceptions (equivalent inline, spacing) approximated here.",
241
+ "reduced_motion_ignored": "{n} looping animations still run with prefers-reduced-motion set (before {n}, after {nr}): the user's preference is ignored (2.2.2).",
242
+ "reduced_motion_ignored_rem": "Wrap animations in @media (prefers-reduced-motion: reduce) { animation: none } — or pause via the Animation API. The user asked for less motion; honor it.",
243
+ "reflow_fail": "{n} elements overflow at {w}px width (horizontal scroll): {det}. With correct reflow there is no one-dimensional scroll at 320px (1.4.10).",
244
+ "reflow_fail_rem": "Use fluid layouts (flex/grid, max-width instead of fixed width) and media queries: content must reflow to 320px without horizontal scroll. Exceptions: data tables, maps, charts.",
245
+ "state_contrast": "{n} controls with insufficient :focus/:hover state contrast (<3:1): {det}. Review.",
246
+ "state_contrast_rem": "The control text needs contrast when focused or hovered too (1.4.3); DISABLED controls are exempt under WCAG. Adjust the :focus and :hover colors.",
247
+ "target_small": "{n} controls with a touch area smaller than 24×24 px (WCAG 2.2 2.5.8): {det}.",
248
+ "target_small_rem": "Give controls at least 24×24 CSS px (44×44 is better) via padding or min-width/min-height. Exceptions: equivalent inline links and sufficient surrounding spacing."
249
+ },
250
+ "evidence": {
251
+ "manual_remaining": "human review remaining after the machine, per class (MIN 1-3, MED 5-10, MAX 15-30 min per criterion)",
252
+ "no_signal": "no automated signal exists for this criterion in this toolkit",
253
+ "not_flagged": "not-flagged ≠ pass: no automated signal fired on this sample",
254
+ "notice": "This pack is evidence, not conformance: it says what machines found and what remains for a human. A conformance claim requires the signature block completed by a qualified person who reviewed the manual list.",
255
+ "reviewer_note": "any countersignature must reference pack.sha256 and state which criteria the human reviewed beyond the automated matrix",
256
+ "verified": "verified against this sample per the manual checklist protocol"
257
+ },
258
+ "fix": {
259
+ "between": "Enter a number between %a and %b.",
260
+ "email": "Enter an email like name@example.com.",
261
+ "num": "Enter a number.",
262
+ "pattern": "Follow the expected format: %p.",
263
+ "req": "Fill in this field.",
264
+ "short": "Use at least %n characters.",
265
+ "url": "Enter a URL like https://example.com."
266
+ },
267
+ "journey": {
268
+ "journey_dialog_trap": [
269
+ "2.1.2",
270
+ "high",
271
+ "A dialog traps the keyboard and Escape does not close it.",
272
+ "Close the dialog on Escape and return focus to the trigger."
273
+ ],
274
+ "journey_duplicate_targets": [
275
+ "4.1.2",
276
+ "medium",
277
+ "Several controls share one accessible name: “the Buy button” is ambiguous by name alone.",
278
+ "Differentiate accessible names with context (aria-label, visible text)."
279
+ ],
280
+ "journey_dynamic_stale": [
281
+ "4.1.3",
282
+ "medium",
283
+ "The tree changed after the action (content replaced) with no announcement — the agent’s map went stale.",
284
+ "Announce dynamic region updates (role=status/aria-live) and keep focus stable."
285
+ ],
286
+ "journey_error_silent": [
287
+ "3.3.1",
288
+ "high",
289
+ "Submission failed and the error is neither announced nor focused.",
290
+ "Associate the error message with the field (aria-describedby) and move focus to the first error."
291
+ ],
292
+ "journey_focus_lost": [
293
+ "2.4.3",
294
+ "high",
295
+ "After an action, focus disappeared or jumped somewhere unexpected.",
296
+ "Move focus programmatically to the logical destination after inserting or replacing content."
297
+ ],
298
+ "journey_generic_link": [
299
+ "2.4.4",
300
+ "low",
301
+ "The destination of a key link is not understandable from its text.",
302
+ "Descriptive link text in context (\"read more\" says nothing alone)."
303
+ ],
304
+ "journey_heading_nav_broken": [
305
+ "2.4.6",
306
+ "high",
307
+ "Headings are missing or break the hierarchy: navigating by headings — a screen-reader user’s primary strategy — cannot find the section the task needs.",
308
+ "Use real heading markup in logical order (h1→h2…); never fake headings with bold text."
309
+ ],
310
+ "journey_hidden_in_tree": [
311
+ "1.3.1",
312
+ "medium",
313
+ "Information essential to the task is missing from the accessibility tree.",
314
+ "Express the relationship with real semantics (list, heading, table), not layout."
315
+ ],
316
+ "journey_landmark_missing": [
317
+ "2.4.1",
318
+ "medium",
319
+ "The page exposes no landmarks (main/nav): landmark navigation cannot skip the boilerplate.",
320
+ "Wrap content in real main/navigation landmarks; the skip link is a bonus, not the fix."
321
+ ],
322
+ "journey_mode_confusion": [
323
+ "4.1.2",
324
+ "high",
325
+ "A custom widget swallows keystrokes or hides its role and state: browse-mode vs focus-mode switching breaks the interaction.",
326
+ "Use native elements (select, button) or the full ARIA pattern: role, state, keyboard support."
327
+ ],
328
+ "journey_no_instruction": [
329
+ "3.3.2",
330
+ "medium",
331
+ "The task required input whose format or requiredness was never stated.",
332
+ "Label the field with instructions and mark requiredness before the error does."
333
+ ],
334
+ "journey_reach_fail": [
335
+ "2.1.1",
336
+ "high",
337
+ "A control needed for the task is not reachable or operable by keyboard.",
338
+ "Make it focusable and keyboard-operable; pointer-only is never enough."
339
+ ],
340
+ "journey_status_silent": [
341
+ "4.1.3",
342
+ "medium",
343
+ "The action result (success or loading) is not announced via a live region.",
344
+ "Announce the status change with role=\"status\" or aria-live=\"polite\"."
345
+ ],
346
+ "journey_timeout_confusion": [
347
+ "2.2.1",
348
+ "medium",
349
+ "The task was lost to a time limit with no way to extend it.",
350
+ "Allow adjusting, extending or turning off the time limit."
351
+ ],
352
+ "journey_unnamed_control": [
353
+ "4.1.2",
354
+ "high",
355
+ "A control needed for the task is announced without a name (\"button\", bare).",
356
+ "Give the control an accessible name: visible text, aria-label or aria-labelledby."
357
+ ]
358
+ },
359
+ "pdf": {
360
+ "limits": "Zero-dep structural screening: full PDF/UA conformance needs a spec validator (veraPDF). This screening finds what makes full validation pointless.",
361
+ "pdf_button_no_name": "{n} buttons without accessible name (/TU): a screen-reader user reaches them as just \"button\".",
362
+ "pdf_button_no_name_rem": "Give every button its /TU (tooltip): in Acrobat, form field properties → General → Tooltip; in LibreOffice, the form control's name.",
363
+ "pdf_encrypted": "encrypted PDF: readers may extract nothing.",
364
+ "pdf_encrypted_rem": "Publish unencrypted (or with full extraction permissions).",
365
+ "pdf_fake_link": "{n} text fragments styled like links (bluish fill / underlined with a rectangle) with no /A << /S /URI >> annotation on the page: screen readers do NOT announce them as links (2.4.4).",
366
+ "pdf_fake_link_rem": "Use real link annotations (/Subtype /Link /A << /S /URI /URI (…) >>) over the link text.",
367
+ "pdf_form_no_label": "{n} of {m} form fields without accessible label (/TU): screen readers announce the technical name, or nothing.",
368
+ "pdf_form_no_label_rem": "Give every field its /TU (tooltip — what a screen reader announces): in Acrobat, form field properties → General → Tooltip; in LibreOffice, the form control's name.",
369
+ "pdf_low_contrast": "{n} text fragments with fill color near the background (ratio < 4.5): a PDF has no cascade — the current color is set by the `rg` operator before each Tj, and it is measurable. Examples: {example}.",
370
+ "pdf_low_contrast_rem": "Raise the text contrast: a PDF's default background is white if nothing is painted. Confirm the real background with veraPDF/acrobat.",
371
+ "pdf_no_alt": "tagged tree with images but 0 /Alt entries: figures are opaque (1.1.1).",
372
+ "pdf_no_alt_rem": "Add alternative text to figures on export/remediation.",
373
+ "pdf_no_lang": "no /Lang: readers do not know what language to pronounce (3.1.1 for documents).",
374
+ "pdf_no_lang_rem": "Set /Lang (e.g. \"en\" or \"es-ES\") in document properties.",
375
+ "pdf_no_outline": "no bookmarks/outline: a long PDF with no heading navigation (1.3.1).",
376
+ "pdf_no_outline_rem": "Generate bookmarks from headings on export.",
377
+ "pdf_no_title": "no /Title in metadata: readers announce the filename (2.4.2 for documents).",
378
+ "pdf_no_title_rem": "Export with a document title (file properties), not the filename.",
379
+ "pdf_scanned": "no text layer (0 characters in content): looks like a scan — fully invisible (1.1.1).",
380
+ "pdf_scanned_rem": "Apply OCR with real text and tag the result.",
381
+ "pdf_untagged": "no structure tree (/StructTreeRoot): reading order and semantic roles do not exist for the reader. THE root failure of inaccessible PDFs (1.3.1).",
382
+ "pdf_untagged_rem": "Tag the document (export as tagged PDF from authoring, or remediate in Acrobat): without a tree, everything else is cosmetic."
383
+ },
384
+ "scroll": {
385
+ "limits": "Infinite-scroll auditor: heuristics with real focus and a live-region observer over {n} batches. Not a substitute for screen-reader testing on the real feed.",
386
+ "scroll_focus": "The focused element {where} after loading a batch ({detail}). Documented infinite-scroll failure: keyboard users lose their reading point (2.4.3).",
387
+ "scroll_focus_rem": "Do not re-render the feed container: APPEND nodes at the end (appendChild/insertAdjacentHTML). If focus lands on removed content, move it to the new equivalent.",
388
+ "scroll_no_announce": "{n} batches loaded with zero announcements: no aria-live/status region receives text during loading and the container lacks role=\"feed\" (4.1.3).",
389
+ "scroll_no_announce_rem": "Add a role=\"status\" region with \"Loading more…\"/\"10 new items\" text and mark the container role=\"feed\" with aria-busy while loading.",
390
+ "scroll_no_end": "Infinite feed with no visible end after {n} batches and no \"load more\" button alternative: the footer stays unreachable (Deque guidance; akin to 2.2.2).",
391
+ "scroll_no_end_rem": "Offer a \"Load more\" button (the most accessible option: explicit loading, predictable focus), a real feed end, or a control to pause auto-loading.",
392
+ "scroll_no_feed": "The feed container does not use role=\"feed\" with role=\"article\" children (ARIA APG Feed pattern): screen readers cannot jump article by article.",
393
+ "scroll_no_feed_rem": "Mark the container role=\"feed\", each item role=\"article\" with aria-labelledby, and use aria-busy during loading."
394
+ },
395
+ "statement_states": {
396
+ "full": [
397
+ "Fully compliant",
398
+ "The website is <strong>fully compliant</strong> with <abbr title=\"Web Content Accessibility Guidelines\">WCAG</abbr> 2.2 level AA, as included in standard <abbr>EN&nbsp;301&nbsp;549</abbr>."
399
+ ],
400
+ "not_conformant": [
401
+ "Not compliant",
402
+ "The website <strong>is not compliant</strong> with <abbr title=\"Web Content Accessibility Guidelines\">WCAG</abbr> 2.2 level AA, as included in standard <abbr>EN&nbsp;301&nbsp;549</abbr>. The non-accessible content is listed below."
403
+ ],
404
+ "partial": [
405
+ "Partially compliant",
406
+ "The website is <strong>partially compliant</strong> with <abbr title=\"Web Content Accessibility Guidelines\">WCAG</abbr> 2.2 level AA, as included in standard <abbr>EN&nbsp;301&nbsp;549</abbr>, due to the non-accessible content listed below."
407
+ ]
408
+ },
409
+ "statement_txt": {
410
+ "complaints": {
411
+ "eaa": "Any accessibility issue may be reported through the contact point indicated. The service is ultimately subject to supervision under the terms of Directive (EU) 2019/882.",
412
+ "rd1112": "If the response is not satisfactory, an enforcement complaint may be lodged with the accessibility supervisory body of the relevant Member State (in Spain, the Accessibility Supervision Unit under Article 13 of Royal Decree 1112/2018)."
413
+ },
414
+ "contact": "Any communication about the accessibility of this website can be sent to {f}.",
415
+ "error_inconsistent": "with fully-compliant status, non-accessible content cannot be listed",
416
+ "error_status": "estado must be: 'plena', 'parcial' or 'no_conforme'",
417
+ "feedback_default": "the site contact form",
418
+ "h_alt_access": "Alternative access",
419
+ "h_contact": "Feedback and contact information",
420
+ "h_inaccessible": "Non-accessible content",
421
+ "h_preparation": "Preparation of this declaration",
422
+ "h_status": "Status",
423
+ "inaccessible_empty": "No non-accessible content is recorded in the latest assessment.",
424
+ "inaccessible_intro": "The content listed below is not accessible for one of the following reasons:",
425
+ "intro": {
426
+ "eaa": "Accessibility information for the service provided by {e} through {u}, in compliance with Directive (EU) 2019/882 (European Accessibility Act), applicable since 28 June 2025.",
427
+ "rd1112": "Accessibility declaration of {e} regarding {u}, in accordance with Directive (EU) 2016/2102 on the accessibility of the websites and mobile applications of public sector bodies and standard EN 301 549 (transposed in Spain by Royal Decree 1112/2018)."
428
+ },
429
+ "l_declared": "Declaration drawn up on",
430
+ "l_evaluation": "Date of latest assessment",
431
+ "l_method": "Assessment method",
432
+ "l_review": "Last revision of the declaration",
433
+ "method_default": "To be completed: state the actual assessment method (manual review, tools used and testing performed), with dates and a responsible party. This declaration remains an UNVALIDATED DRAFT until this field is filled.",
434
+ "standard_note": "EN 301 549 v4.1.1 (September 2026) adopts WCAG 2.2 as the benchmark for the web, documents and software, and adds a European Accessibility Act mapping. It is not yet cited in the Official Journal of the European Union: until that formal citation, presumption of conformity remains attached to the already cited version (v3.2.1, based on WCAG 2.1 AA).",
435
+ "title": {
436
+ "eaa": "Service accessibility information",
437
+ "rd1112": "Accessibility Declaration"
438
+ }
439
+ },
440
+ "openacr_txt": {
441
+ "chapter_note": "WCAG 2.2 success criteria; adherence derived from the evidence pack (its sha256 is referenced in every remark); single web component.",
442
+ "error_level": "unknown level in overrides: {n} (use supports, partially_supports, does_not_support, not_applicable, not_evaluated)",
443
+ "error_no_pack": "missing pack/reports: pass an a11y_evidence pack (or audit reports to build it here)",
444
+ "legal_disclaimer": "The information herein is provided in good faith based on the analysis at the time of the review and does not represent a legally-binding claim. Reported errors will be re-evaluated and corrected.",
445
+ "method_default": "Automated screening with the a11y-toolkit engine plus manual review where noted; automated testing covers only part of WCAG — the remarks cite the remaining human effort per criterion.",
446
+ "notes_draft": "DRAFT — adherence levels pending a qualified human; generated from a verifiable evidence pack."
447
+ },
448
+ "vpat_levels": {
449
+ "does_not_support": "Does Not Support",
450
+ "not_applicable": "Not Applicable",
451
+ "not_evaluated": "Not Evaluated",
452
+ "partially_supports": "Partially Supports",
453
+ "supports": "Supports"
454
+ },
455
+ "vpat_txt": {
456
+ "col_criteria": "Criteria",
457
+ "col_level": "Conformance level",
458
+ "col_remarks": "Remarks and explanations",
459
+ "contact": "Contact information",
460
+ "credential": "Credential",
461
+ "date": "Report date",
462
+ "description": "Product description",
463
+ "draft": "DRAFT — levels pending a qualified person",
464
+ "error_level": "unknown level in overrides: {n} (use supports, partially_supports, does_not_support, not_applicable, not_evaluated)",
465
+ "error_no_pack": "need a pack (a11y_evidence) or reports (audit report objects)",
466
+ "iti_note": "VPAT® is a registered trademark of the Information Technology Industry Council (ITI). This document is a vendor self-declaration scaffold generated by a11y-toolkit; it is not a certification.",
467
+ "legend": [
468
+ [
469
+ "Supports",
470
+ "The product has at least one method that meets the criterion without known defects."
471
+ ],
472
+ [
473
+ "Partially Supports",
474
+ "Some functionality of the product does not meet the criterion."
475
+ ],
476
+ [
477
+ "Does Not Support",
478
+ "The majority of product functionality does not meet the criterion."
479
+ ],
480
+ [
481
+ "Not Applicable",
482
+ "The criterion is not relevant to the product."
483
+ ],
484
+ [
485
+ "Not Evaluated",
486
+ "The product has not yet been evaluated against the criterion; the level is pending a qualified person."
487
+ ]
488
+ ],
489
+ "legend_title": "Conformance level definitions (excerpt from the VPAT®)",
490
+ "method_default": "Automated screening with a11y-toolkit (static audit and, when available, rendered audit with computed contrast and pixel sampling); manual review pending.",
491
+ "methods": "Evaluation methods used",
492
+ "notes": "Notes",
493
+ "product": "Product name",
494
+ "signature": "This document is a <strong>DRAFT</strong> generated by automated screening. Levels marked \"Not Evaluated\" must be set by a qualified person after review; the signature statement must reference the evidence pack hash:",
495
+ "signature_empty": "Empty signature block: name, credential and date pending.",
496
+ "signature_title": "Signature and evidence",
497
+ "standard": "<abbr title=\"Web Content Accessibility Guidelines\">WCAG</abbr> 2.2 (Levels A and AA) — W3C Recommendation, October 2023.",
498
+ "standards_section": "Applicable Standards/Guidelines",
499
+ "table_caption": "Table 1: WCAG 2.2 (A/AA) conformance criteria",
500
+ "title": "VPAT® 2.5 Accessibility Conformance Report — WCAG edition",
501
+ "version": "Version"
502
+ },
503
+ "vtt": {
504
+ "limits": "Screening of caption CONTENT (1.2.2): not a substitute for human review of accuracy, speaker identification or audio description.",
505
+ "vtt_coverage": "{pct}% coverage of the {dur}s of media — stretches without captions.",
506
+ "vtt_coverage_rem": "Caption the missing stretches (or mark them as music/foreign language when true).",
507
+ "vtt_empty_cue": "{n} cues with no text: time spent with no caption.",
508
+ "vtt_empty_cue_rem": "Remove empty cues or add their missing text.",
509
+ "vtt_malformed": "{n} blocks with malformed timing lines: {example}.",
510
+ "vtt_malformed_rem": "Fix the \"HH:MM:SS.mmm --> HH:MM:SS.mmm\" format; a broken cue can be skipped whole by the player.",
511
+ "vtt_no_cues": "the file declares WebVTT but contains no cues.",
512
+ "vtt_no_cues_rem": "Caption for real: an empty track does not satisfy 1.2.2.",
513
+ "vtt_overlap": "{n} timing overlaps between consecutive cues.",
514
+ "vtt_overlap_rem": "Cues must not overlap: some players show both at once.",
515
+ "vtt_too_fast": "{n} cues above 21 characters/second: {example}.",
516
+ "vtt_too_fast_rem": "Split the cue or extend its time: >21 cps is unreadable (BBC/Netflix standard)."
517
+ },
518
+ "wcag3": {
519
+ "disclaimer": "Preview based on the WCAG 3 Working Draft of 10 September 2026. WCAG 3 is not a completed standard, does not replace WCAG 2.2 and cannot ground any conformance claim. This preview only re-groups existing WCAG 2.2 findings under the draft's outcomes.",
520
+ "mapping_note": "The criterion-to-outcome mapping is curated by a11y-toolkit: the W3C has not published an official WCAG 2 to WCAG 3 mapping (transition materials are planned). Treat every grouping as an approximation.",
521
+ "model_tags": "Core requirement tags in the draft: physical harm, risk, barrier and friction (per the W3C introduction; they qualify requirements, not findings).",
522
+ "model_tiers": "Reporting tiers 1-6, where tier 3 corresponds to conformance. Counts and thresholds are still to be determined by the W3C.",
523
+ "no_score": "No score, tier or conformance level is produced on purpose: the draft's tier thresholds are still to be determined by the W3C."
524
+ }
525
+ }