govuk_publishing_components 45.5.0 → 45.6.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/stylesheets/govuk_publishing_components/components/_chat-entry.scss +6 -0
- data/app/assets/stylesheets/govuk_publishing_components/components/_share-links.scss +4 -0
- data/app/views/govuk_publishing_components/components/_chat_entry.html.erb +2 -0
- data/app/views/govuk_publishing_components/components/docs/chat_entry.yml +4 -0
- data/lib/govuk_publishing_components/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 89d4b2cf8eb92f4e6ba16a0356376d3edf18385b255300685a3043854f8a3e79
|
4
|
+
data.tar.gz: 1ff1034efc9cc15da7d4983005147add12a8932b9412689983c6887ef69105c5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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.
|
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.
|
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-
|
11
|
+
date: 2024-11-20 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: chartkick
|