govuk_publishing_components 24.21.1 → 25.2.1

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/{lib → analytics}/track-click.js +0 -0
  4. data/app/assets/javascripts/govuk_publishing_components/{lib/select.js → analytics/track-select-change.js} +0 -0
  5. data/app/assets/javascripts/govuk_publishing_components/components/intervention.js +16 -0
  6. data/app/assets/javascripts/govuk_publishing_components/components/layout-super-navigation-header.js +234 -40
  7. data/app/assets/javascripts/govuk_publishing_components/lib/govspeak/youtube-link-enhancement.js +6 -0
  8. data/app/assets/javascripts/govuk_publishing_components/lib/header-navigation.js +34 -5
  9. data/app/assets/javascripts/govuk_publishing_components/modules.js +11 -17
  10. data/app/assets/stylesheets/govuk_publishing_components/component_support.scss +0 -1
  11. data/app/assets/stylesheets/govuk_publishing_components/components/_intervention.scss +12 -10
  12. data/app/assets/stylesheets/govuk_publishing_components/components/_layout-super-navigation-header.scss +606 -41
  13. data/app/assets/stylesheets/govuk_publishing_components/components/_notice.scss +2 -17
  14. data/app/assets/stylesheets/govuk_publishing_components/components/govspeak/_charts.scss +5 -0
  15. data/app/views/govuk_publishing_components/components/_fieldset.html.erb +1 -1
  16. data/app/views/govuk_publishing_components/components/_input.html.erb +1 -1
  17. data/app/views/govuk_publishing_components/components/_intervention.html.erb +26 -8
  18. data/app/views/govuk_publishing_components/components/_label.html.erb +6 -4
  19. data/app/views/govuk_publishing_components/components/_layout_for_public.html.erb +1 -1
  20. data/app/views/govuk_publishing_components/components/_layout_super_navigation_header.html.erb +265 -63
  21. data/app/views/govuk_publishing_components/components/_notice.html.erb +19 -13
  22. data/app/views/govuk_publishing_components/components/_radio.html.erb +5 -6
  23. data/app/views/govuk_publishing_components/components/_search.html.erb +11 -3
  24. data/app/views/govuk_publishing_components/components/_select.html.erb +3 -1
  25. data/app/views/govuk_publishing_components/components/_summary_list.html.erb +1 -1
  26. data/app/views/govuk_publishing_components/components/_title.html.erb +14 -7
  27. data/app/views/govuk_publishing_components/components/docs/notice.yml +15 -0
  28. data/app/views/govuk_publishing_components/components/docs/radio.yml +4 -15
  29. data/app/views/govuk_publishing_components/components/docs/search.yml +5 -0
  30. data/app/views/govuk_publishing_components/components/docs/title.yml +7 -12
  31. data/config/locales/ar.yml +5 -3
  32. data/config/locales/az.yml +5 -3
  33. data/config/locales/be.yml +5 -3
  34. data/config/locales/bg.yml +5 -3
  35. data/config/locales/bn.yml +5 -3
  36. data/config/locales/cs.yml +5 -3
  37. data/config/locales/cy.yml +8 -6
  38. data/config/locales/da.yml +5 -3
  39. data/config/locales/de.yml +5 -3
  40. data/config/locales/dr.yml +5 -3
  41. data/config/locales/el.yml +5 -3
  42. data/config/locales/en.yml +91 -84
  43. data/config/locales/es-419.yml +5 -3
  44. data/config/locales/es.yml +5 -3
  45. data/config/locales/et.yml +5 -3
  46. data/config/locales/fa.yml +5 -3
  47. data/config/locales/fi.yml +5 -3
  48. data/config/locales/fr.yml +5 -3
  49. data/config/locales/gd.yml +5 -3
  50. data/config/locales/gu.yml +5 -3
  51. data/config/locales/he.yml +5 -3
  52. data/config/locales/hi.yml +5 -3
  53. data/config/locales/hr.yml +5 -3
  54. data/config/locales/hu.yml +5 -3
  55. data/config/locales/hy.yml +5 -3
  56. data/config/locales/id.yml +5 -3
  57. data/config/locales/is.yml +5 -3
  58. data/config/locales/it.yml +5 -3
  59. data/config/locales/ja.yml +5 -3
  60. data/config/locales/ka.yml +5 -3
  61. data/config/locales/kk.yml +5 -3
  62. data/config/locales/ko.yml +5 -3
  63. data/config/locales/lt.yml +5 -3
  64. data/config/locales/lv.yml +5 -3
  65. data/config/locales/ms.yml +5 -3
  66. data/config/locales/mt.yml +5 -3
  67. data/config/locales/nl.yml +5 -3
  68. data/config/locales/no.yml +5 -3
  69. data/config/locales/pa-pk.yml +5 -3
  70. data/config/locales/pa.yml +5 -3
  71. data/config/locales/pl.yml +5 -3
  72. data/config/locales/ps.yml +5 -3
  73. data/config/locales/pt.yml +5 -3
  74. data/config/locales/ro.yml +5 -3
  75. data/config/locales/ru.yml +5 -3
  76. data/config/locales/si.yml +5 -3
  77. data/config/locales/sk.yml +5 -3
  78. data/config/locales/sl.yml +5 -3
  79. data/config/locales/so.yml +5 -3
  80. data/config/locales/sq.yml +5 -3
  81. data/config/locales/sr.yml +5 -3
  82. data/config/locales/sv.yml +5 -3
  83. data/config/locales/sw.yml +5 -3
  84. data/config/locales/ta.yml +5 -3
  85. data/config/locales/th.yml +5 -3
  86. data/config/locales/tk.yml +5 -3
  87. data/config/locales/tr.yml +5 -3
  88. data/config/locales/uk.yml +5 -3
  89. data/config/locales/ur.yml +5 -3
  90. data/config/locales/uz.yml +5 -3
  91. data/config/locales/vi.yml +5 -3
  92. data/config/locales/zh-hk.yml +5 -3
  93. data/config/locales/zh-tw.yml +5 -3
  94. data/config/locales/zh.yml +5 -3
  95. data/lib/govuk_publishing_components/presenters/shared_helper.rb +5 -1
  96. data/lib/govuk_publishing_components/version.rb +1 -1
  97. metadata +5 -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
