govuk_publishing_components 28.1.0 → 28.2.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 2a90a944a517c66a97121936cc0fee97cf36ba037cbefc30579881313d0f9418
4
- data.tar.gz: 526baf44347165d08e819351c05660ebb3cb7e54267ce1ae5c220898158d2660
3
+ metadata.gz: '0989b4b0c9bafbc71f0347de67fb337acee0cfb13da092fae2be8c6c35122d32'
4
+ data.tar.gz: e56b816c73f788ca8bfd9383fe39db912a84f5a14b141bb258cd7e7fcc526919
5
5
  SHA512:
6
- metadata.gz: a23d9dac1fbfa5880ae7e7011f53f1f636a2cfbc1cd09820644a21dff75722846165dcb2774fdedfd652f5292280059fe186be788094ed34cd218ed989644bc9
7
- data.tar.gz: 2c4508df86a087ba7c07e041cbcda0bd6119ea9585e3db24a31a0f6de152ad753ad99bb0e418498903eef6948d220d0d2fba40981ca1b78a66d46d65b3b3865c
6
+ metadata.gz: 384f96c451155a016bbfea69596892e4ed287afa095a0780570d07842c62498f3de4890819e1d87e173a856178e74d34e3f6561562aa8b5e9e2fe7a5974a2380
7
+ data.tar.gz: b8e6166d94e9536640edca9e877f8bec63429596dfe7c563f2521b2254b4acbcadd7decf26ffbc64ca28b14a8a5bd2b02d8fb7ceba35a2d523c3c65641b8d3fb
@@ -141,9 +141,9 @@
141
141
  }
142
142
  }
143
143
 
144
- .gem-c-feedback__option-list-item:first-child {
144
+ .gem-c-feedback__option-list-item:last-child {
145
145
  @include govuk-media-query($from: mobile) {
146
- margin-right: govuk-spacing(4);
146
+ margin-left: govuk-spacing(4);
147
147
  }
148
148
  }
149
149
 
@@ -1,18 +1,24 @@
1
1
  <%
2
+ shared_helper = GovukPublishingComponents::Presenters::SharedHelper.new(local_assigns)
3
+
2
4
  number ||= nil
3
5
  label ||= nil
4
6
  href ||= nil
5
7
  data_attributes ||= nil
6
8
  aria ||= nil
7
- classes = ["gem-c-big-number__value"]
9
+ classes = ["gem-c-big-number"]
10
+ classes << shared_helper.get_margin_bottom
11
+
12
+ value_classes = ["gem-c-big-number__value"]
8
13
 
9
14
  if label.nil? && href
10
- classes << "gem-c-big-number__value--decorated"
15
+ value_classes << "gem-c-big-number__value--decorated"
11
16
  end
17
+
12
18
  %>
13
19
  <% if number %>
14
20
  <% big_number_value = capture do %>
15
- <%= tag.span class: classes, data: href ? nil : data_attributes do %>
21
+ <%= tag.span class: value_classes, data: href ? nil : data_attributes do %>
16
22
  <%= number %>
17
23
  <% end %>
18
24
 
@@ -25,7 +31,7 @@
25
31
  <% end %>
26
32
  <% end %>
27
33
 
28
- <%= tag.div class: "gem-c-big-number", aria: aria do %>
34
+ <%= tag.div class: classes, aria: aria do %>
29
35
  <% unless href.nil? %>
30
36
  <%= link_to big_number_value, href, class: "govuk-link gem-c-big-number__link", data: data_attributes %>
31
37
  <% else %>
@@ -44,7 +44,7 @@
44
44
  <dd class="gem-c-metadata__definition">
45
45
  <%= last_updated %>
46
46
  <% if local_assigns.include?(:see_updates_link) %>
47
- &#8212; <a href="#history" class="gem-c-metadata__definition-link govuk-!-display-none-print js-see-all-updates-link"
47
+ &#8212; <a href="#full-publication-update-history" class="gem-c-metadata__definition-link govuk-!-display-none-print js-see-all-updates-link"
48
48
  data-track-category="content-history"
49
49
  data-track-action="see-all-updates-link-clicked"
50
50
  data-track-label="history">
@@ -61,3 +61,9 @@ examples:
61
61
  label: Ministerial departments
62
62
  aria:
63
63
  hidden: true
64
+ with_bottom_margin:
65
+ description: The component accepts a number for margin bottom from 0 to 9 (0px to 60px) using the [GOV.UK Frontend spacing scale](https://design-system.service.gov.uk/styles/spacing/#the-responsive-spacing-scale). The default big number margin bottom is 15px (govuk spacing 3).
66
+ data:
67
+ number: 119
68
+ label: Open consultations
69
+ margin_bottom: 9
@@ -5,12 +5,14 @@
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" hidden>
7
7
  <h2 class="gem-c-feedback__prompt-question"><%= t("components.feedback.is_this_page_useful") %></h2>
8
- <!-- Maybe button exists only to try and capture clicks by bots -->
9
- <button data-track-category="yesNoFeedbackForm" data-track-action="ffMaybeClick" aria-expanded="false" hidden>
10
- <%= t("components.feedback.maybe") %>
11
- </button>
12
8
 
13
9
  <ul class="gem-c-feedback__option-list">
10
+ <li class="gem-c-feedback__option-list-item" style="display: none" hidden="hidden">
11
+ <!-- Maybe button exists only to try and capture clicks by bots -->
12
+ <button data-track-category="yesNoFeedbackForm" data-track-action="ffMaybeClick" aria-expanded="false" style="display: none" hidden="hidden" aria-hidden="true">
13
+ <%= t("components.feedback.maybe") %>
14
+ </button>
15
+ </li>
14
16
  <li class="gem-c-feedback__option-list-item">
15
17
  <button class="govuk-button gem-c-feedback__prompt-link js-page-is-useful" data-track-category="yesNoFeedbackForm" data-track-action="ffYesClick">
16
18
  <%= t("components.feedback.yes") %> <span class="govuk-visually-hidden"><%= t("components.feedback.is_useful") %></span>
@@ -1,3 +1,3 @@
1
1
  module GovukPublishingComponents
2
- VERSION = "28.1.0".freeze
2
+ VERSION = "28.2.0".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: 28.1.0
4
+ version: 28.2.0
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: 2022-01-10 00:00:00.000000000 Z
11
+ date: 2022-01-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: govuk_app_config