From 6847b13e4e77db952736c0c05e85a0a9f5d03d3d Mon Sep 17 00:00:00 2001 From: Mike Gifford Date: Sun, 25 Aug 2024 15:57:55 -0400 Subject: [PATCH 1/2] 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. --- dist/a11y.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dist/a11y.js b/dist/a11y.js index c195052a..300427bd 100644 --- a/dist/a11y.js +++ b/dist/a11y.js @@ -215,7 +215,7 @@ return JSON.stringify({ }; }), screen_reader_classes: captureAndLogError(() => { - return document.querySelectorAll('.sr-only, .visually-hidden').length > 0; + return document.querySelectorAll('.sr-only, .visually-hidden', '.screen-reader-text', 'element-invisible').length > 0; }), form_control_a11y_tree: captureAndLogError(() => { const attributes_to_track_regex = /^(aria-.+|type|id|name|placeholder|accept|autocomplete|autofocus|capture|max|maxlength|min|minlength|required|readonly|pattern|multiple|step)$/i; From bcfcccd867264b2cee5940eb978dee2d7f211dcb Mon Sep 17 00:00:00 2001 From: Barry Pollard Date: Fri, 1 Nov 2024 13:26:16 +0000 Subject: [PATCH 2/2] Update dist/a11y.js --- dist/a11y.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dist/a11y.js b/dist/a11y.js index 300427bd..d488ca4b 100644 --- a/dist/a11y.js +++ b/dist/a11y.js @@ -215,7 +215,7 @@ return JSON.stringify({ }; }), screen_reader_classes: captureAndLogError(() => { - return document.querySelectorAll('.sr-only, .visually-hidden', '.screen-reader-text', 'element-invisible').length > 0; + return document.querySelectorAll('.sr-only, .visually-hidden', '.screen-reader-text', '.element-invisible').length > 0; }), form_control_a11y_tree: captureAndLogError(() => { const attributes_to_track_regex = /^(aria-.+|type|id|name|placeholder|accept|autocomplete|autofocus|capture|max|maxlength|min|minlength|required|readonly|pattern|multiple|step)$/i;