@@ -82,11 +82,13 @@ de:
82
82
  layout_super_navigation_header:
83
83
  logo_link_title:
84
84
  logo_text:
85
+ navigation_links:
85
86
  navigation_menu_heading:
86
- search_text:
87
- popular_links_heading:
87
+ navigation_search_heading:
88
+ navigation_search_subheading:
88
89
  popular_links:
89
- navigation_links:
90
+ popular_links_heading:
91
+ search_text:
90
92
  metadata:
91
93
  from:
92
94
  history:
@@ -82,11 +82,13 @@ dr:
82
82
  layout_super_navigation_header:
83
83
  logo_link_title:
84
84
  logo_text:
85
+ navigation_links:
85
86
  navigation_menu_heading:
86
- search_text:
87
- popular_links_heading:
87
+ navigation_search_heading:
88
+ navigation_search_subheading:
88
89
  popular_links:
89
- navigation_links:
90
+ popular_links_heading:
91
+ search_text:
90
92
  metadata:
91
93
  from:
92
94
  history:
@@ -82,11 +82,13 @@ el:
82
82
  layout_super_navigation_header:
83
83
  logo_link_title:
84
84
  logo_text:
85
+ navigation_links:
85
86
  navigation_menu_heading:
86
- search_text:
87
- popular_links_heading:
87
+ navigation_search_heading:
88
+ navigation_search_subheading:
88
89
  popular_links:
89
- navigation_links:
90
+ popular_links_heading:
91
+ search_text:
90
92
  metadata:
91
93
  from:
92
94
  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
@@ -89,88 +90,92 @@ en:
89
90
  layout_super_navigation_header:
90
91
  logo_link_title: Go to the GOV.UK homepage
91
92
  logo_text: GOV.UK
