govuk_publishing_components 27.9.2 → 27.10.3

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 84421d91c40a900cecce84bc40059fc02803fbdb42173e03a590dc2b26904353
4
- data.tar.gz: a23db6521a6481c233984680d2eb3c166f07b1ed321e6bf7ec6ca5e0e392b36b
3
+ metadata.gz: 657e4c5dd25ccaf9fbcb4052fb9b48033884e4ea11a67853a774d4c94ff987c9
4
+ data.tar.gz: c315a4c225848b20d8a1db997a86844fc659cf26700a2297b74caf007bc2c96e
5
5
  SHA512:
6
- metadata.gz: c4c0ea74bb2365e4bd1ee66768566f96a4655f9dcfc0e369723b79bb8814c3b9e882611c45db1853552a2407ae0ae30f38dd733e27107fdadd120916d410be23
7
- data.tar.gz: 49d57ddc1d28d67b450d1e1211195511fb93c87ed05fae9887a58c17a8617e804b8ee497978bc9a03fcb34f6fffe251795158f722e6b63398f489e0e2f1ba449
6
+ metadata.gz: dbbe3180641788a4f06261a5e5ef9a68fdae6f34a4d55d9585cf021aa22ab4ccd00b4da2afca6709eb78e06feb42896c8889e4ce8222268f37a98de565055f26
7
+ data.tar.gz: b172a6ff735e768886eac870678a6929cc5d288055756a3176b39b26255e50c6543b913728ee7bf1bc1f2333ebb9e1075b4f241cd675d98aa8e655b898776375
@@ -14,7 +14,7 @@
14
14
  // If engaged and rejected, append only ?cookie-consent=reject
15
15
  // If engaged and accepted usage, append ?_ga=clientid if available and cookie-consent=accept
16
16
 
17
- if (cookieBannerEngaged === 'false') {
17
+ if (cookieBannerEngaged !== 'true') {
18
18
  this.decorate(element, 'cookie_consent=not-engaged')
19
19
  return
20
20
  }
@@ -233,6 +233,8 @@ window.GOVUK.Modules = window.GOVUK.Modules || {};
233
233
  // The menu needs to be updated when the window is resized to make sure that
234
234
  // the space needed for the dropdown menu is correct.
235
235
  window.addEventListener('resize', this.updateStates.bind(this), { passive: true })
236
+
237
+ this.$module.classList.add('js-module-initialised')
236
238
  }
237
239
 
238
240
  Modules.SuperNavigationMegaMenu = SuperNavigationMegaMenu
