Skip to content

Commit 237a586

Browse files
fix: fix grammar when using "alternative text" in a sentence (#4811)
<< Describe the changes >> Remove unnecessary articles Closes: #4394
1 parent 0c74d1d commit 237a586

File tree

4 files changed

+7
-7
lines changed

4 files changed

+7
-7
lines changed

doc/rule-descriptions.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@
7070
| [select-name](https://dequeuniversity.com/rules/axe/4.10/select-name?application=RuleDescription) | Ensure select element has an accessible name | Critical | cat.forms, wcag2a, wcag412, section508, section508.22.n, TTv5, TT5.c, EN-301-549, EN-9.4.1.2, ACT | failure, needs&nbsp;review | [e086e5](https://act-rules.github.io/rules/e086e5) |
7171
| [server-side-image-map](https://dequeuniversity.com/rules/axe/4.10/server-side-image-map?application=RuleDescription) | Ensure that server-side image maps are not used | Minor | cat.text-alternatives, wcag2a, wcag211, section508, section508.22.f, TTv5, TT4.a, EN-301-549, EN-9.2.1.1 | needs&nbsp;review | |
7272
| [summary-name](https://dequeuniversity.com/rules/axe/4.10/summary-name?application=RuleDescription) | Ensure summary elements have discernible text | Serious | cat.name-role-value, wcag2a, wcag412, section508, section508.22.a, TTv5, TT6.a, EN-301-549, EN-9.4.1.2 | failure, needs&nbsp;review | |
73-
| [svg-img-alt](https://dequeuniversity.com/rules/axe/4.10/svg-img-alt?application=RuleDescription) | Ensure &lt;svg&gt; elements with an img, graphics-document or graphics-symbol role have an accessible text | Serious | cat.text-alternatives, wcag2a, wcag111, section508, section508.22.a, TTv5, TT7.a, EN-301-549, EN-9.1.1.1, ACT | failure, needs&nbsp;review | [7d6734](https://act-rules.github.io/rules/7d6734) |
73+
| [svg-img-alt](https://dequeuniversity.com/rules/axe/4.10/svg-img-alt?application=RuleDescription) | Ensure &lt;svg&gt; elements with an img, graphics-document or graphics-symbol role have accessible text | Serious | cat.text-alternatives, wcag2a, wcag111, section508, section508.22.a, TTv5, TT7.a, EN-301-549, EN-9.1.1.1, ACT | failure, needs&nbsp;review | [7d6734](https://act-rules.github.io/rules/7d6734) |
7474
| [td-headers-attr](https://dequeuniversity.com/rules/axe/4.10/td-headers-attr?application=RuleDescription) | Ensure that each cell in a table that uses the headers attribute refers only to other &lt;th&gt; elements in that table | Serious | cat.tables, wcag2a, wcag131, section508, section508.22.g, TTv5, TT14.b, EN-301-549, EN-9.1.3.1 | failure, needs&nbsp;review | [a25f45](https://act-rules.github.io/rules/a25f45) |
7575
| [th-has-data-cells](https://dequeuniversity.com/rules/axe/4.10/th-has-data-cells?application=RuleDescription) | Ensure that &lt;th&gt; elements and elements with role=columnheader/rowheader have data cells they describe | Serious | cat.tables, wcag2a, wcag131, section508, section508.22.g, TTv5, TT14.b, EN-301-549, EN-9.1.3.1 | failure, needs&nbsp;review | [d0f69e](https://act-rules.github.io/rules/d0f69e) |
7676
| [valid-lang](https://dequeuniversity.com/rules/axe/4.10/valid-lang?application=RuleDescription) | Ensure lang attributes have valid values | Serious | cat.language, wcag2aa, wcag312, TTv5, TT11.b, EN-301-549, EN-9.3.1.2, ACT | failure | [de46e4](https://act-rules.github.io/rules/de46e4) |

lib/rules/role-img-alt.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
"actIds": ["23a2a8"],
1919
"metadata": {
2020
"description": "Ensure [role=\"img\"] elements have alternative text",
21-
"help": "[role=\"img\"] elements must have an alternative text"
21+
"help": "[role=\"img\"] elements must have alternative text"
2222
},
2323
"all": [],
2424
"any": ["aria-label", "aria-labelledby", "non-empty-title"],

lib/rules/svg-img-alt.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@
1717
],
1818
"actIds": ["7d6734"],
1919
"metadata": {
20-
"description": "Ensure <svg> elements with an img, graphics-document or graphics-symbol role have an accessible text",
21-
"help": "<svg> elements with an img role must have an alternative text"
20+
"description": "Ensure <svg> elements with an img, graphics-document or graphics-symbol role have accessible text",
21+
"help": "<svg> elements with an img role must have alternative text"
2222
},
2323
"all": [],
2424
"any": [

locales/_template.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -351,7 +351,7 @@
351351
},
352352
"role-img-alt": {
353353
"description": "Ensure [role=\"img\"] elements have alternative text",
354-
"help": "[role=\"img\"] elements must have an alternative text"
354+
"help": "[role=\"img\"] elements must have alternative text"
355355
},
356356
"scope-attr-valid": {
357357
"description": "Ensure the scope attribute is used correctly on tables",
@@ -378,8 +378,8 @@
378378
"help": "Summary elements must have discernible text"
379379
},
380380
"svg-img-alt": {
381-
"description": "Ensure <svg> elements with an img, graphics-document or graphics-symbol role have an accessible text",
382-
"help": "<svg> elements with an img role must have an alternative text"
381+
"description": "Ensure <svg> elements with an img, graphics-document or graphics-symbol role have accessible text",
382+
"help": "<svg> elements with an img role must have alternative text"
383383
},
384384
"tabindex": {
385385
"description": "Ensure tabindex attribute values are not greater than 0",

0 commit comments

Comments
 (0)