govuk_publishing_components 66.0.0 → 66.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: afd2178953e84d5a15285e2be745cd3f428ac47c9a62af3517a953b41cd5308b
4
- data.tar.gz: 1bdef60a52a1243f929aac0a4269ff76ff3dd24e203d5dd0d23489977354a197
3
+ metadata.gz: c3ebe9a45283274b6292dd6d30412bec57eee0ef735fa61884ba91851b829eca
4
+ data.tar.gz: 5930712affd37165c147d4cd471c30ce1cf00124f74372d32bc648766d90d1a9
5
5
  SHA512:
6
- metadata.gz: d916ca285ed6c7bd06935e7dd47d9800d803907eb24cd0220a50bc29f6fc348d54877eab54d3965d3247d61aa005be83a7a12473ba8e357e65c491d73e5aa814
7
- data.tar.gz: ee9c3c4a73d15d658a60366fd6269b1231f6bb60eda408851066529a96c2e4817f40c1a2ec9b271fc19e0a10d6a45b65f552ba6dbed7a6b654255b318a232728
6
+ metadata.gz: 55442932e49ee57b46b34a5969feccb32fc41e9089925921acf75031db0a1258a44831c33346a47978fcd95857f5b087c4ebbb9f6c1065411eb479347d9467b2
7
+ data.tar.gz: 8c61ae0535f3f89745a3dd52ffcb09a6f95316b1314f4487c78e39e6931d15f84ecdb1e0c9a877cc9e554287014d57cb0f42166a7d6732dc54d3643035ef7ff6
@@ -126,13 +126,13 @@
126
126
  } else if (elem.checked) {
127
127
  var fieldset = elem.closest('fieldset') || null
128
128
 
129
- if (fieldset.dataset.ga4Redact && !elem.dataset.ga4RedactPermit) {
130
- input.answer = '[REDACTED]'
131
- } else {
132
- input.answer = labelText
133
- }
134
-
135
129
  if (fieldset) {
130
+ if (fieldset.dataset.ga4Redact && !elem.dataset.ga4RedactPermit) {
131
+ input.answer = '[REDACTED]'
132
+ } else {
133
+ input.answer = labelText
134
+ }
135
+
136
136
  var legend = fieldset.querySelector('legend')
137
137
 
138
138
  if (legend) {
@@ -54,7 +54,6 @@
54
54
 
55
55
  if (name === 'usage' && !value) {
56
56
  window.GOVUK.stopSendingAnalytics = true
57
- window.GOVUK.LUX = {}
58
57
  }
59
58
  }
60
59
  }
@@ -482,6 +482,13 @@ $code-delete-bg: #fadddd;
482
482
  container-name: page;
483
483
  }
484
484
 
485
+ .table-wrapper {
486
+ .govuk-table {
487
+ display: block;
488
+ overflow-x: scroll;
489
+ }
490
+ }
491
+
485
492
  @container page (width > 1040px) {
486
493
  $w: 960px;
487
494
 
@@ -493,6 +500,13 @@ $code-delete-bg: #fadddd;
493
500
  margin-right: calc(((-100cqw + $w) / 2) - 1px);
494
501
  background: #ffffff;
495
502
  padding: 15px;
503
+
504
+ .govuk-table {
505
+ width: auto;
506
+ display: table;
507
+ margin-left: auto;
508
+ margin-right: auto;
509
+ }
496
510
  }
497
511
  }
498
512
 
@@ -4,7 +4,7 @@ module GovukPublishingComponents
4
4
  applications = [
5
5
  {
6
6
  type: "public-facing",
7
- apps: %w[collections email-alert-frontend feedback finder-frontend frontend smart-answers].sort,
7
+ apps: %w[collections email-alert-frontend feedback finder-frontend frontend govuk_publishing_components smart-answers].sort,
8
8
  },
9
9
  {
10
10
  type: "publishing",
@@ -1,4 +1,5 @@
1
1
  <% content_for :title, "Applications consistency" %>
2
+ <% content_for :body_classes, "table-container" %>
2
3
 
3
4
  <%= render "govuk_publishing_components/components/back_link", {
4
5
  href: "/component-guide",
@@ -16,22 +17,24 @@
16
17
  <% end %>
17
18
 
18
19
  <div data-module="filter-list">
19
- <table class="govuk-table">
20
- <thead class="govuk-table__head">
21
- <tr class="govuk-table__row">
22
- <th scope="col" class="govuk-table__header sticky-table-header">Application</th>
23
- <th scope="col" class="govuk-table__header sticky-table-header">Type</th>
24
- <th scope="col" class="govuk-table__header sticky-table-header">Source</th>
25
- <th scope="col" class="govuk-table__header sticky-table-header">Gem version</th>
26
- <th scope="col" class="govuk-table__header sticky-table-header">Sass version</th>
27
- <th scope="col" class="govuk-table__header sticky-table-header">Ruby version</th>
28
- <th scope="col" class="govuk-table__header sticky-table-header">Yarn version</th>
29
- </tr>
30
- </thead>
31
- <tbody class="govuk-table__body">
32
- <%= render "table-content", content: @applications_output.select { |a| a[:type] == "public-facing" }, type: "Public facing" %>
33
- <%= render "table-content", content: @applications_output.select { |a| a[:type] == "publishing" }, type: "Publishing" %>
34
- <%= render "table-content", content: @applications_output.select { |a| a[:type] == "utility" }, type: "Utility" %>
35
- </tbody>
36
- </table>
20
+ <div class="table-wrapper">
21
+ <table class="govuk-table">
22
+ <thead class="govuk-table__head">
23
+ <tr class="govuk-table__row">
24
+ <th scope="col" class="govuk-table__header sticky-table-header">Application</th>
25
+ <th scope="col" class="govuk-table__header sticky-table-header">Type</th>
26
+ <th scope="col" class="govuk-table__header sticky-table-header">Source</th>
27
+ <th scope="col" class="govuk-table__header sticky-table-header">Gem version</th>
28
+ <th scope="col" class="govuk-table__header sticky-table-header">Sass version</th>
29
+ <th scope="col" class="govuk-table__header sticky-table-header">Ruby version</th>
30
+ <th scope="col" class="govuk-table__header sticky-table-header">Yarn version</th>
31
+ </tr>
32
+ </thead>
33
+ <tbody class="govuk-table__body">
34
+ <%= render "table-content", content: @applications_output.select { |a| a[:type] == "public-facing" }, type: "Public facing" %>
35
+ <%= render "table-content", content: @applications_output.select { |a| a[:type] == "publishing" }, type: "Publishing" %>
36
+ <%= render "table-content", content: @applications_output.select { |a| a[:type] == "utility" }, type: "Utility" %>
37
+ </tbody>
38
+ </table>
39
+ </div>
37
40
  </div>
@@ -107,8 +107,8 @@ module GovukPublishingComponents
107
107
  return href if step_nav_content_id.blank?
108
108
 
109
109
  uri = URI.parse(href)
110
- exisiting_query_params = uri.query.present? ? CGI.parse(uri.query) : {}
111
- new_query_params = exisiting_query_params.merge("step-by-step-nav" => step_nav_content_id)
110
+ existing_query_params = uri.query.present? ? Hash[URI.decode_www_form(uri.query)] : {}
111
+ new_query_params = existing_query_params.merge("step-by-step-nav" => step_nav_content_id)
112
112
  uri.query = new_query_params.to_query
113
113
  uri.to_s
114
114
  end
@@ -1,3 +1,3 @@
1
1
  module GovukPublishingComponents
2
- VERSION = "66.0.0".freeze
2
+ VERSION = "66.0.1".freeze
3
3
  end