You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- New input: `ignoreElements`. Used to indicate to the test runner elements which should be ignored during a11y testing.
14
+
### Changed
15
+
- Lowers minimum required version of Node from `12.13.0` to `12.0.0`.
16
+
- Internal: Uses a local server powered by the Node `http` module to host files prior to testing. This local server makes tests more accurate and more secure!
Copy file name to clipboardExpand all lines: README.md
+9-6
Original file line number
Diff line number
Diff line change
@@ -92,12 +92,13 @@ If you want to use the plugin's default settings (check **all** pages of your si
92
92
If you've installed the plugin via `netlify.toml`, you can add a `[[plugins.inputs]]` field to change how the plugin behaves. This table outlines the inputs the plugin accepts. All of them are optional.
93
93
94
94
95
-
| Input name | Description | Value type | Possible values | Default value |
|`checkPaths`| Indicates which pages of your site to check | Array of strings | Any directories or HTML files in your project |`['/']`|
98
+
|`failWithIssues`| Whether the build should fail if a11y issues are found | Boolean |`true` or `false`|`true`|
99
+
|`ignoreDirectories`| Directories that *should not* be checked for a11y issues | Array of strings | Any directories in your project |`[]`|
100
+
|`ignoreElements`| Indicates elements that should be ignored by a11y testing | String (CSS selector) | Comma-separated string of CSS selectors |`undefined`|
101
+
|`wcagLevel`| The WCAG standard level against which pages are checked | String |`'WCAG2A'` or `'WCAGA2A'` or `'WCAG2AAA'`|`'WCAG2AA'`|
101
102
102
103
Here's how these inputs can be used in `netlify.toml`, with comments to explain how each input affects the plugin's behavior:
103
104
@@ -111,6 +112,8 @@ Here's how these inputs can be used in `netlify.toml`, with comments to explain
111
112
failWithIssues = false
112
113
# Ignore all HTML files in `/admin`
113
114
ignoreDirectories = ['/admin']
115
+
# Ignore any accessibility issues associated with an element matching this selector
0 commit comments