govuk_publishing_components 44.4.1 → 44.5.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/assets/javascripts/govuk_publishing_components/analytics-ga4/ga4-core.js +1 -1
- data/app/assets/javascripts/govuk_publishing_components/components/govspeak.js +1 -1
- data/app/assets/stylesheets/govuk_publishing_components/components/_chart.scss +25 -2
- data/app/assets/stylesheets/govuk_publishing_components/components/_govspeak-html-publication.scss +2 -2
- data/app/assets/stylesheets/govuk_publishing_components/components/_govspeak.scss +1 -1
- data/app/assets/stylesheets/govuk_publishing_components/components/govspeak/_attachment.scss +1 -1
- data/app/assets/stylesheets/govuk_publishing_components/components/govspeak/_tables.scss +3 -3
- data/app/assets/stylesheets/govuk_publishing_components/components/govspeak/_typography.scss +3 -3
- data/app/models/govuk_publishing_components/component_wrapper_helper_options.rb +1 -0
- data/app/views/govuk_publishing_components/components/_chart.html.erb +95 -66
- data/app/views/govuk_publishing_components/components/_emergency_banner.html.erb +17 -17
- data/app/views/govuk_publishing_components/components/_error_alert.html.erb +8 -1
- data/app/views/govuk_publishing_components/components/_govspeak.html.erb +11 -11
- data/app/views/govuk_publishing_components/components/docs/chart.yml +92 -2
- data/app/views/govuk_publishing_components/components/docs/emergency_banner.yml +1 -0
- data/app/views/govuk_publishing_components/components/docs/error_alert.yml +1 -0
- data/app/views/govuk_publishing_components/components/docs/govspeak.yml +1 -0
- data/lib/govuk_publishing_components/presenters/component_wrapper_helper.rb +17 -0
- data/lib/govuk_publishing_components/version.rb +1 -1
- data/node_modules/axe-core/README.md +3 -3
- data/node_modules/axe-core/axe.d.ts +5 -1
- data/node_modules/axe-core/axe.js +317 -299
- data/node_modules/axe-core/axe.min.js +2 -2
- data/node_modules/axe-core/locales/README.md +3 -3
- data/node_modules/axe-core/locales/_template.json +14 -14
- data/node_modules/axe-core/package.json +2 -1
- data/node_modules/axe-core/sri-history.json +4 -0
- metadata +2 -2
@@ -2,8 +2,8 @@
|
|
2
2
|
|
3
3
|
We welcome any localization for axe-core. For details on how to contribute, see the [Contributing section](../README.md#contributing) of the main README. For details on the message syntax, see [Check Message Template](../doc/check-message-template.md).
|
4
4
|
|
5
|
-
To create a new translation for axe, start by running `grunt translate --lang=<langcode>`. This will create a
|
5
|
+
To create a new translation for axe, start by running `grunt translate --lang=<langcode>`. This will create a JSON file with the default English text in it for you to translate. Alternatively, you could copy `_template.json`.
|
6
6
|
|
7
|
-
To update an existing translation file, re-run `grunt translate --lang=<langcode>`. This will add new messages used in English and remove messages
|
7
|
+
To update an existing translation file, re-run `grunt translate --lang=<langcode>`. This will add new messages used in English and remove messages that are no longer used in English.
|
8
8
|
|
9
|
-
`_template.json` is a generated file which is created every time axe is built. It's compiled using each
|
9
|
+
`_template.json` is a generated file which is created every time axe is built. It's compiled using each rule's `description` and `help` properties, as well as each check's `metadata.messages` property. To update the `_template.json` file you'll need to update the corresponding [rule](../lib/rules) or [check](../lib/checks) metadata file and rebuild.
|
@@ -6,8 +6,8 @@
|
|
6
6
|
"help": "accesskey attribute value should be unique"
|
7
7
|
},
|
8
8
|
"area-alt": {
|
9
|
-
"description": "Ensure <area> elements of image maps have
|
10
|
-
"help": "Active <area> elements must have
|
9
|
+
"description": "Ensure <area> elements of image maps have alternative text",
|
10
|
+
"help": "Active <area> elements must have alternative text"
|
11
11
|
},
|
12
12
|
"aria-allowed-attr": {
|
13
13
|
"description": "Ensure an element's role supports its ARIA attributes",
|
@@ -222,8 +222,8 @@
|
|
222
222
|
"help": "Links with the same name must have a similar purpose"
|
223
223
|
},
|
224
224
|
"image-alt": {
|
225
|
-
"description": "Ensure <img> elements have
|
226
|
-
"help": "Images must have
|
225
|
+
"description": "Ensure <img> elements have alternative text or a role of none or presentation",
|
226
|
+
"help": "Images must have alternative text"
|
227
227
|
},
|
228
228
|
"image-redundant-alt": {
|
229
229
|
"description": "Ensure image alternative is not repeated as text",
|
@@ -234,8 +234,8 @@
|
|
234
234
|
"help": "Input buttons must have discernible text"
|
235
235
|
},
|
236
236
|
"input-image-alt": {
|
237
|
-
"description": "Ensure <input type=\"image\"> elements have
|
238
|
-
"help": "Image buttons must have
|
237
|
+
"description": "Ensure <input type=\"image\"> elements have alternative text",
|
238
|
+
"help": "Image buttons must have alternative text"
|
239
239
|
},
|
240
240
|
"label-content-name-mismatch": {
|
241
241
|
"description": "Ensure that elements labelled through their content must have their visible text as part of their accessible name",
|
@@ -330,8 +330,8 @@
|
|
330
330
|
"help": "<video> or <audio> elements must not play automatically"
|
331
331
|
},
|
332
332
|
"object-alt": {
|
333
|
-
"description": "Ensure <object> elements have
|
334
|
-
"help": "<object> elements must have
|
333
|
+
"description": "Ensure <object> elements have alternative text",
|
334
|
+
"help": "<object> elements must have alternative text"
|
335
335
|
},
|
336
336
|
"p-as-heading": {
|
337
337
|
"description": "Ensure bold, italic text and font-size is not used to style <p> elements as a heading",
|
@@ -350,7 +350,7 @@
|
|
350
350
|
"help": "All page content should be contained by landmarks"
|
351
351
|
},
|
352
352
|
"role-img-alt": {
|
353
|
-
"description": "Ensure [role=\"img\"] elements have
|
353
|
+
"description": "Ensure [role=\"img\"] elements have alternative text",
|
354
354
|
"help": "[role=\"img\"] elements must have an alternative text"
|
355
355
|
},
|
356
356
|
"scope-attr-valid": {
|
@@ -771,8 +771,8 @@
|
|
771
771
|
"fail": "Element contains <img> element with alt text that duplicates existing text"
|
772
772
|
},
|
773
773
|
"explicit-label": {
|
774
|
-
"pass": "
|
775
|
-
"fail": "
|
774
|
+
"pass": "Element has an explicit <label>",
|
775
|
+
"fail": "Element does not have an explicit <label>",
|
776
776
|
"incomplete": "Unable to determine if form element has an explicit <label>"
|
777
777
|
},
|
778
778
|
"help-same-as-label": {
|
@@ -785,9 +785,9 @@
|
|
785
785
|
"incomplete": "Unable to determine if form element has explicit <label> that is hidden"
|
786
786
|
},
|
787
787
|
"implicit-label": {
|
788
|
-
"pass": "
|
789
|
-
"fail": "
|
790
|
-
"incomplete": "Unable to determine if form element has an implicit (wrapped
|
788
|
+
"pass": "Element has an implicit (wrapped) <label>",
|
789
|
+
"fail": "Element does not have an implicit (wrapped) <label>",
|
790
|
+
"incomplete": "Unable to determine if form element has an implicit (wrapped) <label>"
|
791
791
|
},
|
792
792
|
"label-content-name-mismatch": {
|
793
793
|
"pass": "Element contains visible text as part of it's accessible name",
|
@@ -1,7 +1,7 @@
|
|
1
1
|
{
|
2
2
|
"name": "axe-core",
|
3
3
|
"description": "Accessibility engine for automated Web UI testing",
|
4
|
-
"version": "4.10.
|
4
|
+
"version": "4.10.1",
|
5
5
|
"license": "MPL-2.0",
|
6
6
|
"engines": {
|
7
7
|
"node": ">=4"
|
@@ -112,6 +112,7 @@
|
|
112
112
|
"sri-update": "grunt build && node build/sri-update && git add sri-history.json",
|
113
113
|
"sri-validate": "node build/sri-update --validate",
|
114
114
|
"fmt": "prettier --write .",
|
115
|
+
"fmt:check": "prettier --check .",
|
115
116
|
"prepare": "husky && npm run patch",
|
116
117
|
"prebuild": "node ./build/check-node-version.js",
|
117
118
|
"pretest": "node ./build/check-node-version.js",
|
@@ -382,5 +382,9 @@
|
|
382
382
|
"4.10.0": {
|
383
383
|
"axe.js": "sha256-n/KN+TQhojZXnh49uUEY3/Df5WszWcCEothu0P58qDY=",
|
384
384
|
"axe.min.js": "sha256-SDpP7Usv5Wz9lKWFZQIMhjmD+EFeKCfzSB3ONecO/7U="
|
385
|
+
},
|
386
|
+
"4.10.1": {
|
387
|
+
"axe.js": "sha256-KQDnBck/AyiC+OE3x0AJ/EQYykYTnH+1z7punr4Xc0c=",
|
388
|
+
"axe.min.js": "sha256-OBXf33U9n+qCj0mI9MLkiVyC1nCzabDnmopjyuv1gZ4="
|
385
389
|
}
|
386
390
|
}
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: govuk_publishing_components
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 44.
|
4
|
+
version: 44.5.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- GOV.UK Dev
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-10-
|
11
|
+
date: 2024-10-22 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: chartkick
|