Skip to content

Commit 3b3bec4

Browse files
mgiffordtunetheweb
andauthored
Update a11y.js updates (#178)
* Update a11y.js updates The A11y community suggested a few other commonly used classes. * Update dist/a11y.js --------- Co-authored-by: Barry Pollard <barry_pollard@hotmail.com> Co-authored-by: Barry Pollard <barrypollard@google.com>
1 parent ce1f9ab commit 3b3bec4

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

dist/a11y.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -215,7 +215,7 @@ return JSON.stringify({
215215
};
216216
}),
217217
screen_reader_classes: captureAndLogError(() => {
218-
return document.querySelectorAll('.sr-only', '.visually-hidden', '.screen-reader-text', '.element-invisible').length > 0;
218+
return document.querySelectorAll('.sr-only', '.visually-hidden', '.screen-reader-text', '.element-invisible', '.visuallyhidden', '.skip-link', '.scrn-rdr', '.usa-skipnav', '.usa-sr-only', '.a11y-hide').length > 0;
219219
}),
220220
form_control_a11y_tree: captureAndLogError(() => {
221221
const attributes_to_track_regex = /^(aria-.+|type|id|name|placeholder|accept|autocomplete|autofocus|capture|max|maxlength|min|minlength|required|readonly|pattern|multiple|step)$/i;

0 commit comments

Comments
 (0)