govuk_publishing_components 31.1.0 → 31.1.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/assets/javascripts/govuk_publishing_components/analytics-ga4/ga4-core.js +1 -1
- data/app/assets/javascripts/govuk_publishing_components/analytics-ga4/ga4-link-tracker.js +91 -14
- data/app/assets/javascripts/govuk_publishing_components/analytics-ga4/ga4-schemas.js +3 -1
- data/app/assets/javascripts/govuk_publishing_components/vendor/lux/lux-reporter.js +536 -481
- data/app/assets/stylesheets/component_guide/application.scss +10 -12
- data/app/views/govuk_publishing_components/component_guide/component_doc/_component.html.erb +1 -1
- data/app/views/govuk_publishing_components/components/_share_links.html.erb +2 -2
- data/lib/govuk_publishing_components/version.rb +1 -1
- metadata +3 -3
@@ -132,18 +132,6 @@ $gem-guide-border-width: 1px;
|
|
132
132
|
&.component-output {
|
133
133
|
padding: 0;
|
134
134
|
}
|
135
|
-
|
136
|
-
&:before {
|
137
|
-
@include govuk-font($size: 14);
|
138
|
-
content: attr(data-content);
|
139
|
-
position: absolute;
|
140
|
-
top: 0;
|
141
|
-
left: 0;
|
142
|
-
padding: .2105em .7894em;
|
143
|
-
background: $govuk-border-colour;
|
144
|
-
color: govuk-colour("black");
|
145
|
-
font-weight: bold;
|
146
|
-
}
|
147
135
|
}
|
148
136
|
|
149
137
|
.component-guide-preview--simple {
|
@@ -191,6 +179,16 @@ $gem-guide-border-width: 1px;
|
|
191
179
|
.selector {
|
192
180
|
font-style: italic;
|
193
181
|
}
|
182
|
+
|
183
|
+
&:before {
|
184
|
+
@include govuk-font($size: 14);
|
185
|
+
content: attr(data-content);
|
186
|
+
position: absolute;
|
187
|
+
top: 0;
|
188
|
+
left: 0;
|
189
|
+
padding: .2105em .7894em;
|
190
|
+
font-weight: bold;
|
191
|
+
}
|
194
192
|
}
|
195
193
|
|
196
194
|
.component-guide-preview--warning {
|
data/app/views/govuk_publishing_components/component_guide/component_doc/_component.html.erb
CHANGED
@@ -2,6 +2,6 @@
|
|
2
2
|
<% if example.right_to_left? %>direction-rtl<% end %>
|
3
3
|
<% if example.dark_background? %>dark-background<% end %>
|
4
4
|
<% if example.black_background? %>black-background<% end %>
|
5
|
-
<% if preview_page %>component-guide-preview--simple<% end %>"
|
5
|
+
<% if preview_page %>component-guide-preview--simple<% end %>">
|
6
6
|
<%= render "govuk_publishing_components/component_guide/component_doc/component_output", example: example, component_doc: component_doc %>
|
7
7
|
</div>
|
@@ -49,7 +49,7 @@
|
|
49
49
|
'index': index + 1,
|
50
50
|
'index_total': links.length,
|
51
51
|
'text': link[:icon],
|
52
|
-
'
|
52
|
+
'method': 'populated-via-js'
|
53
53
|
}
|
54
54
|
end
|
55
55
|
if track_as_follow
|
@@ -61,7 +61,7 @@
|
|
61
61
|
'text': link[:text],
|
62
62
|
'external': 'populated-via-js',
|
63
63
|
'url': link[:href],
|
64
|
-
'
|
64
|
+
'method': 'populated-via-js'
|
65
65
|
}
|
66
66
|
end
|
67
67
|
%>
|
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: 31.1.
|
4
|
+
version: 31.1.2
|
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-10-
|
11
|
+
date: 2022-10-18 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: govuk_app_config
|
@@ -1361,7 +1361,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
1361
1361
|
- !ruby/object:Gem::Version
|
1362
1362
|
version: '0'
|
1363
1363
|
requirements: []
|
1364
|
-
rubygems_version: 3.3.
|
1364
|
+
rubygems_version: 3.3.24
|
1365
1365
|
signing_key:
|
1366
1366
|
specification_version: 4
|
1367
1367
|
summary: A gem to document components in GOV.UK frontend applications
|