govuk_publishing_components 24.10.1 → 24.12.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/assets/javascripts/govuk_publishing_components/analytics/scroll-tracker.js +6 -248
- data/app/assets/javascripts/govuk_publishing_components/components/accordion.js +1 -1
- data/app/assets/javascripts/govuk_publishing_components/components/cookie-banner.js +1 -0
- data/app/assets/javascripts/govuk_publishing_components/components/feedback.js +142 -104
- data/app/assets/javascripts/govuk_publishing_components/components/reorderable-list.js +1 -1
- data/app/assets/javascripts/govuk_publishing_components/components/step-by-step-nav.js +2 -2
- data/app/assets/javascripts/govuk_publishing_components/lib/trigger-event.js +18 -0
- data/app/assets/stylesheets/govuk_publishing_components/_all_components_print.scss +0 -11
- data/app/assets/stylesheets/govuk_publishing_components/components/_metadata.scss +15 -18
- data/app/assets/stylesheets/govuk_publishing_components/components/print/_attachment.scss +2 -3
- data/app/assets/stylesheets/govuk_publishing_components/components/print/_back-link.scss +2 -3
- data/app/assets/stylesheets/govuk_publishing_components/components/print/_button.scss +0 -4
- data/app/assets/stylesheets/govuk_publishing_components/components/print/_feedback.scss +2 -3
- data/app/assets/stylesheets/govuk_publishing_components/components/print/_layout-footer.scss +2 -6
- data/app/assets/stylesheets/govuk_publishing_components/components/print/_layout-header.scss +2 -3
- data/app/assets/stylesheets/govuk_publishing_components/components/print/_metadata.scss +2 -6
- data/app/assets/stylesheets/govuk_publishing_components/components/print/_search.scss +2 -3
- data/app/assets/stylesheets/govuk_publishing_components/components/print/_share-links.scss +2 -3
- data/app/assets/stylesheets/govuk_publishing_components/components/print/_skip-link.scss +2 -3
- data/app/assets/stylesheets/govuk_publishing_components/components/print/_step-by-step-nav-header.scss +0 -4
- data/app/assets/stylesheets/govuk_publishing_components/components/print/_subscription-links.scss +2 -3
- data/app/assets/stylesheets/govuk_publishing_components/components/print/_translation-nav.scss +2 -3
- data/app/views/govuk_publishing_components/components/_attachment.html.erb +4 -4
- data/app/views/govuk_publishing_components/components/_attachment_link.html.erb +1 -1
- data/app/views/govuk_publishing_components/components/_back_link.html.erb +1 -1
- data/app/views/govuk_publishing_components/components/_button.html.erb +1 -1
- data/app/views/govuk_publishing_components/components/_character_count.html.erb +1 -1
- data/app/views/govuk_publishing_components/components/_contextual_sidebar.html.erb +1 -1
- data/app/views/govuk_publishing_components/components/_cookie_banner.html.erb +16 -6
- data/app/views/govuk_publishing_components/components/_feedback.html.erb +1 -1
- data/app/views/govuk_publishing_components/components/_government_navigation.html.erb +7 -7
- data/app/views/govuk_publishing_components/components/_layout_footer.html.erb +8 -11
- data/app/views/govuk_publishing_components/components/_machine_readable_metadata.html.erb +1 -1
- data/app/views/govuk_publishing_components/components/_metadata.html.erb +9 -8
- data/app/views/govuk_publishing_components/components/_modal_dialogue.html.erb +1 -1
- data/app/views/govuk_publishing_components/components/_phase_banner.html.erb +1 -5
- data/app/views/govuk_publishing_components/components/_previous_and_next_navigation.html.erb +1 -1
- data/app/views/govuk_publishing_components/components/_print_link.html.erb +1 -1
- data/app/views/govuk_publishing_components/components/_radio.html.erb +6 -11
- data/app/views/govuk_publishing_components/components/_search.html.erb +1 -1
- data/app/views/govuk_publishing_components/components/_share_links.html.erb +1 -1
- data/app/views/govuk_publishing_components/components/_skip_link.html.erb +1 -1
- data/app/views/govuk_publishing_components/components/_step_by_step_nav.html.erb +6 -6
- data/app/views/govuk_publishing_components/components/_step_by_step_nav_related.html.erb +1 -1
- data/app/views/govuk_publishing_components/components/_subscription_links.html.erb +3 -3
- data/app/views/govuk_publishing_components/components/_success_alert.html.erb +1 -1
- data/app/views/govuk_publishing_components/components/_tabs.html.erb +1 -1
- data/app/views/govuk_publishing_components/components/_translation_nav.html.erb +1 -1
- data/app/views/govuk_publishing_components/components/docs/feedback.yml +2 -0
- data/app/views/govuk_publishing_components/components/docs/phase_banner.yml +2 -2
- data/app/views/govuk_publishing_components/components/feedback/_problem_form.html.erb +6 -6
- data/app/views/govuk_publishing_components/components/feedback/_survey_signup_form.html.erb +5 -5
- data/app/views/govuk_publishing_components/components/feedback/_yes_no_banner.html.erb +6 -6
- data/app/views/govuk_publishing_components/components/layout_header/_navigation_items.html.erb +1 -1
- data/app/views/govuk_publishing_components/components/metadata/_sentence.html.erb +4 -4
- data/app/views/govuk_publishing_components/components/related_navigation/_section.html.erb +1 -1
- data/config/locales/ar.yml +153 -0
- data/config/locales/az.yml +153 -0
- data/config/locales/be.yml +153 -0
- data/config/locales/bg.yml +153 -0
- data/config/locales/bn.yml +153 -0
- data/config/locales/cs.yml +153 -0
- data/config/locales/cy.yml +145 -6
- data/config/locales/da.yml +153 -0
- data/config/locales/de.yml +153 -0
- data/config/locales/dr.yml +153 -0
- data/config/locales/el.yml +153 -0
- data/config/locales/en.yml +144 -102
- data/config/locales/es-419.yml +153 -0
- data/config/locales/es.yml +153 -0
- data/config/locales/et.yml +150 -0
- data/config/locales/fa.yml +153 -0
- data/config/locales/fi.yml +153 -0
- data/config/locales/fr.yml +150 -0
- data/config/locales/gd.yml +153 -0
- data/config/locales/gu.yml +153 -0
- data/config/locales/he.yml +153 -0
- data/config/locales/hi.yml +153 -0
- data/config/locales/hr.yml +153 -0
- data/config/locales/hu.yml +153 -0
- data/config/locales/hy.yml +153 -0
- data/config/locales/id.yml +153 -0
- data/config/locales/is.yml +153 -0
- data/config/locales/it.yml +153 -0
- data/config/locales/ja.yml +153 -0
- data/config/locales/ka.yml +153 -0
- data/config/locales/kk.yml +153 -0
- data/config/locales/ko.yml +153 -0
- data/config/locales/lt.yml +153 -0
- data/config/locales/lv.yml +153 -0
- data/config/locales/ms.yml +153 -0
- data/config/locales/mt.yml +153 -0
- data/config/locales/nl.yml +153 -0
- data/config/locales/no.yml +154 -1
- data/config/locales/pa-pk.yml +153 -0
- data/config/locales/pa.yml +153 -0
- data/config/locales/pl.yml +153 -0
- data/config/locales/ps.yml +153 -0
- data/config/locales/pt.yml +153 -0
- data/config/locales/ro.yml +153 -0
- data/config/locales/ru.yml +153 -0
- data/config/locales/si.yml +153 -0
- data/config/locales/sk.yml +153 -0
- data/config/locales/sl.yml +153 -0
- data/config/locales/so.yml +153 -0
- data/config/locales/sq.yml +153 -0
- data/config/locales/sr.yml +153 -0
- data/config/locales/sv.yml +153 -0
- data/config/locales/sw.yml +153 -0
- data/config/locales/ta.yml +153 -0
- data/config/locales/th.yml +153 -0
- data/config/locales/tk.yml +153 -0
- data/config/locales/tr.yml +153 -0
- data/config/locales/uk.yml +153 -0
- data/config/locales/ur.yml +153 -0
- data/config/locales/uz.yml +153 -0
- data/config/locales/vi.yml +153 -0
- data/config/locales/zh-hk.yml +153 -0
- data/config/locales/zh-tw.yml +153 -0
- data/config/locales/zh.yml +153 -0
- data/lib/govuk_publishing_components/presenters/breadcrumb_selector.rb +5 -0
- data/lib/govuk_publishing_components/presenters/content_breadcrumbs_based_on_taxons.rb +1 -2
- data/lib/govuk_publishing_components/presenters/content_item.rb +4 -0
- data/lib/govuk_publishing_components/presenters/contextual_navigation.rb +4 -0
- data/lib/govuk_publishing_components/presenters/machine_readable/page.rb +4 -0
- data/lib/govuk_publishing_components/version.rb +1 -1
- data/node_modules/govuk-frontend/govuk/components/accordion/_index.scss +7 -16
- data/node_modules/govuk-frontend/govuk/components/back-link/_index.scss +4 -15
- data/node_modules/govuk-frontend/govuk/components/character-count/macro-options.json +1 -1
- data/node_modules/govuk-frontend/govuk/components/checkboxes/macro-options.json +3 -3
- data/node_modules/govuk-frontend/govuk/components/cookie-banner/README.md +15 -0
- data/node_modules/govuk-frontend/govuk/components/cookie-banner/fixtures.json +40 -22
- data/node_modules/govuk-frontend/govuk/components/cookie-banner/macro-options.json +6 -6
- data/node_modules/govuk-frontend/govuk/components/cookie-banner/template.njk +15 -5
- data/node_modules/govuk-frontend/govuk/components/date-input/macro-options.json +2 -2
- data/node_modules/govuk-frontend/govuk/components/details/_index.scss +5 -1
- data/node_modules/govuk-frontend/govuk/components/file-upload/_index.scss +13 -14
- data/node_modules/govuk-frontend/govuk/components/file-upload/macro-options.json +1 -1
- data/node_modules/govuk-frontend/govuk/components/footer/_index.scss +14 -19
- data/node_modules/govuk-frontend/govuk/components/header/_index.scss +39 -21
- data/node_modules/govuk-frontend/govuk/components/input/macro-options.json +1 -1
- data/node_modules/govuk-frontend/govuk/components/phase-banner/_index.scss +1 -1
- data/node_modules/govuk-frontend/govuk/components/radios/macro-options.json +3 -3
- data/node_modules/govuk-frontend/govuk/components/select/macro-options.json +1 -1
- data/node_modules/govuk-frontend/govuk/components/skip-link/_index.scss +1 -1
- data/node_modules/govuk-frontend/govuk/components/tabs/_index.scss +1 -6
- data/node_modules/govuk-frontend/govuk/components/textarea/macro-options.json +1 -1
- data/node_modules/govuk-frontend/govuk/components/warning-text/_index.scss +10 -0
- data/node_modules/govuk-frontend/govuk/core/_links.scss +8 -0
- data/node_modules/govuk-frontend/govuk/helpers/_links.scss +153 -38
- data/node_modules/govuk-frontend/govuk/settings/_all.scss +2 -0
- data/node_modules/govuk-frontend/govuk/settings/_links.scss +62 -0
- data/node_modules/govuk-frontend/package.json +1 -1
- metadata +6 -3
@@ -17,7 +17,7 @@
|
|
17
17
|
<meta property="og:site_name" content="GOV.UK" />
|
18
18
|
<meta property="og:type" content="article" />
|
19
19
|
<meta property="og:url" content="<%= page.canonical_url %>" />
|
20
|
-
<meta property="og:title" content="
|
20
|
+
<meta property="og:title" content="<% if page.withdrawn? %>[Withdrawn] <% end %><%= page.title %>" />
|
21
21
|
<meta property="og:description" content="<%= strip_tags(page.description) %>" />
|
22
22
|
|
23
23
|
<% if page.has_image? %>
|
@@ -18,34 +18,35 @@
|
|
18
18
|
<%= content_tag :div, class: classes, data: { module: "gem-toggle" } do %>
|
19
19
|
<dl data-module="gem-track-click">
|
20
20
|
<% if from.any? %>
|
21
|
-
<dt class="gem-c-metadata__term"><%= t("components.metadata.from"
|
21
|
+
<dt class="gem-c-metadata__term"><%= t("components.metadata.from") %>:</dt>
|
22
22
|
<dd class="gem-c-metadata__definition">
|
23
23
|
<%= render 'govuk_publishing_components/components/metadata/sentence', items: from, toggle_id: "from-#{SecureRandom.hex(4)}" %>
|
24
24
|
</dd>
|
25
25
|
<% end %>
|
26
26
|
<% if part_of.any? %>
|
27
|
-
<dt class="gem-c-metadata__term"><%= t("components.metadata.part_of"
|
27
|
+
<dt class="gem-c-metadata__term"><%= t("components.metadata.part_of") %>:</dt>
|
28
28
|
<dd class="gem-c-metadata__definition">
|
29
29
|
<%= render 'govuk_publishing_components/components/metadata/sentence', items: part_of, toggle_id: "part-of-#{SecureRandom.hex(4)}" %>
|
30
30
|
</dd>
|
31
31
|
<% end %>
|
32
32
|
<% if local_assigns.include?(:history) %>
|
33
|
-
<dt class="gem-c-metadata__term"><%= t("components.metadata.history"
|
33
|
+
<dt class="gem-c-metadata__term"><%= t("components.metadata.history") %>:</dt>
|
34
34
|
<dd class="gem-c-metadata__definition"><%= history %></dd>
|
35
35
|
<% end %>
|
36
36
|
<% if local_assigns.include?(:first_published) && first_published %>
|
37
|
-
<dt class="gem-c-metadata__term"><%= t("components.metadata.published"
|
37
|
+
<dt class="gem-c-metadata__term"><%= t("components.metadata.published") %></dt>
|
38
38
|
<dd class="gem-c-metadata__definition"><%= first_published %></dd>
|
39
39
|
<% end %>
|
40
40
|
<% if local_assigns.include?(:last_updated) && last_updated %>
|
41
|
-
<dt class="gem-c-metadata__term"><%= t("components.metadata.last_updated"
|
41
|
+
<dt class="gem-c-metadata__term"><%= t("components.metadata.last_updated") %></dt>
|
42
42
|
<dd class="gem-c-metadata__definition">
|
43
|
-
<%= last_updated
|
44
|
-
|
43
|
+
<%= last_updated %>
|
44
|
+
<% if local_assigns.include?(:see_updates_link) %>
|
45
|
+
— <a href="#history" class="gem-c-metadata__definition-link govuk-!-display-none-print"
|
45
46
|
data-track-category="content-history"
|
46
47
|
data-track-action="see-all-updates-link-clicked"
|
47
48
|
data-track-label="history">
|
48
|
-
<%= t("components.metadata.see_all_updates"
|
49
|
+
<%= t("components.metadata.see_all_updates") %>
|
49
50
|
</a>
|
50
51
|
<% end %>
|
51
52
|
</dd>
|
@@ -18,6 +18,6 @@
|
|
18
18
|
</svg>
|
19
19
|
<% end %>
|
20
20
|
<%= tag.div yield, class: "gem-c-modal-dialogue__content" %>
|
21
|
-
<%= tag.button "×", class: "gem-c-modal-dialogue__close-button", aria: { label: "
|
21
|
+
<%= tag.button "×", class: "gem-c-modal-dialogue__close-button", aria: { label: t("components.modal_dialogue.close_modal") } %>
|
22
22
|
<% end %>
|
23
23
|
<% end %>
|
@@ -4,10 +4,6 @@ phase ||= nil
|
|
4
4
|
message ||= nil
|
5
5
|
inverse ||= false
|
6
6
|
|
7
|
-
unless phase.in?(%w[alpha beta])
|
8
|
-
raise ArgumentError, "The phase banner component expects a `phase` (`beta` or `alpha`), #{phase.inspect} given"
|
9
|
-
end
|
10
|
-
|
11
7
|
unless message.present?
|
12
8
|
if phase == "beta"
|
13
9
|
message = raw("This part of GOV.UK is being rebuilt – <a class=\"govuk-link\" href=\"/help/beta\">find out what beta means</a>")
|
@@ -23,7 +19,7 @@ container_css_classes << "gem-c-phase-banner--inverse" if inverse
|
|
23
19
|
<%= tag.div class: container_css_classes do %>
|
24
20
|
<%= tag.p class: "govuk-phase-banner__content" do %>
|
25
21
|
<%= tag.strong app_name, class: "govuk-phase-banner__content__app-name" if app_name %>
|
26
|
-
<%= tag.strong phase, class: "govuk-tag govuk-phase-banner__content__tag" %>
|
22
|
+
<%= tag.strong phase, class: "govuk-tag govuk-phase-banner__content__tag" if phase %>
|
27
23
|
<%= tag.span message, class: "govuk-phase-banner__text" if message %>
|
28
24
|
<% end %>
|
29
25
|
<% end %>
|
data/app/views/govuk_publishing_components/components/_previous_and_next_navigation.html.erb
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
<nav
|
3
3
|
class="gem-c-pagination"
|
4
4
|
role="navigation"
|
5
|
-
aria-label="<%= t("components.previous_and_next_navigation.pagination"
|
5
|
+
aria-label="<%= t("components.previous_and_next_navigation.pagination") %>"
|
6
6
|
>
|
7
7
|
<ul class="gem-c-pagination__list" data-module="gem-track-click">
|
8
8
|
<% if local_assigns.include?(:previous_page) %>
|
@@ -13,7 +13,7 @@
|
|
13
13
|
margin_bottom: margin_bottom
|
14
14
|
})
|
15
15
|
|
16
|
-
wrapper_classes = %w(gem-c-print-link)
|
16
|
+
wrapper_classes = %w(gem-c-print-link govuk-!-display-none-print)
|
17
17
|
wrapper_classes << "gem-c-print-link--show-without-js" unless require_js
|
18
18
|
wrapper_classes << (shared_helper.get_margin_top)
|
19
19
|
wrapper_classes << (shared_helper.get_margin_bottom)
|
@@ -11,6 +11,9 @@
|
|
11
11
|
small ||= false
|
12
12
|
inline ||= false
|
13
13
|
is_page_heading ||= false
|
14
|
+
heading_level = is_page_heading ? 'h1' : shared_helper.get_heading_level
|
15
|
+
heading_classes = %w(govuk-fieldset__heading)
|
16
|
+
heading_classes << "gem-c-radio__heading-text" if heading_level == 'h1'
|
14
17
|
|
15
18
|
if ['s', 'm', 'l', 'xl'].include?(heading_size)
|
16
19
|
size = heading_size
|
@@ -46,20 +49,12 @@
|
|
46
49
|
%>
|
47
50
|
<%= tag.div id: id, class: form_group_css_classes do %>
|
48
51
|
<%= tag.fieldset class: "govuk-fieldset", "aria-describedby": aria do %>
|
49
|
-
|
50
52
|
<% if heading.present? %>
|
51
|
-
|
52
|
-
<%= tag.
|
53
|
-
|
54
|
-
<%= tag.h1 heading, class: "gem-c-radio__heading-text govuk-fieldset__heading" %>
|
55
|
-
<% end %>
|
56
|
-
<% else %>
|
57
|
-
<%= tag.legend class: legend_classes do %>
|
58
|
-
<%= content_tag(shared_helper.get_heading_level, heading, class: "govuk-fieldset__heading") %>
|
59
|
-
<% end %>
|
53
|
+
<%= tag.legend class: legend_classes do %>
|
54
|
+
<%= tag.span(heading_caption, class: "govuk-caption-#{size}") if heading_caption.present? %>
|
55
|
+
<%= content_tag(heading_level, heading, class: heading_classes) %>
|
60
56
|
<% end %>
|
61
57
|
<% end %>
|
62
|
-
|
63
58
|
<% if description.present? %>
|
64
59
|
<%= tag.div description, class: "govuk-body" %>
|
65
60
|
<% end %>
|
@@ -10,7 +10,7 @@
|
|
10
10
|
size ||= ""
|
11
11
|
value ||= ""
|
12
12
|
|
13
|
-
classes = %w[gem-c-search]
|
13
|
+
classes = %w[gem-c-search govuk-!-display-none-print]
|
14
14
|
classes << (shared_helper.get_margin_top)
|
15
15
|
classes << (shared_helper.get_margin_bottom) if local_assigns[:margin_bottom]
|
16
16
|
classes << "gem-c-search--large" if size == "large"
|
@@ -8,7 +8,7 @@
|
|
8
8
|
brand ||= false
|
9
9
|
brand_helper = GovukPublishingComponents::AppHelpers::BrandHelper.new(brand)
|
10
10
|
|
11
|
-
classes = %w(gem-c-share-links)
|
11
|
+
classes = %w(gem-c-share-links govuk-!-display-none-print)
|
12
12
|
classes << "gem-c-share-links--stacked" if stacked
|
13
13
|
classes << "gem-c-share-links--columns" if columns
|
14
14
|
classes << brand_helper.brand_class
|
@@ -19,13 +19,13 @@
|
|
19
19
|
<% if steps %>
|
20
20
|
<div
|
21
21
|
data-module="gemstepnav"
|
22
|
-
class="gem-c-step-nav js-hidden <% unless small %>gem-c-step-nav--large<% end %>"
|
22
|
+
class="gem-c-step-nav js-hidden <% if small %>govuk-!-display-none-print<% end %> <% unless small %>gem-c-step-nav--large<% end %>"
|
23
23
|
<%= "data-remember" if remember_last_step %>
|
24
24
|
<%= "data-id=#{tracking_id}" if tracking_id %>
|
25
|
-
data-show-text="<%= t("components.step_by_step_nav.show"
|
26
|
-
data-hide-text="<%= t("components.step_by_step_nav.hide"
|
27
|
-
data-show-all-text="<%= t("components.step_by_step_nav.show_all"
|
28
|
-
data-hide-all-text="<%= t("components.step_by_step_nav.hide_all"
|
25
|
+
data-show-text="<%= t("components.step_by_step_nav.show") %>"
|
26
|
+
data-hide-text="<%= t("components.step_by_step_nav.hide") %>"
|
27
|
+
data-show-all-text="<%= t("components.step_by_step_nav.show_all") %>"
|
28
|
+
data-hide-all-text="<%= t("components.step_by_step_nav.hide_all") %>"
|
29
29
|
>
|
30
30
|
<ol class="gem-c-step-nav__steps">
|
31
31
|
<% steps.each_with_index do |step, step_index| %>
|
@@ -56,7 +56,7 @@
|
|
56
56
|
<%= logic %>
|
57
57
|
<% else %>
|
58
58
|
<% step_number += 1 %>
|
59
|
-
<span class="gem-c-step-nav__circle-step-label visuallyhidden">Step</span> <%= step_number %><span class="gem-c-step-nav__circle-step-colon visuallyhidden" aria-hidden="true">:</span>
|
59
|
+
<span class="gem-c-step-nav__circle-step-label govuk-!-display-none-print visuallyhidden">Step</span> <%= step_number %><span class="gem-c-step-nav__circle-step-colon govuk-!-display-none-print visuallyhidden" aria-hidden="true">:</span>
|
60
60
|
<% end %>
|
61
61
|
</span>
|
62
62
|
</span>
|
@@ -8,7 +8,7 @@
|
|
8
8
|
local_assigns[:margin_bottom] ||= 0
|
9
9
|
local_assigns[:margin_bottom] = 0 if local_assigns[:margin_bottom] > 9
|
10
10
|
|
11
|
-
css_classes = %w( gem-c-subscription-links )
|
11
|
+
css_classes = %w( gem-c-subscription-links govuk-!-display-none-print )
|
12
12
|
css_classes << (shared_helper.get_margin_bottom) unless local_assigns[:margin_bottom] == 0
|
13
13
|
css_classes << brand_helper.brand_class
|
14
14
|
css_classes << "gem-c-subscription-links--with-feed-box" if sl_helper.feed_link_box_value
|
@@ -23,7 +23,7 @@
|
|
23
23
|
<% if sl_helper.component_data_is_valid? %>
|
24
24
|
<%= tag.section class: css_classes, data: data do %>
|
25
25
|
<% unless hide_heading %>
|
26
|
-
<h2 class="gem-c-subscription-links__hidden-header visuallyhidden"><%= t("components.subscription_links.subscriptions"
|
26
|
+
<h2 class="gem-c-subscription-links__hidden-header visuallyhidden"><%= t("components.subscription_links.subscriptions") %></h2>
|
27
27
|
<% end %>
|
28
28
|
<ul
|
29
29
|
class="gem-c-subscription-links__list<%= ' gem-c-subscription-links__list--small' if local_assigns[:small_form] == true %>"
|
@@ -70,7 +70,7 @@
|
|
70
70
|
<div lang="en">
|
71
71
|
<%= render "govuk_publishing_components/components/input", {
|
72
72
|
label: {
|
73
|
-
text: "
|
73
|
+
text: t("components.subscription_links.feed_link_label"),
|
74
74
|
},
|
75
75
|
name: "feed-reader-box",
|
76
76
|
value: feed_link_box_value
|
@@ -13,7 +13,7 @@
|
|
13
13
|
module: "initial-focus",
|
14
14
|
} do %>
|
15
15
|
<div class="govuk-notification-banner__header">
|
16
|
-
<%= tag.h2 t("components.success_alert.success"
|
16
|
+
<%= tag.h2 t("components.success_alert.success"), class: "govuk-notification-banner__title", id: title_id %>
|
17
17
|
</div>
|
18
18
|
<div class="govuk-notification-banner__content">
|
19
19
|
<% if description.present? %>
|
@@ -5,7 +5,7 @@
|
|
5
5
|
%>
|
6
6
|
<% if translation_helper.has_translations? %>
|
7
7
|
<nav role="navigation"
|
8
|
-
class="gem-c-translation-nav <%= translation_helper.classes %> <%= brand_helper.brand_class %>"
|
8
|
+
class="gem-c-translation-nav govuk-!-display-none-print <%= translation_helper.classes %> <%= brand_helper.brand_class %>"
|
9
9
|
aria-label="<%= t("common.translations") %>"
|
10
10
|
<%= "data-module=\"gem-track-click\"" if translation_helper.tracking_is_present? %>
|
11
11
|
>
|
@@ -2,6 +2,8 @@ name: Feedback
|
|
2
2
|
description: Invites user feedback on the current page.
|
3
3
|
body: |
|
4
4
|
This component is designed to sit at the bottom of pages on GOV.UK to allow users to submit feedback on that page.
|
5
|
+
|
6
|
+
This component uses JavaScript for expanding and collapsing and also for submitting form responses. This code is not compatible with Internet Explorer, so IE11 and down do not use JavaScript to submit the forms, instead falling back to a normal form submission.
|
5
7
|
accessibility_criteria: |
|
6
8
|
Form elements in the component must:
|
7
9
|
|
@@ -1,6 +1,6 @@
|
|
1
|
-
name: Phase
|
1
|
+
name: Phase banner
|
2
2
|
description: |
|
3
|
-
A banner that indicates content is in a alpha or beta
|
3
|
+
A banner that indicates content is in a certain phase (usually alpha or beta), with an optional explanation
|
4
4
|
accessibility_criteria: |
|
5
5
|
The label must:
|
6
6
|
|
@@ -10,7 +10,7 @@
|
|
10
10
|
data-track-action="GOV.UK Close Form"
|
11
11
|
aria-controls="something-is-wrong"
|
12
12
|
aria-expanded="true">
|
13
|
-
<%= t("components.feedback.close"
|
13
|
+
<%= t("components.feedback.close") %>
|
14
14
|
</button>
|
15
15
|
|
16
16
|
<div class="govuk-grid-row">
|
@@ -19,12 +19,12 @@
|
|
19
19
|
|
20
20
|
<input type="hidden" name="url" value="<%= url_without_pii %>">
|
21
21
|
|
22
|
-
<h3 class="gem-c-feedback__form-heading"><%= t("components.feedback.help_us_improve_govuk"
|
23
|
-
<p id="feedback_explanation" class="gem-c-feedback__form-paragraph"><%= t("components.feedback.dont_include_personal_info"
|
22
|
+
<h3 class="gem-c-feedback__form-heading"><%= t("components.feedback.help_us_improve_govuk") %></h3>
|
23
|
+
<p id="feedback_explanation" class="gem-c-feedback__form-paragraph"><%= t("components.feedback.dont_include_personal_info") %></p>
|
24
24
|
|
25
25
|
<%= render "govuk_publishing_components/components/input", {
|
26
26
|
label: {
|
27
|
-
text: t("components.feedback.what_doing"
|
27
|
+
text: t("components.feedback.what_doing")
|
28
28
|
},
|
29
29
|
name: "what_doing",
|
30
30
|
describedby: "feedback_explanation"
|
@@ -32,13 +32,13 @@
|
|
32
32
|
|
33
33
|
<%= render "govuk_publishing_components/components/input", {
|
34
34
|
label: {
|
35
|
-
text: t("components.feedback.what_wrong"
|
35
|
+
text: t("components.feedback.what_wrong")
|
36
36
|
},
|
37
37
|
name: "what_wrong"
|
38
38
|
} %>
|
39
39
|
|
40
40
|
<%= render "govuk_publishing_components/components/button", {
|
41
|
-
text: t("components.feedback.send"
|
41
|
+
text: t("components.feedback.send")
|
42
42
|
} %>
|
43
43
|
</div>
|
44
44
|
</div>
|
@@ -10,7 +10,7 @@
|
|
10
10
|
data-track-action="ffFormClose"
|
11
11
|
aria-controls="page-is-not-useful"
|
12
12
|
aria-expanded="true">
|
13
|
-
<%= t("components.feedback.close"
|
13
|
+
<%= t("components.feedback.close") %>
|
14
14
|
</button>
|
15
15
|
|
16
16
|
<div class="govuk-grid-row">
|
@@ -20,12 +20,12 @@
|
|
20
20
|
<input name="email_survey_signup[survey_id]" type="hidden" value="footer_satisfaction_survey">
|
21
21
|
<input name="email_survey_signup[survey_source]" type="hidden" value="<%= path_without_pii %>">
|
22
22
|
|
23
|
-
<h3 class="gem-c-feedback__form-heading"><%= t("components.feedback.help_us_improve_govuk"
|
24
|
-
<p id="survey_explanation" class="gem-c-feedback__form-paragraph"><%= t("components.feedback.more_about_visit"
|
23
|
+
<h3 class="gem-c-feedback__form-heading"><%= t("components.feedback.help_us_improve_govuk") %></h3>
|
24
|
+
<p id="survey_explanation" class="gem-c-feedback__form-paragraph"><%= t("components.feedback.more_about_visit") %></p>
|
25
25
|
|
26
26
|
<%= render "govuk_publishing_components/components/input", {
|
27
27
|
label: {
|
28
|
-
text: t("components.feedback.email_address"
|
28
|
+
text: t("components.feedback.email_address")
|
29
29
|
},
|
30
30
|
name: "email_survey_signup[email_address]",
|
31
31
|
type: "email",
|
@@ -34,7 +34,7 @@
|
|
34
34
|
} %>
|
35
35
|
|
36
36
|
<%= render "govuk_publishing_components/components/button", {
|
37
|
-
text: t("components.feedback.send_me_survey"
|
37
|
+
text: t("components.feedback.send_me_survey"),
|
38
38
|
} %>
|
39
39
|
</div>
|
40
40
|
</div>
|
@@ -4,31 +4,31 @@
|
|
4
4
|
|
5
5
|
<div class="gem-c-feedback__prompt gem-c-feedback__js-show js-prompt" tabindex="-1">
|
6
6
|
<div class="gem-c-feedback__prompt-questions js-prompt-questions">
|
7
|
-
<h2 class="gem-c-feedback__prompt-question"><%= t("components.feedback.is_this_page_useful"
|
7
|
+
<h2 class="gem-c-feedback__prompt-question"><%= t("components.feedback.is_this_page_useful") %></h2>
|
8
8
|
<!-- Maybe button exists only to try and capture clicks by bots -->
|
9
9
|
<button data-track-category="yesNoFeedbackForm" data-track-action="ffMaybeClick" aria-expanded="false" style="display: none" hidden="hidden" aria-hidden="true">
|
10
|
-
<%= t("components.feedback.maybe"
|
10
|
+
<%= t("components.feedback.maybe") %>
|
11
11
|
</button>
|
12
12
|
|
13
13
|
<ul class="gem-c-feedback__option-list">
|
14
14
|
<li class="gem-c-feedback__option-list-item">
|
15
15
|
<button class="govuk-button gem-c-feedback__prompt-link js-page-is-useful" data-track-category="yesNoFeedbackForm" data-track-action="ffYesClick">
|
16
|
-
<%= t("components.feedback.yes"
|
16
|
+
<%= t("components.feedback.yes") %> <span class="govuk-visually-hidden"><%= t("components.feedback.is_useful") %></span>
|
17
17
|
</button>
|
18
18
|
</li>
|
19
19
|
<li class="gem-c-feedback__option-list-item">
|
20
20
|
<button class="govuk-button gem-c-feedback__prompt-link js-toggle-form js-page-is-not-useful" data-track-category="yesNoFeedbackForm" data-track-action="ffNoClick" aria-controls="page-is-not-useful" aria-expanded="false">
|
21
|
-
<%= t("components.feedback.no"
|
21
|
+
<%= t("components.feedback.no") %> <span class="govuk-visually-hidden"><%= t("components.feedback.is_not_useful") %></span>
|
22
22
|
</button>
|
23
23
|
</li>
|
24
24
|
</ul>
|
25
25
|
</div>
|
26
26
|
<div class="gem-c-feedback__prompt-questions gem-c-feedback__prompt-success js-prompt-success js-hidden" role="alert">
|
27
|
-
<%= t("components.feedback.thank_you_for_feedback"
|
27
|
+
<%= t("components.feedback.thank_you_for_feedback") %>
|
28
28
|
</div>
|
29
29
|
<div class="gem-c-feedback__prompt-questions gem-c-feedback__prompt-questions--something-is-wrong js-prompt-questions">
|
30
30
|
<button class="govuk-button gem-c-feedback__prompt-link js-toggle-form js-something-is-wrong" data-track-category="Onsite Feedback" data-track-action="GOV-UK Open Form" aria-controls="something-is-wrong" aria-expanded="false">
|
31
|
-
<%= t("components.feedback.something_wrong"
|
31
|
+
<%= t("components.feedback.something_wrong") %>
|
32
32
|
</button>
|
33
33
|
</div>
|
34
34
|
</div>
|
data/app/views/govuk_publishing_components/components/layout_header/_navigation_items.html.erb
CHANGED
@@ -4,7 +4,7 @@
|
|
4
4
|
<button
|
5
5
|
aria-controls="navigation"
|
6
6
|
aria-label="Show or hide Top Level Navigation"
|
7
|
-
class="govuk-header__menu-button govuk-js-header-toggle gem-c-header__menu-button"
|
7
|
+
class="govuk-header__menu-button govuk-js-header-toggle gem-c-header__menu-button govuk-!-display-none-print"
|
8
8
|
type="button"
|
9
9
|
>
|
10
10
|
<%= t("components.layout_header.menu") %>
|
@@ -8,13 +8,13 @@
|
|
8
8
|
%>
|
9
9
|
<% if remaining.any? %>
|
10
10
|
<%= items.to_sentence(last_word_connector: ', ').html_safe %>
|
11
|
-
<div class="gem-c-metadata__toggle-wrap">
|
11
|
+
<div class="gem-c-metadata__toggle-wrap govuk-!-display-none-print">
|
12
12
|
<a href="#"
|
13
|
-
class="gem-c-metadata__definition-link"
|
13
|
+
class="gem-c-metadata__definition-link govuk-!-display-none-print"
|
14
14
|
data-controls="toggle-<%= toggle_id %>"
|
15
15
|
data-expanded="false"
|
16
|
-
data-toggled-text="<%= t("components.metadata.toggle_less"
|
17
|
-
<%= t("components.metadata.toggle_more", number: remaining.length
|
16
|
+
data-toggled-text="<%= t("components.metadata.toggle_less") %>">
|
17
|
+
<%= t("components.metadata.toggle_more", number: remaining.length) %>
|
18
18
|
</a>
|
19
19
|
</div>
|
20
20
|
<span id="toggle-<%= toggle_id %>" class="gem-c-metadata__toggle-items js-hidden"><%= remaining.to_sentence.html_safe %></span>
|
@@ -54,7 +54,7 @@
|
|
54
54
|
class="gem-c-related-navigation__toggle"
|
55
55
|
data-controls="toggle_<%= section_title %>"
|
56
56
|
data-expanded="false"
|
57
|
-
data-toggled-text="<%= t("components.metadata.toggle_less"
|
57
|
+
data-toggled-text="<%= t("components.metadata.toggle_less") %>">
|
58
58
|
<%= t("components.metadata.toggle_more",
|
59
59
|
number: related_nav_helper.remaining_link_count(links),
|
60
60
|
default: "+ #{related_nav_helper.remaining_link_count(links)} more") %>
|
data/config/locales/ar.yml
CHANGED
@@ -1 +1,154 @@
|
|
1
|
+
---
|
1
2
|
ar:
|
3
|
+
common:
|
4
|
+
translations:
|
5
|
+
components:
|
6
|
+
accordion:
|
7
|
+
hide:
|
8
|
+
hide_all:
|
9
|
+
show:
|
10
|
+
show_all:
|
11
|
+
this_section_visually_hidden:
|
12
|
+
article_schema:
|
13
|
+
scoped_search_description:
|
14
|
+
attachment:
|
15
|
+
opendocument_html:
|
16
|
+
order_a_copy:
|
17
|
+
page:
|
18
|
+
one:
|
19
|
+
other:
|
20
|
+
reference:
|
21
|
+
request_format_cta:
|
22
|
+
request_format_details_html:
|
23
|
+
request_format_text:
|
24
|
+
back_link:
|
25
|
+
back:
|
26
|
+
character_count:
|
27
|
+
body:
|
28
|
+
type:
|
29
|
+
characters:
|
30
|
+
words:
|
31
|
+
checkboxes:
|
32
|
+
or:
|
33
|
+
contents_list:
|
34
|
+
contents:
|
35
|
+
contextual_sidebar:
|
36
|
+
pretitle:
|
37
|
+
cookie_banner:
|
38
|
+
buttons:
|
39
|
+
accept_cookies:
|
40
|
+
reject_cookies:
|
41
|
+
confirmation_message:
|
42
|
+
confirmation_message_link:
|
43
|
+
hide:
|
44
|
+
text:
|
45
|
+
title:
|
46
|
+
feedback:
|
47
|
+
close:
|
48
|
+
dont_include_personal_info:
|
49
|
+
email_address:
|
50
|
+
help_us_improve_govuk:
|
51
|
+
is_not_useful:
|
52
|
+
is_this_page_useful:
|
53
|
+
is_useful:
|
54
|
+
maybe:
|
55
|
+
more_about_visit:
|
56
|
+
'no':
|
57
|
+
send:
|
58
|
+
send_me_survey:
|
59
|
+
something_wrong:
|
60
|
+
thank_you_for_feedback:
|
61
|
+
what_doing:
|
62
|
+
what_wrong:
|
63
|
+
'yes':
|
64
|
+
government_navigation:
|
65
|
+
consultations:
|
66
|
+
departments:
|
67
|
+
get-involved:
|
68
|
+
how-government-works:
|
69
|
+
news_and_communications:
|
70
|
+
statistics:
|
71
|
+
worldwide:
|
72
|
+
layout_footer:
|
73
|
+
copyright_html:
|
74
|
+
licence_html:
|
75
|
+
support_links:
|
76
|
+
layout_header:
|
77
|
+
hide_button:
|
78
|
+
menu:
|
79
|
+
search_button:
|
80
|
+
show_button:
|
81
|
+
top_level:
|
82
|
+
metadata:
|
83
|
+
from:
|
84
|
+
history:
|
85
|
+
last_updated:
|
86
|
+
part_of:
|
87
|
+
published:
|
88
|
+
see_all_updates:
|
89
|
+
toggle_less:
|
90
|
+
toggle_more:
|
91
|
+
modal_dialogue:
|
92
|
+
close_modal:
|
93
|
+
organisation_schema:
|
94
|
+
all_content_search_description:
|
95
|
+
previous_and_next_navigation:
|
96
|
+
pagination:
|
97
|
+
print_link:
|
98
|
+
text:
|
99
|
+
radio:
|
100
|
+
or:
|
101
|
+
related_footer_navigation:
|
102
|
+
collections:
|
103
|
+
policies:
|
104
|
+
statistical_data_sets:
|
105
|
+
topical_events:
|
106
|
+
related_navigation:
|
107
|
+
collections:
|
108
|
+
external_links:
|
109
|
+
policies:
|
110
|
+
publishers:
|
111
|
+
related_contacts:
|
112
|
+
related_content:
|
113
|
+
related_external_links:
|
114
|
+
related_guides:
|
115
|
+
statistical_data_sets:
|
116
|
+
topical_events:
|
117
|
+
topics:
|
118
|
+
transition:
|
119
|
+
link_path:
|
120
|
+
link_text:
|
121
|
+
title:
|
122
|
+
world_locations:
|
123
|
+
search_box:
|
124
|
+
input_title:
|
125
|
+
label:
|
126
|
+
search_button:
|
127
|
+
show_password:
|
128
|
+
announce_hide:
|
129
|
+
announce_show:
|
130
|
+
hide:
|
131
|
+
hide_password:
|
132
|
+
show:
|
133
|
+
show_password:
|
134
|
+
skip_link:
|
135
|
+
text:
|
136
|
+
step_by_step_nav:
|
137
|
+
hide:
|
138
|
+
hide_all:
|
139
|
+
show:
|
140
|
+
show_all:
|
141
|
+
step_by_step_nav_related:
|
142
|
+
part_of:
|
143
|
+
subscription_links:
|
144
|
+
email_signup_link_text:
|
145
|
+
feed_link_label:
|
146
|
+
feed_link_text:
|
147
|
+
subscriptions:
|
148
|
+
success_alert:
|
149
|
+
success:
|
150
|
+
summary_list:
|
151
|
+
delete:
|
152
|
+
edit:
|
153
|
+
tabs:
|
154
|
+
contents:
|