Skip to content

Commit

Permalink
fix(rules): Change "alternate text" to "alternative text" (#4582)
Browse files Browse the repository at this point in the history
It should be alternative text, not alternate text. 

Closes:
  • Loading branch information
umut-gultekin authored and straker committed Oct 16, 2024
1 parent d462d67 commit 31e0f61
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 9 deletions.
4 changes: 2 additions & 2 deletions lib/rules/area-alt.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@
],
"actIds": ["c487ae"],
"metadata": {
"description": "Ensure <area> elements of image maps have alternate text",
"help": "Active <area> elements must have alternate text"
"description": "Ensure <area> elements of image maps have alternative text",
"help": "Active <area> elements must have alternative text"
},
"all": [],
"any": ["non-empty-alt", "aria-label", "aria-labelledby", "non-empty-title"],
Expand Down
4 changes: 2 additions & 2 deletions lib/rules/image-alt.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@
],
"actIds": ["23a2a8"],
"metadata": {
"description": "Ensure <img> elements have alternate text or a role of none or presentation",
"help": "Images must have alternate text"
"description": "Ensure <img> elements have alternative text or a role of none or presentation",
"help": "Images must have alternative text"
},
"all": [],
"any": [
Expand Down
4 changes: 2 additions & 2 deletions lib/rules/input-image-alt.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@
],
"actIds": ["59796f"],
"metadata": {
"description": "Ensure <input type=\"image\"> elements have alternate text",
"help": "Image buttons must have alternate text"
"description": "Ensure <input type=\"image\"> elements have alternative text",
"help": "Image buttons must have alternative text"
},
"all": [],
"any": ["non-empty-alt", "aria-label", "aria-labelledby", "non-empty-title"],
Expand Down
4 changes: 2 additions & 2 deletions lib/rules/object-alt.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@
],
"actIds": ["8fc3b6"],
"metadata": {
"description": "Ensure <object> elements have alternate text",
"help": "<object> elements must have alternate text"
"description": "Ensure <object> elements have alternative text",
"help": "<object> elements must have alternative text"
},
"all": [],
"any": [
Expand Down
2 changes: 1 addition & 1 deletion lib/rules/role-img-alt.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
],
"actIds": ["23a2a8"],
"metadata": {
"description": "Ensure [role=\"img\"] elements have alternate text",
"description": "Ensure [role=\"img\"] elements have alternative text",
"help": "[role=\"img\"] elements must have an alternative text"
},
"all": [],
Expand Down

0 comments on commit 31e0f61

Please sign in to comment.