@@ -157,8 +157,8 @@ $chevron-indent-spacing: 7px;
157
157
  .gem-c-layout-super-navigation-header {
158
158
  background: govuk-colour("black");
159
159
  border-top: 1px solid govuk-colour("black");
160
+ margin-top: -1px;
160
161
  position: relative;
161
- top: -1px;
162
162
 
163
163
  .lte-ie8 & {
164
164
  height: govuk-spacing(9);
@@ -225,7 +225,7 @@ $chevron-indent-spacing: 7px;
225
225
  display: inline-block;
226
226
  }
227
227
 
228
- .js-enabled & {
228
+ .js-module-initialised & {
229
229
  padding: 0 0 govuk-spacing(9) 0;
230
230
 
231
231
  @include govuk-media-query($from: "desktop") {
@@ -367,7 +367,7 @@ $chevron-indent-spacing: 7px;
367
367
  }
368
368
 
369
369
  .gem-c-layout-super-navigation-header__navigation-item-link {
370
- .js-enabled & {
370
+ .js-module-initialised & {
371
371
  margin-left: govuk-spacing(4);
372
372
  }
373
373
  }
@@ -535,7 +535,7 @@ $chevron-indent-spacing: 7px;
535
535
  padding-bottom: govuk-spacing(4);
536
536
  padding-top: govuk-spacing(4);
537
537
 
538
- .js-enabled & {
538
+ .js-module-initialised & {
539
539
  display: block;
540
540
  }
541
541
  }
@@ -856,7 +856,7 @@ $chevron-indent-spacing: 7px;
856
856
  @include govuk-media-query($from: "desktop") {
857
857
  margin: 0;
858
858
 
859
- .js-enabled & {
859
+ .js-module-initialised & {
860
860
  left: 0;
861
861
  position: absolute;
862
862
  right: 0;
@@ -1,4 +1,7 @@
1
- <% user_organisation ||= nil %>
1
+ <%
2
+ warn('DEPRECATION WARNING: admin_analytics component is deprecated and will be removed in a future major release of govuk_publishing_components')
3
+ user_organisation ||= nil
4
+ %>
2
5
 
3
6
  <script class="analytics">
4
7
  (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
@@ -1,4 +1,5 @@
1
1
  <%
2
+ warn('DEPRECATION WARNING: government_navigation component is deprecated and will be removed in a future major release of govuk_publishing_components')
2
3
  active ||= nil
3
4
  %>
4
5
 
@@ -1,4 +1,5 @@
1
1
  <%
2
+ warn('DEPRECATION WARNING: highlight_boxes component is deprecated and will be removed in a future major release of govuk_publishing_components')
2
3
  items ||= []
3
4
  inverse ||= false
4
5
  half_width ||= false
@@ -8,6 +8,7 @@
8
8
  navigation_items ||= []
9
9
  omit_feedback_form ||= false
10
10
  omit_footer_navigation ||= false
11
+ omit_footer_border ||= false
11
12
  omit_header ||= false
12
13
  product_name ||= nil
13
14
  show_explore_header ||= false
@@ -143,7 +144,7 @@
143
144
 
144
145
  <% unless local_assigns[:hide_footer_links] %>
145
146
  <%= render "govuk_publishing_components/components/layout_footer", {
146
- with_border: true,
147
+ with_border: !omit_footer_border,
147
148
  navigation: omit_footer_navigation ? nil : layout_helper.footer_navigation,
148
149
  meta: layout_helper.footer_meta,
149
150
  } %>
@@ -113,22 +113,26 @@
113
113
  track_dimension_index: "29",
114
114
  }
115
115
  } %>
116
- <% if has_children %>
117
- <button
118
- aria-controls="super-navigation-menu__section-<%= unique_id %>"
119
- aria-expanded="false"
120
- aria-label="<%= show_menu_text %>"
121
- class="gem-c-layout-super-navigation-header__navigation-second-toggle-button"
122
- data-text-for-hide="<%= hide_menu_text %>"
123
- data-text-for-show="<%= show_menu_text %>"
124
- data-toggle-desktop-group="top"
125
- data-toggle-mobile-group="second"
126
- data-tracking-key="<%= tracking_label %>"
127
- hidden
128
- id="super-navigation-menu__section-<%= unique_id %>-toggle"
129
- type="button"
130
- ><%= link[:label] %></button>
131
- </div>
116
+ <%= content_tag(:button, link[:label], {
117
+ aria: {
118
+ controls: "super-navigation-menu__section-#{unique_id}",
119
+ expanded: false,
120
+ label: show_menu_text,
121
+ },
122
+ class: "gem-c-layout-super-navigation-header__navigation-second-toggle-button",
123
+ data: {
124
+ text_for_hide: hide_menu_text,
125
+ text_for_show: show_menu_text,
126
+ toggle_desktop_group: "top",
127
+ toggle_mobile_group: "second",
128
+ tracking_key: tracking_label,
129
+ },
130
+ hidden: true,
131
+ id: "super-navigation-menu__section-#{unique_id}-toggle",
132
+ type: "button",
133
+ }) if has_children %>
134
+ </div>
135
+ <% if has_children %>
132
136
  <div
133
137
  hidden
134
138
  class="gem-c-layout-super-navigation-header__navigation-dropdown-menu"
@@ -1,4 +1,5 @@
1
1
  <%
2
+ warn('DEPRECATION WARNING: taxonomy_list component is deprecated and will be removed in a future major release of govuk_publishing_components')
2
3
  highlight_box ||= false
3
4
  document_list ||= false
4
5
  image_cards ||= false
@@ -1,15 +1,7 @@
1
1
  <div class="govuk-width-container">
2
- <% message = capture do %>
3
- <%= t("components.layout_for_public.account_layout.feedback.banners.phase_intro") %>
4
- <a class="govuk-link" href=<%= GovukPersonalisation::Urls.feedback %>>
5
- <%= t("components.layout_for_public.account_layout.feedback.banners.phase_link") %>
6
- </a>
7
- <%= t("components.layout_for_public.account_layout.feedback.banners.phase_outro") %>
8
- <% end %>
9
-
10
2
  <%= render "govuk_publishing_components/components/phase_banner", {
11
3
  phase: "beta",
12
- message: message
4
+ message: sanitize(t("components.layout_for_public.account_layout.feedback.banners.phase_banner_html"))
13
5
  } unless omit_account_phase_banner %>
14
6
 
15
7
  <div class="govuk-grid-row govuk-main-wrapper">
@@ -94,9 +94,7 @@ en:
94
94
  account_layout:
95
95
  feedback:
96
96
  banners:
97
- phase_intro: This is a new service – your
98
- phase_link: feedback
99
- phase_outro: will help us to improve it.
97
+ phase_banner_html: This is a new service – your <a class="govuk-link" href="https://signin.account.gov.uk/contact-us?supportType=PUBLIC">feedback</a> will help us to improve it.
100
98
  navigation:
101
99
  destroy_user_session: Sign out
102
100
  menu_bar:
@@ -1,3 +1,3 @@
1
1
  module GovukPublishingComponents
2
- VERSION = "27.9.2".freeze
2
+ VERSION = "27.10.3".freeze
3
3
  end
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: 27.9.2
4
+ version: 27.10.3
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: 2021-10-28 00:00:00.000000000 Z
11
+ date: 2021-11-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: govuk_app_config