@wordpress/a11y 3.9.0 → 3.12.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +6 -0
- package/package.json +4 -4
- package/src/test/index.test.js +4 -5
package/CHANGELOG.md
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wordpress/a11y",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.12.0",
|
|
4
4
|
"description": "Accessibility (a11y) utilities for WordPress.",
|
|
5
5
|
"author": "The WordPress Contributors",
|
|
6
6
|
"license": "GPL-2.0-or-later",
|
|
@@ -29,11 +29,11 @@
|
|
|
29
29
|
"types": "build-types",
|
|
30
30
|
"dependencies": {
|
|
31
31
|
"@babel/runtime": "^7.16.0",
|
|
32
|
-
"@wordpress/dom-ready": "^3.
|
|
33
|
-
"@wordpress/i18n": "^4.
|
|
32
|
+
"@wordpress/dom-ready": "^3.12.0",
|
|
33
|
+
"@wordpress/i18n": "^4.12.0"
|
|
34
34
|
},
|
|
35
35
|
"publishConfig": {
|
|
36
36
|
"access": "public"
|
|
37
37
|
},
|
|
38
|
-
"gitHead": "
|
|
38
|
+
"gitHead": "a80eeb62ec7cb1418b9915c277e084a29d6665e3"
|
|
39
39
|
}
|
package/src/test/index.test.js
CHANGED
|
@@ -112,12 +112,11 @@ describe( 'speak', () => {
|
|
|
112
112
|
|
|
113
113
|
describe( 'setup when the elements already exist', () => {
|
|
114
114
|
it( 'should not create the aria live regions again', () => {
|
|
115
|
-
const before =
|
|
116
|
-
'a11y-speak-region'
|
|
117
|
-
).length;
|
|
115
|
+
const before =
|
|
116
|
+
document.getElementsByClassName( 'a11y-speak-region' ).length;
|
|
118
117
|
setup();
|
|
119
|
-
const after =
|
|
120
|
-
.length;
|
|
118
|
+
const after =
|
|
119
|
+
document.getElementsByClassName( 'a11y-speak-region' ).length;
|
|
121
120
|
|
|
122
121
|
expect( before ).toBe( after );
|
|
123
122
|
} );
|