govuk_publishing_components 35.3.4 → 35.4.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (36) 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-core.js +4 -0
  4. data/app/assets/javascripts/govuk_publishing_components/analytics-ga4/ga4-link-tracker.js +4 -3
  5. data/app/assets/javascripts/govuk_publishing_components/analytics-ga4/ga4-specialist-link-tracker.js +5 -1
  6. data/app/assets/javascripts/govuk_publishing_components/analytics-ga4/init-ga4.js +1 -1
  7. data/app/assets/javascripts/govuk_publishing_components/components/step-by-step-nav.js +1 -1
  8. data/app/assets/javascripts/govuk_publishing_components/vendor/lux/lux-reporter.js +245 -176
  9. data/app/assets/stylesheets/component_guide/application.scss +16 -0
  10. data/app/assets/stylesheets/govuk_publishing_components/components/_layout-super-navigation-header.scss +0 -5
  11. data/app/assets/stylesheets/govuk_publishing_components/components/_search.scss +0 -12
  12. data/app/assets/stylesheets/govuk_publishing_components/components/govspeak/_attachment.scss +0 -11
  13. data/app/assets/stylesheets/govuk_publishing_components/components/helpers/_brand-colours.scss +0 -24
  14. data/app/models/govuk_publishing_components/audit_applications.rb +14 -0
  15. data/app/models/govuk_publishing_components/audit_comparer.rb +14 -0
  16. data/app/models/govuk_publishing_components/audit_components.rb +34 -32
  17. data/app/views/govuk_publishing_components/audit/_applications.html.erb +40 -32
  18. data/app/views/govuk_publishing_components/audit/_component_contents.html.erb +56 -12
  19. data/app/views/govuk_publishing_components/audit/_components.html.erb +9 -7
  20. data/app/views/govuk_publishing_components/audit/show.html.erb +5 -1
  21. data/app/views/govuk_publishing_components/components/_hint.html.erb +5 -1
  22. data/app/views/govuk_publishing_components/components/_label.html.erb +6 -6
  23. data/app/views/govuk_publishing_components/components/_related_navigation.html.erb +3 -1
  24. data/app/views/govuk_publishing_components/components/docs/hint.yml +1 -1
  25. data/app/views/govuk_publishing_components/components/related_navigation/_section.html.erb +1 -1
  26. data/config/locales/en.yml +2 -2
  27. data/lib/generators/govuk_publishing_components/component_generator.rb +2 -2
  28. data/lib/govuk_publishing_components/presenters/related_navigation_helper.rb +8 -8
  29. data/lib/govuk_publishing_components/version.rb +1 -1
  30. data/node_modules/axe-core/README.md +1 -3
  31. data/node_modules/axe-core/axe.js +4385 -1157
  32. data/node_modules/axe-core/axe.min.js +2 -2
  33. data/node_modules/axe-core/locales/_template.json +12 -0
  34. data/node_modules/axe-core/package.json +2 -1
  35. data/node_modules/axe-core/sri-history.json +4 -0
  36. metadata +4 -3
@@ -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.4
4
+ version: 35.4.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-09 00:00:00.000000000 Z
11
+ date: 2023-05-18 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
@@ -1453,7 +1454,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
1453
1454
  - !ruby/object:Gem::Version
1454
1455
  version: '0'
1455
1456
  requirements: []
1456
- rubygems_version: 3.4.12
1457
+ rubygems_version: 3.4.13
1457
1458
  signing_key:
1458
1459
  specification_version: 4
1459
1460
  summary: A gem to document components in GOV.UK frontend applications