Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion lib/rules/aria-allowed-attr.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
"metadata": {
"description": "Ensure an element's role supports its ARIA attributes",
"help": "Elements must only use supported ARIA attributes",
"needsReviewConfidence": 50
"needsReviewConfidence": 49.99
},
"all": ["aria-allowed-attr"],
"any": [],
Expand Down
2 changes: 1 addition & 1 deletion lib/rules/aria-allowed-role.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"metadata": {
"description": "Ensure role attribute has an appropriate value for the element",
"help": "ARIA role should be appropriate for the element",
"needsReviewConfidence": 50
"needsReviewConfidence": 49.99
},
"all": [],
"any": ["aria-allowed-role"],
Expand Down
4 changes: 3 additions & 1 deletion lib/rules/aria-braille-equivalent.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,9 @@
"tags": ["cat.aria", "wcag2a", "wcag412", "EN-301-549", "EN-9.4.1.2"],
"metadata": {
"description": "Ensure aria-braillelabel and aria-brailleroledescription have a non-braille equivalent",
"help": "aria-braille attributes must have a non-braille equivalent"
"help": "aria-braille attributes must have a non-braille equivalent",
"violationConfidence": 99,
"needsReviewConfidence": 49.99
},
"all": ["braille-roledescription-equivalent", "braille-label-equivalent"],
"any": [],
Expand Down
2 changes: 1 addition & 1 deletion lib/rules/aria-hidden-focus.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
"metadata": {
"description": "Ensure aria-hidden elements are not focusable nor contain focusable elements",
"help": "ARIA hidden element must not be focusable or contain focusable elements",
"needsReviewConfidence": 50
"needsReviewConfidence": 49.99
},
"all": [
"focusable-modal-open",
Expand Down
2 changes: 1 addition & 1 deletion lib/rules/aria-input-field-name.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
"metadata": {
"description": "Ensure every ARIA input field has an accessible name",
"help": "ARIA input fields must have an accessible name",
"needsReviewConfidence": 50
"needsReviewConfidence": 49.99
},
"all": [],
"any": ["aria-label", "aria-labelledby", "non-empty-title"],
Expand Down
2 changes: 0 additions & 2 deletions lib/rules/aria-prohibited-attr.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,6 @@
"metadata": {
"description": "Ensure ARIA attributes are not prohibited for an element's role",
"help": "Elements must only use permitted ARIA attributes",
"violationConfidence": 90,
"needsReviewConfidence": 50,
"defaultCategory": "names-and-labels"
},
"all": [],
Expand Down
2 changes: 1 addition & 1 deletion lib/rules/aria-required-children.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
"metadata": {
"description": "Ensure elements with an ARIA role that require child roles contain them",
"help": "Certain ARIA roles must contain particular children",
"needsReviewConfidence": 50
"needsReviewConfidence": 49.99
},
"all": [],
"any": ["aria-required-children"],
Expand Down
4 changes: 3 additions & 1 deletion lib/rules/aria-roledescription.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,9 @@
"enabled": false,
"metadata": {
"description": "Ensure aria-roledescription is only used on elements with an implicit or explicit role",
"help": "aria-roledescription must be on elements with a semantic role"
"help": "aria-roledescription must be on elements with a semantic role",
"violationConfidence": 99,
"needsReviewConfidence": 49.99
},
"all": [],
"any": ["aria-roledescription"],
Expand Down
2 changes: 1 addition & 1 deletion lib/rules/aria-toggle-field-name.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
"metadata": {
"description": "Ensure every ARIA toggle field has an accessible name",
"help": "ARIA toggle fields must have an accessible name",
"needsReviewConfidence": 50
"needsReviewConfidence": 49.99
},
"all": [],
"any": [
Expand Down
2 changes: 1 addition & 1 deletion lib/rules/aria-valid-attr-value.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
"metadata": {
"description": "Ensure all ARIA attributes have valid values",
"help": "ARIA attributes must conform to valid values",
"needsReviewConfidence": 50
"needsReviewConfidence": 49.99
},
"all": ["aria-valid-attr-value", "aria-errormessage", "aria-level"],
"any": [],
Expand Down
4 changes: 3 additions & 1 deletion lib/rules/audio-caption.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,9 @@
"actIds": ["2eb176", "afb423"],
"metadata": {
"description": "Ensure <audio> elements have captions",
"help": "<audio> elements must have a captions track"
"help": "<audio> elements must have a captions track",
"violationConfidence": 99,
"needsReviewConfidence": 49.99
},
"all": [],
"any": [],
Expand Down
2 changes: 1 addition & 1 deletion lib/rules/button-name.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
"metadata": {
"description": "Ensure buttons have discernible text",
"help": "Buttons must have discernible text",
"needsReviewConfidence": 50
"needsReviewConfidence": 49.99
},
"all": [],
"any": [
Expand Down
2 changes: 1 addition & 1 deletion lib/rules/bypass.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
"metadata": {
"description": "Ensure each page has at least one mechanism for a user to bypass navigation and jump straight to the content",
"help": "Page must have means to bypass repeated blocks",
"needsReviewConfidence": 50
"needsReviewConfidence": 49.99
},
"all": [],
"any": ["internal-link-present", "header-present", "landmark"],
Expand Down
2 changes: 1 addition & 1 deletion lib/rules/color-contrast-enhanced.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"metadata": {
"description": "Ensure the contrast between foreground and background colors meets WCAG 2 AAA enhanced contrast ratio thresholds",
"help": "Elements must meet enhanced color contrast ratio thresholds",
"needsReviewConfidence": 50,
"needsReviewConfidence": 49.99,
"defaultCategory": "text-contrast-enhanced"
},
"all": [],
Expand Down
2 changes: 1 addition & 1 deletion lib/rules/color-contrast.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
"metadata": {
"description": "Ensure the contrast between foreground and background colors meets WCAG 2 AA minimum contrast ratio thresholds",
"help": "Elements must meet minimum color contrast ratio thresholds",
"needsReviewConfidence": 50,
"needsReviewConfidence": 49.99,
"defaultCategory": "text-contrast"
},
"all": [],
Expand Down
2 changes: 1 addition & 1 deletion lib/rules/css-orientation-lock.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
"description": "Ensure content is not locked to any specific display orientation, and the content is operable in all display orientations",
"help": "CSS Media queries must not lock display orientation",
"violationConfidence": 90,
"needsReviewConfidence": 50
"needsReviewConfidence": 49.99
},
"all": ["css-orientation-lock"],
"any": [],
Expand Down
4 changes: 3 additions & 1 deletion lib/rules/duplicate-id-active.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,9 @@
"actIds": ["3ea0c8"],
"metadata": {
"description": "Ensure every id attribute value of active elements is unique",
"help": "IDs of active elements must be unique"
"help": "IDs of active elements must be unique",
"violationConfidence": 99,
"needsReviewConfidence": 49.99
},
"all": [],
"any": ["duplicate-id-active"],
Expand Down
2 changes: 1 addition & 1 deletion lib/rules/duplicate-id-aria.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
"metadata": {
"description": "Ensure every id attribute value used in ARIA and in labels is unique",
"help": "IDs used in ARIA and labels must be unique",
"needsReviewConfidence": 50
"needsReviewConfidence": 49.99
},
"all": [],
"any": ["duplicate-id-aria"],
Expand Down
4 changes: 3 additions & 1 deletion lib/rules/duplicate-id.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,9 @@
"actIds": ["3ea0c8"],
"metadata": {
"description": "Ensure every id attribute value is unique",
"help": "id attribute value must be unique"
"help": "id attribute value must be unique",
"violationConfidence": 99,
"needsReviewConfidence": 49.99
},
"all": [],
"any": ["duplicate-id"],
Expand Down
4 changes: 3 additions & 1 deletion lib/rules/empty-table-header.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,9 @@
"tags": ["cat.name-role-value", "best-practice"],
"metadata": {
"description": "Ensure table headers have discernible text",
"help": "Table header text should not be empty"
"help": "Table header text should not be empty",
"violationConfidence": 99,
"needsReviewConfidence": 49.99
},
"all": [],
"any": ["has-visible-text"],
Expand Down
2 changes: 1 addition & 1 deletion lib/rules/form-field-multiple-labels.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
"metadata": {
"description": "Ensure form field does not have multiple label elements",
"help": "Form field must not have multiple label elements",
"needsReviewConfidence": 50
"needsReviewConfidence": 49.99
},
"all": [],
"any": [],
Expand Down
4 changes: 3 additions & 1 deletion lib/rules/frame-tested.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,9 @@
"tags": ["cat.structure", "best-practice", "review-item"],
"metadata": {
"description": "Ensure <iframe> and <frame> elements contain the axe-core script",
"help": "Frames should be tested with axe-core"
"help": "Frames should be tested with axe-core",
"violationConfidence": 99,
"needsReviewConfidence": 49.99
},
"all": ["frame-tested"],
"any": [],
Expand Down
2 changes: 1 addition & 1 deletion lib/rules/frame-title-unique.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
"metadata": {
"description": "Ensure <iframe> and <frame> elements contain a unique title attribute",
"help": "Frames must have a unique title attribute",
"needsReviewConfidence": 50
"needsReviewConfidence": 49.99
},
"all": [],
"any": [],
Expand Down
2 changes: 1 addition & 1 deletion lib/rules/heading-order-bp.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"metadata": {
"description": "Ensure the order of headings is semantically correct",
"help": "Heading levels should only increase by one",
"needsReviewConfidence": 50
"needsReviewConfidence": 49.99
},
"all": [],
"any": ["heading-order"],
Expand Down
2 changes: 1 addition & 1 deletion lib/rules/heading-order.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"metadata": {
"description": "Ensure the order of headings is semantically correct",
"help": "Heading levels must only increase by one",
"needsReviewConfidence": 50
"needsReviewConfidence": 49.99
},
"all": [],
"any": ["heading-order"],
Expand Down
2 changes: 1 addition & 1 deletion lib/rules/hidden-content.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
"metadata": {
"description": "Inform users about hidden content.",
"help": "Hidden content on the page should be analyzed",
"needsReviewConfidence": 50
"needsReviewConfidence": 49.99
},
"all": [],
"any": ["hidden-content"],
Expand Down
2 changes: 1 addition & 1 deletion lib/rules/identical-links-same-purpose.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"metadata": {
"description": "Ensure that links with the same accessible name serve a similar purpose",
"help": "Links with the same name must have a similar purpose",
"needsReviewConfidence": 50
"needsReviewConfidence": 49.99
},
"all": ["identical-links-same-purpose"],
"any": [],
Expand Down
2 changes: 1 addition & 1 deletion lib/rules/label-content-name-mismatch.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
"description": "Ensure that elements labelled through their content must have their visible text as part of their accessible name",
"help": "Elements must have their visible text as part of their accessible name",
"violationConfidence": 80,
"needsReviewConfidence": 50,
"needsReviewConfidence": 49.99,
"defaultCategory": "names-and-labels"
},
"all": [],
Expand Down
2 changes: 1 addition & 1 deletion lib/rules/link-in-text-block.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
"metadata": {
"description": "Ensure links are distinguished from surrounding text in a way that does not rely on color",
"help": "Links must be distinguishable without relying on color",
"needsReviewConfidence": 50,
"needsReviewConfidence": 49.99,
"defaultCategory": "links"
},
"any": ["link-in-text-block", "link-in-text-block-style"],
Expand Down
2 changes: 1 addition & 1 deletion lib/rules/nested-interactive.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
"metadata": {
"description": "Ensure interactive controls are not nested as they are not always announced by screen readers or can cause focus problems for assistive technologies",
"help": "Interactive controls must not be nested",
"needsReviewConfidence": 50
"needsReviewConfidence": 49.99
},
"all": [],
"any": ["no-focusable-content"],
Expand Down
3 changes: 2 additions & 1 deletion lib/rules/no-autoplay-audio.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,8 @@
"actIds": ["80f0bf"],
"metadata": {
"description": "Ensure <video> or <audio> elements do not autoplay audio for more than 3 seconds without a control mechanism to stop or mute the audio",
"help": "<video> or <audio> elements must not play automatically"
"help": "<video> or <audio> elements must not play automatically",
"needsReviewConfidence": 49.99
},
"preload": true,
"all": ["no-autoplay-audio"],
Expand Down
4 changes: 3 additions & 1 deletion lib/rules/p-as-heading.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,9 @@
],
"metadata": {
"description": "Ensure bold, italic text and font-size is not used to style <p> elements as a heading",
"help": "Styled <p> elements must not be used as headings"
"help": "Styled <p> elements must not be used as headings",
"violationConfidence": 85,
"needsReviewConfidence": 49.99
},
"all": ["p-as-heading"],
"any": [],
Expand Down
4 changes: 3 additions & 1 deletion lib/rules/server-side-image-map.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,9 @@
],
"metadata": {
"description": "Ensure that server-side image maps are not used",
"help": "Server-side image maps must not be used"
"help": "Server-side image maps must not be used",
"violationConfidence": 99,
"needsReviewConfidence": 49.99
},
"all": [],
"any": [],
Expand Down
3 changes: 2 additions & 1 deletion lib/rules/skip-link.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@
"tags": ["cat.keyboard", "best-practice", "RGAAv4", "RGAA-12.7.1"],
"metadata": {
"description": "Ensure all skip links have a focusable target",
"help": "The skip-link target should exist and be focusable"
"help": "The skip-link target should exist and be focusable",
"needsReviewConfidence": 49.99
},
"all": [],
"any": ["skip-link"],
Expand Down
3 changes: 2 additions & 1 deletion lib/rules/table-duplicate-name.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@
"tags": ["cat.tables", "best-practice", "RGAAv4", "RGAA-5.2.1"],
"metadata": {
"description": "Ensure the <caption> element does not contain the same text as the summary attribute",
"help": "Tables should not have the same summary and caption"
"help": "Tables should not have the same summary and caption",
"violationConfidence": 99
},
"all": [],
"any": [],
Expand Down
3 changes: 2 additions & 1 deletion lib/rules/table-fake-caption.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,8 @@
],
"metadata": {
"description": "Ensure that tables with a caption use the <caption> element.",
"help": "Data or header cells must not be used to give caption to a data table."
"help": "Data or header cells must not be used to give caption to a data table.",
"violationConfidence": 90
},
"all": ["caption-faked"],
"any": [],
Expand Down
2 changes: 1 addition & 1 deletion lib/rules/target-size.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"metadata": {
"description": "Ensure touch targets have sufficient size and space",
"help": "All touch targets must be 24px large, or leave sufficient space",
"needsReviewConfidence": 50
"needsReviewConfidence": 49.99
},
"all": [],
"any": ["target-size", "target-offset"],
Expand Down
3 changes: 2 additions & 1 deletion lib/rules/td-has-header.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,8 @@
],
"metadata": {
"description": "Ensure that each non-empty data cell in a <table> larger than 3 by 3 has one or more table headers",
"help": "Non-empty <td> elements in larger <table> must have an associated table header"
"help": "Non-empty <td> elements in larger <table> must have an associated table header",
"violationConfidence": 99
},
"all": ["td-has-header"],
"any": [],
Expand Down
2 changes: 1 addition & 1 deletion lib/rules/th-has-data-cells.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
"metadata": {
"description": "Ensure that <th> elements and elements with role=columnheader/rowheader have data cells they describe",
"help": "Table headers in a data table must refer to data cells",
"needsReviewConfidence": 50
"needsReviewConfidence": 49.99
},
"all": ["th-has-data-cells"],
"any": [],
Expand Down
2 changes: 1 addition & 1 deletion lib/rules/video-caption.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
"metadata": {
"description": "Ensure <video> elements have captions",
"help": "<video> elements must have captions",
"needsReviewConfidence": 50
"needsReviewConfidence": 49.99
},
"all": [],
"any": [],
Expand Down
Loading