govuk_publishing_components 35.3.5 → 35.5.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (33) hide show
  1. checksums.yaml +4 -4
  2. data/app/assets/javascripts/component_guide/audit-filter.js +81 -0
  3. data/app/assets/javascripts/govuk_publishing_components/analytics-ga4/ga4-form-tracker.js +1 -1
  4. data/app/assets/javascripts/govuk_publishing_components/analytics-ga4/ga4-link-tracker.js +7 -3
  5. data/app/assets/javascripts/govuk_publishing_components/analytics-ga4/ga4-specialist-link-tracker.js +8 -1
  6. data/app/assets/javascripts/govuk_publishing_components/components/step-by-step-nav.js +1 -1
  7. data/app/assets/javascripts/govuk_publishing_components/vendor/lux/lux-reporter.js +245 -176
  8. data/app/assets/stylesheets/component_guide/application.scss +16 -0
  9. data/app/assets/stylesheets/govuk_publishing_components/components/_layout-super-navigation-header.scss +0 -5
  10. data/app/assets/stylesheets/govuk_publishing_components/components/_search.scss +0 -12
  11. data/app/assets/stylesheets/govuk_publishing_components/components/govspeak/_attachment.scss +0 -11
  12. data/app/models/govuk_publishing_components/audit_applications.rb +14 -0
  13. data/app/models/govuk_publishing_components/audit_comparer.rb +14 -0
  14. data/app/models/govuk_publishing_components/audit_components.rb +34 -32
  15. data/app/views/govuk_publishing_components/audit/_applications.html.erb +40 -32
  16. data/app/views/govuk_publishing_components/audit/_component_contents.html.erb +56 -12
  17. data/app/views/govuk_publishing_components/audit/_components.html.erb +9 -7
  18. data/app/views/govuk_publishing_components/audit/show.html.erb +5 -1
  19. data/app/views/govuk_publishing_components/components/_hint.html.erb +5 -1
  20. data/app/views/govuk_publishing_components/components/_label.html.erb +6 -6
  21. data/app/views/govuk_publishing_components/components/_share_links.html.erb +2 -2
  22. data/app/views/govuk_publishing_components/components/_step_by_step_nav.html.erb +2 -1
  23. data/app/views/govuk_publishing_components/components/docs/hint.yml +1 -1
  24. data/lib/generators/govuk_publishing_components/component_generator.rb +2 -2
  25. data/lib/govuk_publishing_components/presenters/related_navigation_helper.rb +8 -8
  26. data/lib/govuk_publishing_components/version.rb +1 -1
  27. data/node_modules/axe-core/README.md +1 -3
  28. data/node_modules/axe-core/axe.js +4385 -1157
  29. data/node_modules/axe-core/axe.min.js +2 -2
  30. data/node_modules/axe-core/locales/_template.json +12 -0
  31. data/node_modules/axe-core/package.json +2 -1
  32. data/node_modules/axe-core/sri-history.json +4 -0
  33. metadata +3 -2
@@ -429,6 +429,14 @@
429
429
  "pass": "Element has an aria-busy attribute",
430
430
  "fail": "Element uses aria-busy=\"true\" while showing a loader"
431
431
  },
432
+ "aria-conditional-attr": {
433
+ "pass": "ARIA attribute is allowed",
434
+ "fail": {
435
+ "checkbox": "Remove aria-checked, or set it to \"${data.checkState}\" to match the real checkbox state",
436
+ "rowSingular": "This attribute is supported with treegrid rows, but not ${data.ownerRole}: ${data.invalidAttrs}",
437
+ "rowPlural": "These attributes are supported with treegrid rows, but not ${data.ownerRole}: ${data.invalidAttrs}"
438
+ }
439
+ },
432
440
  "aria-errormessage": {
433
441
  "pass": "aria-errormessage exists and references elements visible to screen readers that use a supported aria-errormessage technique",
434
442
  "fail": {
@@ -615,6 +623,10 @@
615
623
  },
616
624
  "link-in-text-block-style": {
617
625
  "pass": "Links can be distinguished from surrounding text by visual styling",
626
+ "incomplete": {
627
+ "default": "Check if the link needs styling to distinguish it from nearby text",
628
+ "pseudoContent": "Check if the link's pseudo style is sufficient to distinguish it from the surrounding text"
629
+ },
618
630
  "fail": "The link has no styling (such as underline) to distinguish it from the surrounding text"
619
631
  },
620
632
  "link-in-text-block": {
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "axe-core",
3
3
  "description": "Accessibility engine for automated Web UI testing",
4
- "version": "4.7.0",
4
+ "version": "4.7.1",
5
5
  "license": "MPL-2.0",
6
6
  "engines": {
7
7
  "node": ">=4"
@@ -122,6 +122,7 @@
122
122
  "chalk": "^4.x",
123
123
  "chromedriver": "latest",
124
124
  "clone": "^2.1.2",
125
+ "colorjs.io": "^0.4.3",
125
126
  "conventional-commits-parser": "^3.2.4",
126
127
  "core-js": "^3.27.1",
127
128
  "css-selector-parser": "^1.4.1",
@@ -342,5 +342,9 @@
342
342
  "4.7.0": {
343
343
  "axe.js": "sha256-JxLtVRh3EvdwPhr6ipXNnoN2ugUYvpwIAx4usr5jKcU=",
344
344
  "axe.min.js": "sha256-q5YvHv5paIlrWyys5xKDb79XtmXYpiAHFVZcg61Qick="
345
+ },
346
+ "4.7.1": {
347
+ "axe.js": "sha256-1ruJfhOP+fO+uuQiIs1U9P4ILYOxnFc5MCH7LzaH+Lc=",
348
+ "axe.min.js": "sha256-ReDVBpTYnDCOjYC3eTfhCwsWtAcleTtuoekVW8eoU38="
345
349
  }
346
350
  }
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: 35.3.5
4
+ version: 35.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: 2023-05-11 00:00:00.000000000 Z
11
+ date: 2023-05-31 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: govuk_app_config
@@ -434,6 +434,7 @@ files:
434
434
  - app/assets/images/govuk_publishing_components/youtube-play-icon.svg
435
435
  - app/assets/javascripts/component_guide/accessibility-test.js
436
436
  - app/assets/javascripts/component_guide/application.js
437
+ - app/assets/javascripts/component_guide/audit-filter.js
437
438
  - app/assets/javascripts/component_guide/filter-components.js
438
439
  - app/assets/javascripts/component_guide/vendor/bind-polyfill.js
439
440
  - app/assets/javascripts/component_guide/vendor/matches-polyfill.min.js