93
+ menu_toggle_label:
94
+ hide: Hide %{label} menu
95
+ show: Show %{label} menu
96
+ navigation_links:
97
+ - label: Topics
98
+ href: "/browse"
99
+ description: Find information and services
100
+ menu_contents:
101
+ - label: Benefits
102
+ href: "/browse/benefits"
103
+ - label: Births, death, marriages and care
104
+ href: "/browse/births-deaths-marriages"
105
+ - label: Brexit
106
+ href: "/brexit"
107
+ - label: Business and self-employed
108
+ href: "/browse/business"
109
+ - label: Childcare and parenting
110
+ href: "/browse/childcare-parenting"
111
+ - label: Citizenship and living in the UK
112
+ href: "/browse/citizenship"
113
+ - label: Coronavirus (COVID‑19)
114
+ href: "/coronavirus"
115
+ - label: Crime, justice and the law
116
+ href: "/browse/justice"
117
+ - label: Disabled people
118
+ href: "/browse/disabilities"
119
+ - label: Driving and transport
120
+ href: "/browse/driving"
121
+ - label: Education and learning
122
+ href: "/browse/education"
123
+ - label: Employing people
124
+ href: "/browse/employing-people"
125
+ - label: Environment and countryside
126
+ href: "/browse/environment-countryside"
127
+ - label: Housing and local services
128
+ href: "/browse/housing-local-services"
129
+ - label: Money and tax
130
+ href: "/browse/tax"
131
+ - label: Passports, travel and living abroad
132
+ href: "/browse/abroad"
133
+ - label: Visas and immigration
134
+ href: "/browse/visas-immigration"
135
+ - label: Working, jobs and pensions
136
+ href: "/browse/working"
137
+ - label: Departments
138
+ href: "/government/organisations"
139
+ - label: Government activity
140
+ href: "/search/news-and-communications"
141
+ description: Find out what the government is doing
142
+ menu_contents:
143
+ - label: News
144
+ href: "/search/news-and-communications"
145
+ description: News stories, speeches, letters and notices
146
+ - label: Guidance and regulation
147
+ href: "/search/guidance-and-regulation"
148
+ description: Detailed guidance, regulations and rules
149
+ - label: Research and statistics
150
+ href: "/search/research-and-statistics"
151
+ description: Reports, analysis and official statistics
152
+ - label: Policy papers and consultation
153
+ href: "/search/policy-papers-and-consultations"
154
+ description: Consultations and strategy
155
+ - label: Transparency
156
+ href: "/search/transparency-and-freedom-of-information-releases"
157
+ description: Government data, Freedom of Information releases and corporate reports
158
+ footer_links:
159
+ - label: How government works
160
+ href: "/government/how-government-works"
161
+ - label: Get involved
162
+ href: "/government/get-involved"
92
163
  navigation_menu_heading: Navigation menu
93
- search_text: Search GOV.UK
94
- popular_links_heading: Popular on GOV.UK
164
+ navigation_search_heading: Search and popular pages
165
+ navigation_search_subheading: Search
95
166
  popular_links:
