govuk_publishing_components 53.0.0 → 54.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/app/assets/stylesheets/govuk_publishing_components/components/_attachment.scss +25 -9
- data/app/assets/stylesheets/govuk_publishing_components/components/_govspeak-html-publication.scss +5 -14
- data/app/assets/stylesheets/govuk_publishing_components/components/govspeak/_attachment.scss +4 -18
- data/app/assets/stylesheets/govuk_publishing_components/components/govspeak/_call-to-action.scss +3 -12
- data/app/assets/stylesheets/govuk_publishing_components/components/govspeak/_contact.scss +1 -2
- data/app/assets/stylesheets/govuk_publishing_components/components/govspeak/_example.scss +2 -9
- data/app/assets/stylesheets/govuk_publishing_components/components/govspeak/_footnotes.scss +2 -11
- data/app/assets/stylesheets/govuk_publishing_components/components/govspeak/_form-download.scss +1 -5
- data/app/assets/stylesheets/govuk_publishing_components/components/govspeak/_highlight-answer.scss +1 -2
- data/app/assets/stylesheets/govuk_publishing_components/components/govspeak/_images.scss +1 -2
- data/app/assets/stylesheets/govuk_publishing_components/components/govspeak/_information-callout.scss +2 -9
- data/app/assets/stylesheets/govuk_publishing_components/components/govspeak/_legislative-list.scss +1 -9
- data/app/assets/stylesheets/govuk_publishing_components/components/govspeak/_media-player.scss +1 -2
- data/app/assets/stylesheets/govuk_publishing_components/components/govspeak/_place.scss +1 -5
- data/app/assets/stylesheets/govuk_publishing_components/components/govspeak/_stat-headline.scss +1 -8
- data/app/assets/stylesheets/govuk_publishing_components/components/govspeak/_steps.scss +1 -1
- data/app/assets/stylesheets/govuk_publishing_components/components/govspeak/_tables.scss +1 -1
- data/app/assets/stylesheets/govuk_publishing_components/components/govspeak/_typography.scss +0 -1
- data/app/assets/stylesheets/govuk_publishing_components/components/govspeak/_warning-callout.scss +2 -9
- data/app/assets/stylesheets/govuk_publishing_components/components/helpers/_markdown-typography.scss +15 -55
- data/app/controllers/govuk_publishing_components/audit_controller.rb +1 -0
- data/app/controllers/govuk_publishing_components/component_guide_controller.rb +1 -1
- data/app/models/govuk_publishing_components/audit_applications.rb +1 -1
- data/app/models/govuk_publishing_components/audit_comparer.rb +1 -1
- data/app/models/govuk_publishing_components/audit_components.rb +1 -1
- data/app/views/govuk_publishing_components/components/_attachment.html.erb +2 -0
- data/app/views/govuk_publishing_components/components/_cookie_banner.html.erb +2 -1
- data/app/views/govuk_publishing_components/components/_feedback.html.erb +2 -6
- data/app/views/govuk_publishing_components/components/_govspeak.html.erb +3 -0
- data/app/views/govuk_publishing_components/components/_heading.html.erb +0 -1
- data/app/views/govuk_publishing_components/components/_layout_for_public.html.erb +6 -21
- data/app/views/govuk_publishing_components/components/_layout_super_navigation_header.html.erb +0 -1
- data/app/views/govuk_publishing_components/components/_metadata.html.erb +0 -3
- data/app/views/govuk_publishing_components/components/_radio.html.erb +0 -1
- data/app/views/govuk_publishing_components/components/docs/govspeak.yml +7 -4
- data/app/views/govuk_publishing_components/components/docs/layout_for_public.yml +0 -2
- data/app/views/govuk_publishing_components/components/feedback/_survey_signup_form.html.erb +0 -4
- data/config/locales/ar.yml +0 -1
- data/config/locales/az.yml +0 -1
- data/config/locales/be.yml +0 -1
- data/config/locales/bg.yml +0 -1
- data/config/locales/bn.yml +0 -1
- data/config/locales/cs.yml +0 -1
- data/config/locales/cy.yml +0 -1
- data/config/locales/da.yml +0 -1
- data/config/locales/de.yml +0 -1
- data/config/locales/dr.yml +0 -1
- data/config/locales/el.yml +0 -1
- data/config/locales/en.yml +6 -7
- data/config/locales/es-419.yml +1 -2
- data/config/locales/es.yml +1 -2
- data/config/locales/et.yml +0 -1
- data/config/locales/fa.yml +0 -1
- data/config/locales/fi.yml +0 -1
- data/config/locales/fr.yml +0 -1
- data/config/locales/gd.yml +0 -1
- data/config/locales/gu.yml +0 -1
- data/config/locales/he.yml +0 -1
- data/config/locales/hi.yml +0 -1
- data/config/locales/hr.yml +0 -1
- data/config/locales/hu.yml +0 -1
- data/config/locales/hy.yml +0 -1
- data/config/locales/id.yml +0 -1
- data/config/locales/is.yml +0 -1
- data/config/locales/it.yml +0 -1
- data/config/locales/ja.yml +0 -1
- data/config/locales/ka.yml +0 -1
- data/config/locales/kk.yml +0 -1
- data/config/locales/ko.yml +0 -1
- data/config/locales/lt.yml +0 -1
- data/config/locales/lv.yml +0 -1
- data/config/locales/ms.yml +0 -1
- data/config/locales/mt.yml +0 -1
- data/config/locales/nl.yml +0 -1
- data/config/locales/no.yml +0 -1
- data/config/locales/pa-pk.yml +0 -1
- data/config/locales/pa.yml +0 -1
- data/config/locales/pl.yml +0 -1
- data/config/locales/ps.yml +0 -1
- data/config/locales/pt.yml +0 -1
- data/config/locales/ro.yml +0 -1
- data/config/locales/ru.yml +0 -1
- data/config/locales/si.yml +0 -1
- data/config/locales/sk.yml +0 -1
- data/config/locales/sl.yml +0 -1
- data/config/locales/so.yml +0 -1
- data/config/locales/sq.yml +0 -1
- data/config/locales/sr.yml +0 -1
- data/config/locales/sv.yml +0 -1
- data/config/locales/sw.yml +0 -1
- data/config/locales/ta.yml +0 -1
- data/config/locales/th.yml +0 -1
- data/config/locales/tk.yml +0 -1
- data/config/locales/tr.yml +0 -1
- data/config/locales/uk.yml +0 -1
- data/config/locales/ur.yml +0 -1
- data/config/locales/uz.yml +0 -1
- data/config/locales/vi.yml +0 -1
- data/config/locales/zh-hk.yml +0 -1
- data/config/locales/zh-tw.yml +0 -1
- data/config/locales/zh.yml +0 -1
- data/lib/govuk_publishing_components/app_helpers/asset_helper.rb +35 -26
- data/lib/govuk_publishing_components/config.rb +3 -0
- data/lib/govuk_publishing_components/presenters/attachment_helper.rb +2 -6
- data/lib/govuk_publishing_components/presenters/checkboxes_helper.rb +2 -2
- data/lib/govuk_publishing_components/presenters/component_wrapper_helper.rb +14 -14
- data/lib/govuk_publishing_components/presenters/content_breadcrumbs_based_on_organisations.rb +1 -1
- data/lib/govuk_publishing_components/presenters/content_breadcrumbs_based_on_taxons.rb +1 -1
- data/lib/govuk_publishing_components/presenters/content_item.rb +1 -3
- data/lib/govuk_publishing_components/presenters/machine_readable/article_schema.rb +1 -1
- data/lib/govuk_publishing_components/presenters/machine_readable/government_service_schema.rb +2 -2
- data/lib/govuk_publishing_components/presenters/machine_readable/organisation_schema.rb +3 -3
- data/lib/govuk_publishing_components/presenters/meta_tags.rb +2 -2
- data/lib/govuk_publishing_components/presenters/page_with_step_by_step_navigation.rb +1 -1
- data/lib/govuk_publishing_components/version.rb +1 -1
- metadata +2 -2
@@ -19,10 +19,8 @@
|
|
19
19
|
omit_footer_border ||= false
|
20
20
|
omit_header ||= false
|
21
21
|
product_name ||= nil
|
22
|
-
show_explore_header ||= false
|
23
22
|
show_cross_service_header ||= false
|
24
23
|
draft_watermark ||= false
|
25
|
-
show_search = local_assigns.include?(:show_search) ? local_assigns[:show_search] : true
|
26
24
|
title ||= "GOV.UK - The best place to find government services and information"
|
27
25
|
|
28
26
|
show_account_layout ||= false
|
@@ -102,32 +100,19 @@
|
|
102
100
|
href: "#content"
|
103
101
|
} %>
|
104
102
|
<% unless omit_header %>
|
105
|
-
<% if
|
106
|
-
<% if homepage %>
|
107
|
-
<%= render "govuk_publishing_components/components/layout_for_public/layout_super_navigation_header_homepage", {
|
108
|
-
logo_link: logo_link,
|
109
|
-
} %>
|
110
|
-
<% else %>
|
111
|
-
<%= render "govuk_publishing_components/components/layout_super_navigation_header", {
|
112
|
-
logo_link: logo_link,
|
113
|
-
} %>
|
114
|
-
<% end %>
|
115
|
-
<% elsif show_cross_service_header %>
|
103
|
+
<% if show_cross_service_header %>
|
116
104
|
<%= render "govuk_publishing_components/components/cross_service_header", {
|
117
105
|
one_login_navigation_items: one_login_navigation_items,
|
118
106
|
service_navigation_items: service_navigation_items,
|
119
107
|
product_name: product_name,
|
120
108
|
} %>
|
109
|
+
<% elsif homepage %>
|
110
|
+
<%= render "govuk_publishing_components/components/layout_for_public/layout_super_navigation_header_homepage", {
|
111
|
+
logo_link: logo_link,
|
112
|
+
} %>
|
121
113
|
<% else %>
|
122
|
-
<%= render "govuk_publishing_components/components/
|
123
|
-
search: show_search,
|
114
|
+
<%= render "govuk_publishing_components/components/layout_super_navigation_header", {
|
124
115
|
logo_link: logo_link,
|
125
|
-
navigation_items: navigation_items,
|
126
|
-
product_name: product_name,
|
127
|
-
|
128
|
-
# The (blue) bottom border needs to be underneath the emergency banner -
|
129
|
-
# so it has been turned off and added in manually.
|
130
|
-
remove_bottom_border: true,
|
131
116
|
} %>
|
132
117
|
<% end %>
|
133
118
|
<% end %>
|
data/app/views/govuk_publishing_components/components/_layout_super_navigation_header.html.erb
CHANGED
@@ -12,7 +12,6 @@
|
|
12
12
|
|
13
13
|
navigation_links_columns = t("components.layout_super_navigation_header.navigation_links_columns")
|
14
14
|
navigation_menu_heading = t("components.layout_super_navigation_header.navigation_menu_heading")
|
15
|
-
navigation_search_heading = t("components.layout_super_navigation_header.navigation_search_heading")
|
16
15
|
navigation_search_subheading = t("components.layout_super_navigation_header.navigation_search_subheading")
|
17
16
|
search_text = t("components.layout_super_navigation_header.search_text")
|
18
17
|
|
@@ -13,9 +13,6 @@
|
|
13
13
|
inverse ||= false
|
14
14
|
inverse_compress ||= false
|
15
15
|
|
16
|
-
direction_class = ""
|
17
|
-
direction_class = " direction-#{direction}" if local_assigns.include?(:direction)
|
18
|
-
|
19
16
|
component_helper = GovukPublishingComponents::Presenters::ComponentWrapperHelper.new(local_assigns)
|
20
17
|
component_helper.add_class("gem-c-metadata")
|
21
18
|
component_helper.add_class("direction-#{direction}") if local_assigns.include?(:direction)
|
@@ -90,7 +90,6 @@
|
|
90
90
|
<%= tag.div t('components.radio.or'), class: "govuk-radios__divider" %>
|
91
91
|
<% else %>
|
92
92
|
<%
|
93
|
-
item_next = items[index + 1] unless index === items.size - 1
|
94
93
|
label_id = item[:id] ? item[:id] : "#{id_prefix}-#{index}"
|
95
94
|
label_hint_id = "label-hint-#{SecureRandom.hex(4)}" if item[:hint_text].present?
|
96
95
|
conditional_id = "conditional-#{SecureRandom.hex(4)}" if item[:conditional].present?
|
@@ -775,13 +775,16 @@ examples:
|
|
775
775
|
<li>three</li>
|
776
776
|
</ul>
|
777
777
|
legislative_lists:
|
778
|
+
description: Example taken from [GOV.UK Immigration rules](https://www.gov.uk/guidance/immigration-rules/immigration-rules-introduction)
|
778
779
|
data:
|
779
780
|
block: |
|
780
|
-
<h2>ordered list:</h2>
|
781
781
|
<ol class="legislative-list">
|
782
|
-
<li>
|
783
|
-
|
784
|
-
|
782
|
+
<li>6.2. In these rules:
|
783
|
+
<ol>
|
784
|
+
<li>(a) references to primary and secondary legislation refers to that legislation as amended from time to time; and</li>
|
785
|
+
<li>(b) unless the contrary intention appears, the following definitions apply:</li>
|
786
|
+
</ol>
|
787
|
+
</li>
|
785
788
|
</ol>
|
786
789
|
nested_lists:
|
787
790
|
data:
|
@@ -52,7 +52,6 @@ examples:
|
|
52
52
|
description: This allows for rendering the layout super navigation header in a different way for only the homepage.
|
53
53
|
data:
|
54
54
|
homepage: true
|
55
|
-
show_explore_header: true
|
56
55
|
omit_footer_navigation:
|
57
56
|
description: This allows the footer navigation to be omitted
|
58
57
|
data:
|
@@ -60,7 +59,6 @@ examples:
|
|
60
59
|
navigation:
|
61
60
|
description: Passes the navigation through to the [header component](/component-guide/layout_header/).
|
62
61
|
data:
|
63
|
-
show_search: false
|
64
62
|
navigation_items:
|
65
63
|
- text: Navigation item 1
|
66
64
|
href: "item-1"
|
@@ -1,7 +1,3 @@
|
|
1
|
-
<%
|
2
|
-
absolute_links_helper = GovukPublishingComponents::Presenters::AbsoluteLinksHelper.new()
|
3
|
-
%>
|
4
|
-
|
5
1
|
<div id="page-is-not-useful" class="gem-c-feedback__form gem-c-feedback__form--email gem-c-feedback__js-show js-feedback-form">
|
6
2
|
<div class="govuk-grid-row">
|
7
3
|
<div class="govuk-grid-column-two-thirds" id="survey-wrapper">
|
data/config/locales/ar.yml
CHANGED
data/config/locales/az.yml
CHANGED
data/config/locales/be.yml
CHANGED
data/config/locales/bg.yml
CHANGED
data/config/locales/bn.yml
CHANGED
data/config/locales/cs.yml
CHANGED
data/config/locales/cy.yml
CHANGED
data/config/locales/da.yml
CHANGED
data/config/locales/de.yml
CHANGED
data/config/locales/dr.yml
CHANGED
data/config/locales/el.yml
CHANGED
data/config/locales/en.yml
CHANGED
@@ -229,7 +229,6 @@ en:
|
|
229
229
|
href: "/search/transparency-and-freedom-of-information-releases"
|
230
230
|
description: Data, Freedom of Information releases and corporate reports
|
231
231
|
navigation_menu_heading: Navigation menu
|
232
|
-
navigation_search_heading: Search and popular pages
|
233
232
|
navigation_search_subheading: Search
|
234
233
|
search_text: Search GOV.UK
|
235
234
|
metadata:
|
@@ -245,20 +244,20 @@ en:
|
|
245
244
|
notice:
|
246
245
|
banner_title: Important
|
247
246
|
option_select:
|
248
|
-
found_single: option found
|
249
247
|
found_multiple: options found
|
248
|
+
found_single: option found
|
250
249
|
selected: selected
|
251
250
|
organisation_schema:
|
252
251
|
all_content_search_description: Find all content from %{organisation}
|
253
252
|
password_input:
|
254
|
-
label: Password
|
255
253
|
button: Show
|
256
|
-
button_hide: Hide
|
257
|
-
button_aria_label: Show password
|
258
254
|
button_aria_hide_label: Hide password
|
259
|
-
|
260
|
-
|
255
|
+
button_aria_label: Show password
|
256
|
+
button_hide: Hide
|
261
257
|
error_text_prefix: Error
|
258
|
+
label: Password
|
259
|
+
password_hidden_announcement: Your password is hidden
|
260
|
+
password_shown_announcement: Your password is visible
|
262
261
|
previous_and_next_navigation:
|
263
262
|
next: Next
|
264
263
|
pagination: Pagination
|
data/config/locales/es-419.yml
CHANGED
@@ -122,11 +122,10 @@ es-419:
|
|
122
122
|
label:
|
123
123
|
navigation_links_columns:
|
124
124
|
navigation_menu_heading:
|
125
|
-
navigation_search_heading:
|
126
125
|
navigation_search_subheading:
|
127
126
|
search_text:
|
128
127
|
metadata:
|
129
|
-
and: y
|
128
|
+
and: "y"
|
130
129
|
from: Desde
|
131
130
|
history: Historial
|
132
131
|
last_updated: Última actualización
|
data/config/locales/es.yml
CHANGED
@@ -122,11 +122,10 @@ es:
|
|
122
122
|
label:
|
123
123
|
navigation_links_columns:
|
124
124
|
navigation_menu_heading:
|
125
|
-
navigation_search_heading:
|
126
125
|
navigation_search_subheading:
|
127
126
|
search_text:
|
128
127
|
metadata:
|
129
|
-
and: y
|
128
|
+
and: "y"
|
130
129
|
from: Desde
|
131
130
|
history: Historial
|
132
131
|
last_updated: Última actualización
|
data/config/locales/et.yml
CHANGED
data/config/locales/fa.yml
CHANGED
data/config/locales/fi.yml
CHANGED
data/config/locales/fr.yml
CHANGED
data/config/locales/gd.yml
CHANGED
data/config/locales/gu.yml
CHANGED
data/config/locales/he.yml
CHANGED
data/config/locales/hi.yml
CHANGED
data/config/locales/hr.yml
CHANGED
data/config/locales/hu.yml
CHANGED
data/config/locales/hy.yml
CHANGED
data/config/locales/id.yml
CHANGED
data/config/locales/is.yml
CHANGED
data/config/locales/it.yml
CHANGED
data/config/locales/ja.yml
CHANGED
data/config/locales/ka.yml
CHANGED
data/config/locales/kk.yml
CHANGED
data/config/locales/ko.yml
CHANGED
data/config/locales/lt.yml
CHANGED
data/config/locales/lv.yml
CHANGED
data/config/locales/ms.yml
CHANGED
data/config/locales/mt.yml
CHANGED
data/config/locales/nl.yml
CHANGED
data/config/locales/no.yml
CHANGED
data/config/locales/pa-pk.yml
CHANGED
data/config/locales/pa.yml
CHANGED
data/config/locales/pl.yml
CHANGED
data/config/locales/ps.yml
CHANGED
data/config/locales/pt.yml
CHANGED
data/config/locales/ro.yml
CHANGED
data/config/locales/ru.yml
CHANGED
data/config/locales/si.yml
CHANGED
data/config/locales/sk.yml
CHANGED
data/config/locales/sl.yml
CHANGED
data/config/locales/so.yml
CHANGED
data/config/locales/sq.yml
CHANGED
data/config/locales/sr.yml
CHANGED
data/config/locales/sv.yml
CHANGED