Skip to content

Commit

Permalink
feat(layout-table): deprecate layout-table rule and checks (#1885)
Browse files Browse the repository at this point in the history
  • Loading branch information
straker committed Nov 7, 2019
1 parent b04b594 commit d22cb30
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion doc/rule-descriptions.md
Expand Up @@ -57,7 +57,7 @@
| landmark-no-duplicate-contentinfo | Ensures the document has at most one contentinfo landmark | Moderate | cat.semantics, best-practice | true |
| landmark-one-main | Ensures the document has only one main landmark and each iframe in the page has at most one main landmark | Moderate | cat.semantics, best-practice | true |
| landmark-unique | Landmarks must have a unique role or role/label/title (i.e. accessible name) combination | Moderate | cat.semantics, best-practice | true |
| layout-table | Ensures presentational <table> elements do not use <th>, <caption> elements or the summary attribute | Serious | cat.semantics, wcag2a, wcag131 | true |
| layout-table | Ensures presentational <table> elements do not use <th>, <caption> elements or the summary attribute | Serious | cat.semantics, wcag2a, wcag131, deprecated | false |
| link-in-text-block | Links can be distinguished without relying on color | Serious | cat.color, experimental, wcag2a, wcag141 | true |
| link-name | Ensures links have discernible text | Serious | cat.name-role-value, wcag2a, wcag412, wcag244, section508, section508.22.a | true |
| list | Ensures that lists are structured correctly | Serious | cat.structure, wcag2a, wcag131 | true |
Expand Down
1 change: 1 addition & 0 deletions lib/checks/tables/has-caption.json
@@ -1,6 +1,7 @@
{
"id": "has-caption",
"evaluate": "has-caption.js",
"deprecated": true,
"metadata": {
"impact": "serious",
"messages": {
Expand Down
1 change: 1 addition & 0 deletions lib/checks/tables/has-summary.json
@@ -1,6 +1,7 @@
{
"id": "has-summary",
"evaluate": "has-summary.js",
"deprecated": true,
"metadata": {
"impact": "serious",
"messages": {
Expand Down
1 change: 1 addition & 0 deletions lib/checks/tables/has-th.json
@@ -1,6 +1,7 @@
{
"id": "has-th",
"evaluate": "has-th.js",
"deprecated": true,
"metadata": {
"impact": "serious",
"messages": {
Expand Down
3 changes: 2 additions & 1 deletion lib/rules/layout-table.json
Expand Up @@ -2,11 +2,12 @@
"id": "layout-table",
"selector": "table",
"matches": "layout-table-matches.js",
"tags": ["cat.semantics", "wcag2a", "wcag131"],
"tags": ["cat.semantics", "wcag2a", "wcag131", "deprecated"],
"metadata": {
"description": "Ensures presentational <table> elements do not use <th>, <caption> elements or the summary attribute",
"help": "Layout tables must not use data table elements"
},
"enabled": false,
"all": [],
"any": [],
"none": ["has-th", "has-caption", "has-summary"]
Expand Down

0 comments on commit d22cb30

Please sign in to comment.