govuk_publishing_components 35.15.4 → 35.16.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (86) hide show
  1. checksums.yaml +4 -4
  2. data/app/assets/config/govuk_publishing_components_manifest.js +1 -0
  3. data/app/assets/images/option-select/input-icon.svg +3 -0
  4. data/app/assets/javascripts/govuk_publishing_components/analytics-ga4/ga4-page-views.js +19 -1
  5. data/app/assets/javascripts/govuk_publishing_components/analytics-ga4/pii-remover.js +1 -1
  6. data/app/assets/javascripts/govuk_publishing_components/components/option-select.js +312 -0
  7. data/app/assets/stylesheets/govuk_publishing_components/_all_components.scss +1 -0
  8. data/app/assets/stylesheets/govuk_publishing_components/components/_image-card.scss +26 -0
  9. data/app/assets/stylesheets/govuk_publishing_components/components/_option-select.scss +172 -0
  10. data/app/views/govuk_publishing_components/components/_image_card.html.erb +8 -2
  11. data/app/views/govuk_publishing_components/components/_layout_for_public.html.erb +1 -1
  12. data/app/views/govuk_publishing_components/components/_option_select.html.erb +71 -0
  13. data/app/views/govuk_publishing_components/components/docs/image_card.yml +13 -0
  14. data/app/views/govuk_publishing_components/components/docs/option_select.yml +343 -0
  15. data/config/locales/ar.yml +4 -0
  16. data/config/locales/az.yml +4 -0
  17. data/config/locales/be.yml +4 -0
  18. data/config/locales/bg.yml +4 -0
  19. data/config/locales/bn.yml +4 -0
  20. data/config/locales/cs.yml +4 -0
  21. data/config/locales/cy.yml +4 -0
  22. data/config/locales/da.yml +4 -0
  23. data/config/locales/de.yml +4 -0
  24. data/config/locales/dr.yml +4 -0
  25. data/config/locales/el.yml +4 -0
  26. data/config/locales/en.yml +4 -0
  27. data/config/locales/es-419.yml +4 -0
  28. data/config/locales/es.yml +4 -0
  29. data/config/locales/et.yml +4 -0
  30. data/config/locales/fa.yml +4 -0
  31. data/config/locales/fi.yml +4 -0
  32. data/config/locales/fr.yml +4 -0
  33. data/config/locales/gd.yml +4 -0
  34. data/config/locales/gu.yml +4 -0
  35. data/config/locales/he.yml +4 -0
  36. data/config/locales/hi.yml +4 -0
  37. data/config/locales/hr.yml +4 -0
  38. data/config/locales/hu.yml +4 -0
  39. data/config/locales/hy.yml +4 -0
  40. data/config/locales/id.yml +4 -0
  41. data/config/locales/is.yml +4 -0
  42. data/config/locales/it.yml +4 -0
  43. data/config/locales/ja.yml +4 -0
  44. data/config/locales/ka.yml +4 -0
  45. data/config/locales/kk.yml +4 -0
  46. data/config/locales/ko.yml +4 -0
  47. data/config/locales/lt.yml +4 -0
  48. data/config/locales/lv.yml +4 -0
  49. data/config/locales/ms.yml +4 -0
  50. data/config/locales/mt.yml +4 -0
  51. data/config/locales/nl.yml +4 -0
  52. data/config/locales/no.yml +4 -0
  53. data/config/locales/pa-pk.yml +4 -0
  54. data/config/locales/pa.yml +4 -0
  55. data/config/locales/pl.yml +4 -0
  56. data/config/locales/ps.yml +4 -0
  57. data/config/locales/pt.yml +4 -0
  58. data/config/locales/ro.yml +4 -0
  59. data/config/locales/ru.yml +4 -0
  60. data/config/locales/si.yml +4 -0
  61. data/config/locales/sk.yml +4 -0
  62. data/config/locales/sl.yml +4 -0
  63. data/config/locales/so.yml +4 -0
  64. data/config/locales/sq.yml +4 -0
  65. data/config/locales/sr.yml +4 -0
  66. data/config/locales/sv.yml +4 -0
  67. data/config/locales/sw.yml +4 -0
  68. data/config/locales/ta.yml +4 -0
  69. data/config/locales/th.yml +4 -0
  70. data/config/locales/tk.yml +4 -0
  71. data/config/locales/tr.yml +4 -0
  72. data/config/locales/uk.yml +4 -0
  73. data/config/locales/ur.yml +4 -0
  74. data/config/locales/uz.yml +4 -0
  75. data/config/locales/vi.yml +4 -0
  76. data/config/locales/zh-hk.yml +4 -0
  77. data/config/locales/zh-tw.yml +4 -0
  78. data/config/locales/zh.yml +4 -0
  79. data/lib/govuk_publishing_components/presenters/image_card_helper.rb +6 -2
  80. data/lib/govuk_publishing_components/version.rb +1 -1
  81. data/node_modules/axe-core/axe.js +6 -6
  82. data/node_modules/axe-core/axe.min.js +2 -2
  83. data/node_modules/axe-core/locales/_template.json +4 -4
  84. data/node_modules/axe-core/package.json +1 -1
  85. data/node_modules/axe-core/sri-history.json +4 -0
  86. metadata +7 -2
@@ -862,11 +862,11 @@
862
862
  "fail": "${data} on <meta> tag disables zooming on mobile devices"
863
863
  },
864
864
  "target-offset": {
865
- "pass": "Target has sufficient space from its closest neighbors (${data.closestOffset}px should be at least ${data.minOffset}px)",
866
- "fail": "Target has insufficient space to its closest neighbors. Safe clickable space has a diameter of {$data.closestOffset}px instead of at least ${data.minOffset}px)",
865
+ "pass": "Target has sufficient space from its closest neighbors. Safe clickable space has a diameter of ${data.closestOffset}px which is at least ${data.minOffset}px.",
866
+ "fail": "Target has insufficient space to its closest neighbors. Safe clickable space has a diameter of ${data.closestOffset}px instead of at least ${data.minOffset}px.",
867
867
  "incomplete": {
868
- "default": "Element with negative tabindex has insufficient space to its closest neighbors. Safe clickable space has a diameter of {$data.closestOffset}px instead of at least ${data.minOffset}px). Is this a target?",
869
- "nonTabbableNeighbor": "Target has insufficient space to its closest neighbors. Safe clickable space has a diameter of {$data.closestOffset}px instead of at least ${data.minOffset}px). Is the neighbor a target?"
868
+ "default": "Element with negative tabindex has insufficient space to its closest neighbors. Safe clickable space has a diameter of ${data.closestOffset}px instead of at least ${data.minOffset}px. Is this a target?",
869
+ "nonTabbableNeighbor": "Target has insufficient space to its closest neighbors. Safe clickable space has a diameter of ${data.closestOffset}px instead of at least ${data.minOffset}px. Is the neighbor a target?"
870
870
  }
871
871
  },
872
872
  "target-size": {
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "axe-core",
3
3
  "description": "Accessibility engine for automated Web UI testing",
4
- "version": "4.8.0",
4
+ "version": "4.8.1",
5
5
  "license": "MPL-2.0",
6
6
  "engines": {
7
7
  "node": ">=4"
@@ -354,5 +354,9 @@
354
354
  "4.8.0": {
355
355
  "axe.js": "sha256-Rd1U88z7mahhAvxYhchoCfwWxV8R/H+BcSoX6XTQ0gY=",
356
356
  "axe.min.js": "sha256-1oZiCfWnUt2rwqLWzpkoxlcEaOH53/QFYke0jo+KecA="
357
+ },
358
+ "4.8.1": {
359
+ "axe.js": "sha256-xAiDRfIT8BFIcORsehvJYCROe4K+U0Ak5MVJMaCvn9k=",
360
+ "axe.min.js": "sha256-EkEySwRAuCQljOYWJ29XQp4s80KPPlsmKwFtKFn6Vr0="
357
361
  }
358
362
  }
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.15.4
4
+ version: 35.16.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-09-19 00:00:00.000000000 Z
11
+ date: 2023-09-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: govuk_app_config
@@ -432,6 +432,7 @@ files:
432
432
  - app/assets/images/govuk_publishing_components/take-action-red.svg
433
433
  - app/assets/images/govuk_publishing_components/youtube-play-icon.png
434
434
  - app/assets/images/govuk_publishing_components/youtube-play-icon.svg
435
+ - app/assets/images/option-select/input-icon.svg
435
436
  - app/assets/javascripts/component_guide/accessibility-test.js
436
437
  - app/assets/javascripts/component_guide/application.js
437
438
  - app/assets/javascripts/component_guide/audit-filter.js
@@ -492,6 +493,7 @@ files:
492
493
  - app/assets/javascripts/govuk_publishing_components/components/layout-super-navigation-header.js
493
494
  - app/assets/javascripts/govuk_publishing_components/components/metadata.js
494
495
  - app/assets/javascripts/govuk_publishing_components/components/modal-dialogue.js
496
+ - app/assets/javascripts/govuk_publishing_components/components/option-select.js
495
497
  - app/assets/javascripts/govuk_publishing_components/components/print-link.js
496
498
  - app/assets/javascripts/govuk_publishing_components/components/radio.js
497
499
  - app/assets/javascripts/govuk_publishing_components/components/reorderable-list.js
@@ -577,6 +579,7 @@ files:
577
579
  - app/assets/stylesheets/govuk_publishing_components/components/_metadata.scss
578
580
  - app/assets/stylesheets/govuk_publishing_components/components/_modal-dialogue.scss
579
581
  - app/assets/stylesheets/govuk_publishing_components/components/_notice.scss
582
+ - app/assets/stylesheets/govuk_publishing_components/components/_option-select.scss
580
583
  - app/assets/stylesheets/govuk_publishing_components/components/_organisation-logo.scss
581
584
  - app/assets/stylesheets/govuk_publishing_components/components/_panel.scss
582
585
  - app/assets/stylesheets/govuk_publishing_components/components/_phase-banner.scss
@@ -715,6 +718,7 @@ files:
715
718
  - app/views/govuk_publishing_components/components/_metadata.html.erb
716
719
  - app/views/govuk_publishing_components/components/_modal_dialogue.html.erb
717
720
  - app/views/govuk_publishing_components/components/_notice.html.erb
721
+ - app/views/govuk_publishing_components/components/_option_select.html.erb
718
722
  - app/views/govuk_publishing_components/components/_organisation_logo.html.erb
719
723
  - app/views/govuk_publishing_components/components/_panel.html.erb
720
724
  - app/views/govuk_publishing_components/components/_phase_banner.html.erb
@@ -799,6 +803,7 @@ files:
799
803
  - app/views/govuk_publishing_components/components/docs/metadata.yml
800
804
  - app/views/govuk_publishing_components/components/docs/modal_dialogue.yml
801
805
  - app/views/govuk_publishing_components/components/docs/notice.yml
806
+ - app/views/govuk_publishing_components/components/docs/option_select.yml
802
807
  - app/views/govuk_publishing_components/components/docs/organisation_logo.yml
803
808
  - app/views/govuk_publishing_components/components/docs/panel.yml
804
809
  - app/views/govuk_publishing_components/components/docs/phase_banner.yml