govuk_publishing_components 45.5.0 → 45.6.0

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: e4609ce45817837b00359ee2799de40d7c65d25f0e3980db4af6f2da14cae010
4
- data.tar.gz: 0b38ffa5529b9cf6ecc95ecc25fc9bb2c2929c5a036c37baace13931a919e04a
3
+ metadata.gz: 89d4b2cf8eb92f4e6ba16a0356376d3edf18385b255300685a3043854f8a3e79
4
+ data.tar.gz: 1ff1034efc9cc15da7d4983005147add12a8932b9412689983c6887ef69105c5
5
5
  SHA512:
6
- metadata.gz: ee5ecdc7c7a3bd7ef8630d383f71a646e164956e3959ca7a44df145116a7a626a6e622682a149bc24a14cce8092e8a0120ff8c53c050ceb056f403459b87e334
7
- data.tar.gz: d715613daa240e57363b618cf5bcc19b30160b03fd776b3185519a3afe05e671dfb3565d0699b97bbfb156b59dd683cc90bfc1d06c425c703094078fae6e6858
6
+ metadata.gz: 94051a6534ab5d51e9ddf779b522145b8cca591776564adabaa056f36166dc7a69669336b0187ea90440bca9ab0c8ab2c3efe16aae40ebda39d9b47fbac768e3
7
+ data.tar.gz: fa76bf3cdf74b111c3c1e9d02542bea183435be9b3db3b48e7b99b760a1c52c9b073593f5bb712dc2060ea35cebcb42b405a5fdb77aaf0f0a47657d7cd913b8a
@@ -7,6 +7,12 @@
7
7
  padding: govuk-spacing(4);
8
8
  }
9
9
 
10
+ .gem-c-chat-entry--margin-top-until-tablet {
11
+ @include govuk-media-query($until: tablet) {
12
+ margin-top: 35px;
13
+ }
14
+ }
15
+
10
16
  .gem-c-chat-entry--border-top {
11
17
  border-top: 2px solid govuk-colour("blue");
12
18
  padding-top: govuk-spacing(5);
@@ -136,6 +136,10 @@ $column-width: 9.5em;
136
136
  .gem-c-share-links__label {
137
137
  @include govuk-font(19, $weight: bold);
138
138
  }
139
+
140
+ .gem-c-share-links__link:focus {
141
+ box-shadow: 0 0 $govuk-focus-colour, 0 4px govuk-colour("black");
142
+ }
139
143
  }
140
144
 
141
145
  .gem-c-share-links--black-icons {
@@ -8,11 +8,13 @@
8
8
  border_top ||= false
9
9
  border_bottom ||= false
10
10
  disable_ga4 ||= false
11
+ margin_top_until_tablet ||= false
11
12
 
12
13
  component_helper = GovukPublishingComponents::Presenters::ComponentWrapperHelper.new(local_assigns)
13
14
  component_helper.add_class("gem-c-chat-entry")
14
15
  component_helper.add_class("gem-c-chat-entry--border-top") if border_top
15
16
  component_helper.add_class("gem-c-chat-entry--border-bottom") if border_bottom
17
+ component_helper.add_class("gem-c-chat-entry--margin-top-until-tablet") if margin_top_until_tablet
16
18
  component_helper.add_class(shared_helper.get_margin_bottom)
17
19
  component_helper.add_data_attribute({ module: "ga4-link-tracker" }) unless disable_ga4
18
20
 
@@ -34,6 +34,10 @@ examples:
34
34
  with_margin_bottom:
35
35
  data:
36
36
  margin_bottom: 3
37
+ with_margin_top_until_tablet:
38
+ description: Adds a `.gem-c-chat-entry--margin-top-until-tablet` class that applies `margin-top:35px` on smaller screen sizes (i.e. tablets and below)
39
+ data:
40
+ margin_top_until_tablet: true
37
41
  without_ga4_tracking:
38
42
  description: |
39
43
  Disables GA4 tracking on the component. Tracking is enabled by default. This adds a data module and data-attributes with JSON data. See the [ga4-link-tracker documentation](https://github.com/alphagov/govuk_publishing_components/blob/main/docs/analytics-ga4/ga4-link-tracker.md) for more information.
@@ -1,3 +1,3 @@
1
1
  module GovukPublishingComponents
2
- VERSION = "45.5.0".freeze
2
+ VERSION = "45.6.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: 45.5.0
4
+ version: 45.6.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: 2024-11-19 00:00:00.000000000 Z
11
+ date: 2024-11-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: chartkick