96
- - label: 'Coronavirus (COVID-19): rules'
97
- href: /guidance/covid-19-coronavirus-restrictions-what-you-can-and-cannot-do
98
- - label: 'Brexit: check what you need to do'
99
- href: /brexit
100
- - label: Sign in to your personal tax account
101
- href: /personal-tax-account
102
- - label: Find a job
103
- href: /find-a-job
104
- - label: Sign in to your Universal Credit account
105
- href: /sign-in-universal-credit
106
- navigation_links:
107
- - label: Topics
108
- href: /browse
109
- description: Find information and services
110
- show: true
111
- menu_contents:
112
- - label: Benefits
113
- href: /browse/benefits
114
- - label: Births, death, marriages and care
115
- href: /browse/births-deaths-marriages
116
- - label: Brexit
117
- href: /brexit
118
- - label: Business and self-employed
119
- href: /browse/business
120
- - label: Childcare and parenting
121
- href: /browse/childcare-parenting
122
- - label: Citizenship and living in the UK
123
- href: /browse/citizenship
124
- - label: Coronavirus (COVID‑19)
125
- href: /coronavirus
126
- - label: Crime, justice and the law
127
- href: /browse/justice
128
- - label: Disabled people
129
- href: /browse/disabilities
130
- - label: Driving and transport
131
- href: /browse/driving
132
- - label: Education and learning
133
- href: /browse/education
134
- - label: Employing people
135
- href: /browse/employing-people
136
- - label: Environment and countryside
137
- href: /browse/environment-countryside
138
- - label: Housing and local services
139
- href: /browse/housing-local-services
140
- - label: Money and tax
141
- href: /browse/tax
142
- - label: Passports, travel and living abroad
143
- href: /browse/abroad
144
- - label: Visas and immigration
145
- href: /browse/visas-immigration
146
- - label: Working, jobs and pensions
147
- href: /browse/working
148
- - label: Departments
149
- href: /government/organisations
150
- - label: Government activity
151
- href: /search/news-and-communications
152
- description: Find out what the government is doing
153
- menu_contents:
154
- - label: News
155
- href: /search/news-and-communications
156
- description: News stories, speeches, letters and notices
157
- - label: Guidance and regulation
158
- href: /search/guidance-and-regulation
159
- description: Detailed guidance, regulations and rules
160
- - label: Research and statistics
161
- href: /search/research-and-statistics
162
- description: Reports, analysis and official statistics
163
- - label: Policy papers and consultation
164
- href: /search/policy-papers-and-consultations
165
- description: Consultations and strategy
166
- - label: Transparency
167
- href: /search/transparency-and-freedom-of-information-releases
168
- description: Government data, freedom of information releases and corporate reports
169
- footer_links:
170
- - label: How government works
171
- href: /government/how-government-works
172
- - label: Get involved
173
- href: /government/get-involved
167
+ - label: 'Coronavirus (COVID-19): guidance'
168
+ href: "/guidance/covid-19-coronavirus-restrictions-what-you-can-and-cannot-do"
169
+ - label: 'Brexit: check what you need to do'
170
+ href: "/brexit"
171
+ - label: Sign in to your personal tax account
172
+ href: "/personal-tax-account"
173
+ - label: Find a job
174
+ href: "/find-a-job"
175
+ - label: Sign in to your Universal Credit account
176
+ href: "/sign-in-universal-credit"
177
+ popular_links_heading: Popular on GOV.UK
178
+ search_text: Search GOV.UK
174
179
  metadata:
175
180
  from: From
176
181
  history: History
@@ -182,6 +187,8 @@ en:
182
187
  toggle_more: "+ %{number} more"
183
188
  modal_dialogue:
184
189
  close_modal: Close modal dialogue
190
+ notice:
191
+ banner_title: Important
185
192
  organisation_schema:
186
193
  all_content_search_description: Find all content from %{organisation}
187
194
  previous_and_next_navigation:
@@ -208,12 +215,12 @@ en:
208
215
  topical_events: Topical event
209
216
  topics: Explore the topic
210
217
  transition:
211
- link_path: "/brexit"
212
- link_text: Check what you need to do
213
- title: Brexit
214
218
  hub_page_link_path: "/transition-check/questions"
215
219
  hub_page_link_text: Get a personalised list of actions
216
220
  hub_page_title: Brexit checker
221
+ link_path: "/brexit"
222
+ link_text: Check what you need to do
223
+ title: Brexit
217
224
  world_locations: World locations
218
225
  search_box:
219
226
  input_title: Search
@@ -82,11 +82,13 @@ es-419:
82
82
  layout_super_navigation_header:
83
83
  logo_link_title:
84
84
  logo_text:
85
+ navigation_links:
85
86
  navigation_menu_heading:
86
- search_text:
87
- popular_links_heading:
87
+ navigation_search_heading:
88
+ navigation_search_subheading:
88
89
  popular_links:
89
- navigation_links:
90
+ popular_links_heading:
91
+ search_text:
90
92
  metadata:
91
93
  from:
92
94
  history:
@@ -82,11 +82,13 @@ es:
82
82
  layout_super_navigation_header:
83
83
  logo_link_title:
84
84
  logo_text:
85
+ navigation_links:
85
86
  navigation_menu_heading:
86
- search_text:
87
- popular_links_heading:
87
+ navigation_search_heading:
88
+ navigation_search_subheading:
88
89
  popular_links:
89
- navigation_links:
90
+ popular_links_heading:
91
+ search_text:
90
92
  metadata:
91
93
  from:
92
94
  history:
@@ -82,11 +82,13 @@ et:
82
82
  layout_super_navigation_header:
83
83
  logo_link_title:
84
84
  logo_text:
85
+ navigation_links:
85
86
  navigation_menu_heading:
86
- search_text:
87
- popular_links_heading:
87
+ navigation_search_heading:
88
+ navigation_search_subheading:
88
89
  popular_links:
89
- navigation_links:
90
+ popular_links_heading:
91
+ search_text:
90
92
  metadata:
91
93
  from:
92
94
  history:
@@ -82,11 +82,13 @@ fa:
82
82
  layout_super_navigation_header:
83
83
  logo_link_title:
84
84
  logo_text:
85
+ navigation_links:
85
86
  navigation_menu_heading:
86
- search_text:
87
- popular_links_heading:
87
+ navigation_search_heading:
88
+ navigation_search_subheading:
88
89
  popular_links:
89
- navigation_links:
90
+ popular_links_heading:
91
+ search_text:
90
92
  metadata:
91
93
  from:
92
94
  history:
@@ -82,11 +82,13 @@ fi:
82
82
  layout_super_navigation_header:
83
83
  logo_link_title:
84
84
  logo_text:
85
+ navigation_links:
85
86
  navigation_menu_heading:
86
- search_text:
87
- popular_links_heading:
87
+ navigation_search_heading:
88
+ navigation_search_subheading:
88
89
  popular_links:
89
- navigation_links:
90
+ popular_links_heading:
91
+ search_text:
90
92
  metadata:
91
93
  from:
92
94
  history:
@@ -82,11 +82,13 @@ fr:
82
82
  layout_super_navigation_header:
83
83
  logo_link_title:
84
84
  logo_text:
85
+ navigation_links:
85
86
  navigation_menu_heading:
86
- search_text:
87
- popular_links_heading:
87
+ navigation_search_heading:
88
+ navigation_search_subheading:
88
89
  popular_links:
89
- navigation_links:
90
+ popular_links_heading:
91
+ search_text:
90
92
  metadata:
91
93
  from:
92
94
  history:
@@ -82,11 +82,13 @@ gd:
82
82
  layout_super_navigation_header:
83
83
  logo_link_title:
84
84
  logo_text:
85
+ navigation_links:
85
86
  navigation_menu_heading:
86
- search_text:
87
- popular_links_heading:
87
+ navigation_search_heading:
88
+ navigation_search_subheading:
88
89
  popular_links:
89
- navigation_links:
90
+ popular_links_heading:
91
+ search_text:
90
92
  metadata:
91
93
  from:
92
94
  history:
@@ -82,11 +82,13 @@ gu:
82
82
  layout_super_navigation_header:
83
83
  logo_link_title:
84
84
  logo_text:
85
+ navigation_links:
85
86
  navigation_menu_heading:
86
- search_text:
87
- popular_links_heading:
87
+ navigation_search_heading:
88
+ navigation_search_subheading:
88
89
  popular_links:
89
- navigation_links:
90
+ popular_links_heading:
91
+ search_text:
90
92
  metadata:
91
93
  from:
92
94
  history:
@@ -82,11 +82,13 @@ he:
82
82
  layout_super_navigation_header:
83
83
  logo_link_title:
84
84
  logo_text:
85
+ navigation_links:
85
86
  navigation_menu_heading:
86
- search_text:
87
- popular_links_heading:
87
+ navigation_search_heading:
88
+ navigation_search_subheading:
88
89
  popular_links:
89
- navigation_links:
90
+ popular_links_heading:
91
+ search_text:
90
92
  metadata:
91
93
  from:
92
94
  history:
@@ -82,11 +82,13 @@ hi:
82
82
  layout_super_navigation_header:
83
83
  logo_link_title:
84
84
  logo_text:
85
+ navigation_links:
85
86
  navigation_menu_heading:
86
- search_text:
87
- popular_links_heading:
87
+ navigation_search_heading:
88
+ navigation_search_subheading:
88
89
  popular_links:
89
- navigation_links:
90
+ popular_links_heading:
91
+ search_text:
90
92
  metadata:
91
93
  from:
92
94
  history:
@@ -82,11 +82,13 @@ hr:
82
82
  layout_super_navigation_header:
83
83
  logo_link_title:
84
84
  logo_text:
85
+ navigation_links:
85
86
  navigation_menu_heading:
86
- search_text:
87
- popular_links_heading:
87
+ navigation_search_heading:
88
+ navigation_search_subheading:
88
89
  popular_links:
89
- navigation_links:
90
+ popular_links_heading:
91
+ search_text:
90
92
  metadata:
91
93
  from:
92
94
  history: