govuk_publishing_components 24.19.0 → 25.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (109) hide show
  1. checksums.yaml +4 -4
  2. data/app/assets/javascripts/govuk_publishing_components/analytics.js +2 -0
  3. data/app/assets/javascripts/govuk_publishing_components/analytics/scroll-tracker.js +59 -91
  4. data/app/assets/javascripts/govuk_publishing_components/{lib → analytics}/track-click.js +0 -0
  5. data/app/assets/javascripts/govuk_publishing_components/{lib/select.js → analytics/track-select-change.js} +0 -0
  6. data/app/assets/javascripts/govuk_publishing_components/components/intervention.js +16 -0
  7. data/app/assets/javascripts/govuk_publishing_components/components/layout-super-navigation-header.js +71 -0
  8. data/app/assets/javascripts/govuk_publishing_components/lib/trigger-event.js +13 -2
  9. data/app/assets/stylesheets/govuk_publishing_components/_all_components.scss +1 -0
  10. data/app/assets/stylesheets/govuk_publishing_components/_all_components_print.scss +1 -0
  11. data/app/assets/stylesheets/govuk_publishing_components/component_support.scss +0 -1
  12. data/app/assets/stylesheets/govuk_publishing_components/components/_document-list.scss +7 -9
  13. data/app/assets/stylesheets/govuk_publishing_components/components/_intervention.scss +12 -10
  14. data/app/assets/stylesheets/govuk_publishing_components/components/_layout-super-navigation-header.scss +125 -0
  15. data/app/assets/stylesheets/govuk_publishing_components/components/govspeak/_typography.scss +9 -0
  16. data/app/assets/stylesheets/govuk_publishing_components/components/print/_layout-super-navigation-header.scss +3 -0
  17. data/app/views/govuk_publishing_components/components/_document_list.html.erb +3 -3
  18. data/app/views/govuk_publishing_components/components/_govspeak.html.erb +2 -0
  19. data/app/views/govuk_publishing_components/components/_intervention.html.erb +26 -8
  20. data/app/views/govuk_publishing_components/components/_layout_for_public.html.erb +19 -13
  21. data/app/views/govuk_publishing_components/components/_layout_super_navigation_header.html.erb +121 -0
  22. data/app/views/govuk_publishing_components/components/_radio.html.erb +2 -3
  23. data/app/views/govuk_publishing_components/components/_title.html.erb +1 -4
  24. data/app/views/govuk_publishing_components/components/docs/govspeak.yml +9 -0
  25. data/app/views/govuk_publishing_components/components/docs/layout_for_public.yml +4 -0
  26. data/app/views/govuk_publishing_components/components/docs/layout_super_navigation_header.yml +22 -0
  27. data/app/views/govuk_publishing_components/components/docs/radio.yml +4 -15
  28. data/app/views/govuk_publishing_components/components/docs/title.yml +0 -12
  29. data/config/initializers/assets.rb +0 -1
  30. data/config/locales/ar.yml +8 -0
  31. data/config/locales/az.yml +8 -0
  32. data/config/locales/be.yml +8 -0
  33. data/config/locales/bg.yml +8 -0
  34. data/config/locales/bn.yml +8 -0
  35. data/config/locales/cs.yml +8 -0
  36. data/config/locales/cy.yml +8 -0
  37. data/config/locales/da.yml +8 -0
  38. data/config/locales/de.yml +8 -0
  39. data/config/locales/dr.yml +8 -0
  40. data/config/locales/el.yml +8 -0
  41. data/config/locales/en.yml +87 -1
  42. data/config/locales/es-419.yml +8 -0
  43. data/config/locales/es.yml +8 -0
  44. data/config/locales/et.yml +8 -0
  45. data/config/locales/fa.yml +8 -0
  46. data/config/locales/fi.yml +8 -0
  47. data/config/locales/fr.yml +8 -0
  48. data/config/locales/gd.yml +8 -0
  49. data/config/locales/gu.yml +8 -0
  50. data/config/locales/he.yml +8 -0
  51. data/config/locales/hi.yml +8 -0
  52. data/config/locales/hr.yml +8 -0
  53. data/config/locales/hu.yml +8 -0
  54. data/config/locales/hy.yml +8 -0
  55. data/config/locales/id.yml +8 -0
  56. data/config/locales/is.yml +8 -0
  57. data/config/locales/it.yml +8 -0
  58. data/config/locales/ja.yml +8 -0
  59. data/config/locales/ka.yml +8 -0
  60. data/config/locales/kk.yml +8 -0
  61. data/config/locales/ko.yml +8 -0
  62. data/config/locales/lt.yml +8 -0
  63. data/config/locales/lv.yml +8 -0
  64. data/config/locales/ms.yml +8 -0
  65. data/config/locales/mt.yml +8 -0
  66. data/config/locales/nl.yml +8 -0
  67. data/config/locales/no.yml +8 -0
  68. data/config/locales/pa-pk.yml +8 -0
  69. data/config/locales/pa.yml +8 -0
  70. data/config/locales/pl.yml +8 -0
  71. data/config/locales/ps.yml +8 -0
  72. data/config/locales/pt.yml +8 -0
  73. data/config/locales/ro.yml +8 -0
  74. data/config/locales/ru.yml +8 -0
  75. data/config/locales/si.yml +8 -0
  76. data/config/locales/sk.yml +8 -0
  77. data/config/locales/sl.yml +8 -0
  78. data/config/locales/so.yml +8 -0
  79. data/config/locales/sq.yml +8 -0
  80. data/config/locales/sr.yml +8 -0
  81. data/config/locales/sv.yml +8 -0
  82. data/config/locales/sw.yml +8 -0
  83. data/config/locales/ta.yml +8 -0
  84. data/config/locales/th.yml +8 -0
  85. data/config/locales/tk.yml +8 -0
  86. data/config/locales/tr.yml +8 -0
  87. data/config/locales/uk.yml +8 -0
  88. data/config/locales/ur.yml +8 -0
  89. data/config/locales/uz.yml +8 -0
  90. data/config/locales/vi.yml +8 -0
  91. data/config/locales/zh-hk.yml +8 -0
  92. data/config/locales/zh-tw.yml +8 -0
  93. data/config/locales/zh.yml +8 -0
  94. data/lib/govuk_publishing_components/presenters/content_breadcrumbs_based_on_priority.rb +32 -11
  95. data/lib/govuk_publishing_components/presenters/meta_tags.rb +11 -4
  96. data/lib/govuk_publishing_components/version.rb +1 -1
  97. metadata +10 -16
  98. data/app/assets/stylesheets/govuk_publishing_components/components/helpers/_px-to-em.scss +0 -12
  99. data/app/assets/stylesheets/govuk_publishing_components/components/print/_attachment.scss +0 -2
  100. data/app/assets/stylesheets/govuk_publishing_components/components/print/_back-link.scss +0 -2
  101. data/app/assets/stylesheets/govuk_publishing_components/components/print/_feedback.scss +0 -2
  102. data/app/assets/stylesheets/govuk_publishing_components/components/print/_layout-footer.scss +0 -2
  103. data/app/assets/stylesheets/govuk_publishing_components/components/print/_layout-header.scss +0 -2
  104. data/app/assets/stylesheets/govuk_publishing_components/components/print/_metadata.scss +0 -2
  105. data/app/assets/stylesheets/govuk_publishing_components/components/print/_search.scss +0 -2
  106. data/app/assets/stylesheets/govuk_publishing_components/components/print/_share-links.scss +0 -2
  107. data/app/assets/stylesheets/govuk_publishing_components/components/print/_skip-link.scss +0 -2
  108. data/app/assets/stylesheets/govuk_publishing_components/components/print/_subscription-links.scss +0 -2
  109. data/app/assets/stylesheets/govuk_publishing_components/components/print/_translation-nav.scss +0 -2
