Skip to content

Commit 929e2d3

Browse files
mgiffordtunetheweb
andauthored
Update a11y.js for 2025 (#141)
* Update a11y.js for 2025 This will expand it to include Drupal 7 and a little CMS called WordPress that might have a bit of traction. * Update dist/a11y.js --------- Co-authored-by: Barry Pollard <[email protected]> Co-authored-by: Barry Pollard <[email protected]>
1 parent b19bc14 commit 929e2d3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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').length > 0;
218+
return document.querySelectorAll('.sr-only, .visually-hidden', '.screen-reader-text', '.element-invisible').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)