@@ -5,7 +5,6 @@ Rails.application.config.assets.precompile += %w[
5
5
  component_guide/accessibility-test.js
6
6
  component_guide/application.js
7
7
  component_guide/filter-components.js
8
- component_guide/visual-regression.js
9
8
  component_guide/print.css
10
9
  govuk_publishing_components/rum-loader.js
11
10
  govuk_publishing_components/vendor/lux/lux-reporter.js
@@ -79,6 +79,14 @@ ar:
79
79
  search_button:
80
80
  show_button:
81
81
  top_level:
82
+ layout_super_navigation_header:
83
+ logo_link_title:
84
+ logo_text:
85
+ navigation_menu_heading:
86
+ search_text:
87
+ popular_links_heading:
88
+ popular_links:
89
+ navigation_links:
82
90
  metadata:
83
91
  from:
84
92
  history:
@@ -79,6 +79,14 @@ az:
79
79
  search_button:
80
80
  show_button:
81
81
  top_level:
82
+ layout_super_navigation_header:
83
+ logo_link_title:
84
+ logo_text:
85
+ navigation_menu_heading:
86
+ search_text:
87
+ popular_links_heading:
88
+ popular_links:
89
+ navigation_links:
82
90
  metadata:
83
91
  from:
84
92
  history:
@@ -79,6 +79,14 @@ be:
79
79
  search_button:
80
80
  show_button:
81
81
  top_level:
82
+ layout_super_navigation_header:
83
+ logo_link_title:
84
+ logo_text:
85
+ navigation_menu_heading:
86
+ search_text:
87
+ popular_links_heading:
88
+ popular_links:
89
+ navigation_links:
82
90
  metadata:
83
91
  from:
84
92
  history:
@@ -79,6 +79,14 @@ bg:
79
79
  search_button:
80
80
  show_button:
81
81
  top_level:
82
+ layout_super_navigation_header:
83
+ logo_link_title:
84
+ logo_text:
85
+ navigation_menu_heading:
86
+ search_text:
87
+ popular_links_heading:
88
+ popular_links:
89
+ navigation_links:
82
90
  metadata:
83
91
  from:
84
92
  history:
@@ -79,6 +79,14 @@ bn:
79
79
  search_button:
80
80
  show_button:
81
81
  top_level:
82
+ layout_super_navigation_header:
83
+ logo_link_title:
84
+ logo_text:
85
+ navigation_menu_heading:
86
+ search_text:
87
+ popular_links_heading:
88
+ popular_links:
89
+ navigation_links:
82
90
  metadata:
83
91
  from:
84
92
  history:
@@ -79,6 +79,14 @@ cs:
79
79
  search_button:
80
80
  show_button:
81
81
  top_level:
82
+ layout_super_navigation_header:
83
+ logo_link_title:
84
+ logo_text:
85
+ navigation_menu_heading:
86
+ search_text:
87
+ popular_links_heading:
88
+ popular_links:
89
+ navigation_links:
82
90
  metadata:
83
91
  from:
84
92
  history:
@@ -79,6 +79,14 @@ cy:
79
79
  search_button:
80
80
  show_button:
81
81
  top_level:
82
+ layout_super_navigation_header:
83
+ logo_link_title:
84
+ logo_text:
85
+ navigation_menu_heading:
86
+ search_text:
87
+ popular_links_heading:
88
+ popular_links:
89
+ navigation_links:
82
90
  metadata:
83
91
  from:
84
92
  history:
@@ -79,6 +79,14 @@ da:
79
79
  search_button:
80
80
  show_button:
81
81
  top_level:
82
+ layout_super_navigation_header:
83
+ logo_link_title:
84
+ logo_text:
85
+ navigation_menu_heading:
86
+ search_text:
87
+ popular_links_heading:
88
+ popular_links:
89
+ navigation_links:
82
90
  metadata:
83
91
  from:
84
92
  history:
@@ -79,6 +79,14 @@ de:
79
79
  search_button:
80
80
  show_button:
81
81
  top_level:
82
+ layout_super_navigation_header:
83
+ logo_link_title:
84
+ logo_text:
85
+ navigation_menu_heading:
86
+ search_text:
87
+ popular_links_heading:
88
+ popular_links:
89
+ navigation_links:
82
90
  metadata:
83
91
  from:
84
92
  history:
@@ -79,6 +79,14 @@ dr:
79
79
  search_button:
80
80
  show_button:
81
81
  top_level:
82
+ layout_super_navigation_header:
83
+ logo_link_title:
84
+ logo_text:
85
+ navigation_menu_heading:
86
+ search_text:
87
+ popular_links_heading:
88
+ popular_links:
89
+ navigation_links:
82
90
  metadata:
83
91
  from:
84
92
  history:
@@ -79,6 +79,14 @@ el:
79
79
  search_button:
80
80
  show_button:
81
81
  top_level:
82
+ layout_super_navigation_header:
83
+ logo_link_title:
84
+ logo_text:
85
+ navigation_menu_heading:
86
+ search_text:
87
+ popular_links_heading:
88
+ popular_links:
89
+ navigation_links:
82
90
  metadata:
83
91
  from:
84
92
  history:
@@ -75,7 +75,8 @@ en:
75
75
  intervention:
76
76
  title: Check the next steps for your limited company
77
77
  description: You might be interested in this because you’ve been browsing guidance relevant to starting a limited company.
78
- dismiss_html: <a class="govuk-link" href="?hide-intervention=true">Hide this suggestion</a> if it’s not relevant to you
78
+ dismiss_link_text: Hide this suggestion
79
+ dismiss_post_link: if it’s not relevant to you
79
80
  layout_footer:
80
81
  copyright_html: <a class="govuk-footer__link govuk-footer__copyright-logo" href="http://www.nationalarchives.gov.uk/information-management/re-using-public-sector-information/copyright-and-re-use/crown-copyright/">© Crown copyright</a>
81
82
  licence_html: All content is available under the <a class="govuk-footer__link" href="https://www.nationalarchives.gov.uk/doc/open-government-licence/version/3/" rel="license">Open Government Licence v3.0</a>, except where otherwise stated
@@ -86,6 +87,91 @@ en:
86
87
  search_button: Search GOV.UK
87
88
  show_button: Show search
88
89
  top_level: Top level
90
+ layout_super_navigation_header:
91
+ logo_link_title: Go to the GOV.UK homepage
92
+ logo_text: GOV.UK
93
+ navigation_menu_heading: Navigation menu
94
+ search_text: Search GOV.UK
95
+ popular_links_heading: Popular on GOV.UK
96
+ popular_links:
97
+ - label: 'Coronavirus (COVID-19): rules'
98
+ href: /guidance/covid-19-coronavirus-restrictions-what-you-can-and-cannot-do
99
+ - label: 'Brexit: check what you need to do'
100
+ href: /brexit
101
+ - label: Sign in to your personal tax account
102
+ href: /personal-tax-account
103
+ - label: Find a job
104
+ href: /find-a-job
105
+ - label: Sign in to your Universal Credit account
106
+ href: /sign-in-universal-credit
107
+ navigation_links:
108
+ - label: Topics
109
+ href: /browse
110
+ description: Find information and services
111
+ show: true
112
+ menu_contents:
113
+ - label: Benefits
114
+ href: /browse/benefits
115
+ - label: Births, death, marriages and care
116
+ href: /browse/births-deaths-marriages
117
+ - label: Brexit
118
+ href: /brexit
119
+ - label: Business and self-employed
120
+ href: /browse/business
121
+ - label: Childcare and parenting
122
+ href: /browse/childcare-parenting
123
+ - label: Citizenship and living in the UK
124
+ href: /browse/citizenship
125
+ - label: Coronavirus (COVID‑19)
126
+ href: /coronavirus
127
+ - label: Crime, justice and the law
128
+ href: /browse/justice
129
+ - label: Disabled people
130
+ href: /browse/disabilities
131
+ - label: Driving and transport
132
+ href: /browse/driving
133
+ - label: Education and learning
134
+ href: /browse/education
135
+ - label: Employing people
136
+ href: /browse/employing-people
137
+ - label: Environment and countryside
138
+ href: /browse/environment-countryside
139
+ - label: Housing and local services
140
+ href: /browse/housing-local-services
141
+ - label: Money and tax
142
+ href: /browse/tax
143
+ - label: Passports, travel and living abroad
144
+ href: /browse/abroad
145
+ - label: Visas and immigration
146
+ href: /browse/visas-immigration
147
+ - label: Working, jobs and pensions
148
+ href: /browse/working
149
+ - label: Departments
150
+ href: /government/organisations
151
+ - label: Government activity
152
+ href: /search/news-and-communications
153
+ description: Find out what the government is doing
154
+ menu_contents:
155
+ - label: News
156
+ href: /search/news-and-communications
157
+ description: News stories, speeches, letters and notices
158
+ - label: Guidance and regulation
159
+ href: /search/guidance-and-regulation
160
+ description: Detailed guidance, regulations and rules
161
+ - label: Research and statistics
162
+ href: /search/research-and-statistics
163
+ description: Reports, analysis and official statistics
164
+ - label: Policy papers and consultation
165
+ href: /search/policy-papers-and-consultations
166
+ description: Consultations and strategy
167
+ - label: Transparency
168
+ href: /search/transparency-and-freedom-of-information-releases
169
+ description: Government data, freedom of information releases and corporate reports
170
+ footer_links:
171
+ - label: How government works
172
+ href: /government/how-government-works
173
+ - label: Get involved
174
+ href: /government/get-involved
89
175
  metadata:
90
176
  from: From
91
177
  history: History
@@ -79,6 +79,14 @@ es-419:
79
79
  search_button:
80
80
  show_button:
81
81
  top_level:
82
+ layout_super_navigation_header:
83
+ logo_link_title:
84
+ logo_text:
85
+ navigation_menu_heading:
86
+ search_text:
87
+ popular_links_heading:
88
+ popular_links:
89
+ navigation_links:
82
90
  metadata:
83
91
  from:
84
92
  history:
@@ -79,6 +79,14 @@ es:
79
79
  search_button:
80
80
  show_button:
81
81
  top_level:
82
+ layout_super_navigation_header:
83
+ logo_link_title:
84
+ logo_text:
85
+ navigation_menu_heading:
86
+ search_text:
87
+ popular_links_heading:
88
+ popular_links:
89
+ navigation_links:
82
90
  metadata:
83
91
  from:
84
92
  history:
@@ -79,6 +79,14 @@ et:
79
79
  search_button:
80
80
  show_button:
81
81
  top_level:
82
+ layout_super_navigation_header:
83
+ logo_link_title:
84
+ logo_text:
85
+ navigation_menu_heading:
86
+ search_text:
87
+ popular_links_heading:
88
+ popular_links:
89
+ navigation_links:
82
90
  metadata:
83
91
  from:
84
92
  history:
@@ -79,6 +79,14 @@ fa:
79
79
  search_button:
80
80
  show_button:
81
81
  top_level:
82
+ layout_super_navigation_header:
83
+ logo_link_title:
84
+ logo_text:
85
+ navigation_menu_heading:
86
+ search_text:
87
+ popular_links_heading:
88
+ popular_links:
89
+ navigation_links:
82
90
  metadata:
83
91
  from:
84
92
  history:
@@ -79,6 +79,14 @@ fi:
79
79
  search_button:
80
80
  show_button:
81
81
  top_level:
82
+ layout_super_navigation_header:
83
+ logo_link_title:
84
+ logo_text:
85
+ navigation_menu_heading:
86
+ search_text:
87
+ popular_links_heading:
88
+ popular_links:
89
+ navigation_links:
82
90
  metadata:
83
91
  from:
84
92
  history:
@@ -79,6 +79,14 @@ fr:
79
79
  search_button:
80
80
  show_button:
81
81
  top_level:
82
+ layout_super_navigation_header:
83
+ logo_link_title:
84
+ logo_text:
85
+ navigation_menu_heading:
86
+ search_text:
87
+ popular_links_heading:
88
+ popular_links:
89
+ navigation_links:
82
90
  metadata:
83
91
  from:
84
92
  history:
@@ -79,6 +79,14 @@ gd:
79
79
  search_button:
80
80
  show_button:
81
81
  top_level:
82
+ layout_super_navigation_header:
83
+ logo_link_title:
84
+ logo_text:
85
+ navigation_menu_heading:
86
+ search_text:
87
+ popular_links_heading:
88
+ popular_links:
89
+ navigation_links:
82
90
  metadata:
83
91
  from:
84
92
  history:
@@ -79,6 +79,14 @@ gu:
79
79
  search_button:
80
80
  show_button:
81
81
  top_level:
82
+ layout_super_navigation_header:
83
+ logo_link_title:
84
+ logo_text:
85
+ navigation_menu_heading:
86
+ search_text:
87
+ popular_links_heading:
88
+ popular_links:
89
+ navigation_links:
82
90
  metadata:
83
91
  from:
84
92
  history:
@@ -79,6 +79,14 @@ he:
79
79
  search_button:
80
80
  show_button:
81
81
  top_level:
82
+ layout_super_navigation_header:
83
+ logo_link_title:
84
+ logo_text:
85
+ navigation_menu_heading:
86
+ search_text:
87
+ popular_links_heading:
88
+ popular_links:
89
+ navigation_links:
82
90
  metadata:
83
91
  from:
84
92
  history:
@@ -79,6 +79,14 @@ hi:
79
79
  search_button:
80
80
  show_button:
81
81
  top_level:
82
+ layout_super_navigation_header:
83
+ logo_link_title:
84
+ logo_text:
85
+ navigation_menu_heading:
86
+ search_text:
87
+ popular_links_heading:
88
+ popular_links:
89
+ navigation_links:
82
90
  metadata:
83
91
  from:
84
92
  history: