govuk_publishing_components 66.7.0 → 66.7.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 +4 -4
- data/app/assets/stylesheets/govuk_publishing_components/components/_metadata.scss +5 -1
- data/app/assets/stylesheets/govuk_publishing_components/components/govspeak/_typography.scss +0 -7
- data/app/views/govuk_publishing_components/components/_metadata.html.erb +1 -1
- data/app/views/govuk_publishing_components/components/_share_links.html.erb +6 -6
- data/app/views/govuk_publishing_components/components/docs/metadata.yml +23 -0
- data/lib/govuk_publishing_components/presenters/chart_helper.rb +1 -1
- data/lib/govuk_publishing_components/version.rb +1 -1
- metadata +15 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 3c21debe9c5f5801273aca94135b4978c46c017ba2a82c099651770ad28d9678
|
|
4
|
+
data.tar.gz: 7fb5023a5531469ba4cdd77d508691293ece0bf4d1db30867c57aaf493e40ec5
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: d2a6348453a2adfa6334f7bbb930cbe331249685c0bbeb38e8657d4fcf3d9238b0ec13a7d1710d5bdda5291d38911cc1bac27a8b851d7e5df7f27c4f9eaec87c
|
|
7
|
+
data.tar.gz: 572de0591a1ddbbb7de878338959dadd24ed2b3503e3d6b936ee191088bbc9fee59aa3c38658d1a877076480a9624cf8e1b924cdba8dae35a0456394910debc5
|
|
@@ -29,6 +29,10 @@
|
|
|
29
29
|
}
|
|
30
30
|
}
|
|
31
31
|
|
|
32
|
+
.gem-c-metadata__list {
|
|
33
|
+
margin: 0;
|
|
34
|
+
}
|
|
35
|
+
|
|
32
36
|
.gem-c-metadata--inverse-padded {
|
|
33
37
|
padding: govuk-spacing(2) govuk-spacing(4);
|
|
34
38
|
|
|
@@ -40,7 +44,7 @@
|
|
|
40
44
|
margin: govuk-spacing(2) 0;
|
|
41
45
|
|
|
42
46
|
@include govuk-media-query($from: tablet) {
|
|
43
|
-
margin:
|
|
47
|
+
margin: 0;
|
|
44
48
|
}
|
|
45
49
|
}
|
|
46
50
|
}
|
|
@@ -33,13 +33,13 @@
|
|
|
33
33
|
<ul class="gem-c-share-links__list">
|
|
34
34
|
<% links.each_with_index do |link, index| %>
|
|
35
35
|
<% link_text = capture do %>
|
|
36
|
-
|
|
37
|
-
<% if link[:hidden_text] %>
|
|
38
|
-
|
|
39
|
-
<% else %>
|
|
40
|
-
Share on
|
|
36
|
+
<% if link.include?(:hidden_text) %>
|
|
37
|
+
<% if link[:hidden_text].present? %>
|
|
38
|
+
<span class="govuk-visually-hidden"><%= link[:hidden_text] %></span>
|
|
41
39
|
<% end %>
|
|
42
|
-
|
|
40
|
+
<% else %>
|
|
41
|
+
<span class="govuk-visually-hidden">Share on</span>
|
|
42
|
+
<% end %>
|
|
43
43
|
<%= link[:text] %>
|
|
44
44
|
<span class="govuk-visually-hidden">
|
|
45
45
|
<%= t("components.share_links.opens_in_new_tab") %>
|
|
@@ -354,9 +354,31 @@ examples:
|
|
|
354
354
|
see_updates_link: true
|
|
355
355
|
title: Title
|
|
356
356
|
on_a_dark_background:
|
|
357
|
+
data:
|
|
358
|
+
inverse: true
|
|
359
|
+
margin_bottom: 0
|
|
360
|
+
from: [
|
|
361
|
+
"<a href='/government/organisations/ministry-of-defence'>Ministry of Defence</a>",
|
|
362
|
+
"<a href='/government/organisations/cabinet-office'>Cabinet Office</a>",
|
|
363
|
+
"<a href=\"/government/organisations/department-for-business-energy-and-industrial-strategy\">Department for Business, Energy & Industrial Strategy</a>",
|
|
364
|
+
"<a href=\"/government/organisations/foreign-commonwealth-office\">Foreign & Commonwealth Office</a>",
|
|
365
|
+
"<a href=\"/government/people/william-hague\">The Rt Hon William Hague</a>",
|
|
366
|
+
"<a href=\"/government/organisations/department-for-environment-food-rural-affairs\">Department for Environment, Food & Rural Affairs</a>",
|
|
367
|
+
"<a href=\"/government/organisations/department-for-work-pensions\">Department for work and pensions</a>",
|
|
368
|
+
"<a href=\"/government/organisations/foreign-commonwealth-office\">Foreign and Commonwealth Office</a>"
|
|
369
|
+
]
|
|
370
|
+
first_published: 14 June 2014
|
|
371
|
+
last_updated: 10 September 2015
|
|
372
|
+
see_updates_link: true
|
|
373
|
+
other:
|
|
374
|
+
Applies to: England, Scotland, and Wales (see detailed guidance for <a href="http://www.dardni.gov.uk/news-dard-pa022-a-13-new-procedure-for" rel="external">Northern Ireland</a>)
|
|
375
|
+
context:
|
|
376
|
+
dark_background: true
|
|
377
|
+
on_a_dark_background_with_a_title:
|
|
357
378
|
data:
|
|
358
379
|
title: This is a title
|
|
359
380
|
inverse: true
|
|
381
|
+
margin_bottom: 0
|
|
360
382
|
from: [
|
|
361
383
|
"<a href='/government/organisations/ministry-of-defence'>Ministry of Defence</a>",
|
|
362
384
|
"<a href='/government/organisations/cabinet-office'>Cabinet Office</a>",
|
|
@@ -380,6 +402,7 @@ examples:
|
|
|
380
402
|
title: This is a title
|
|
381
403
|
inverse: true
|
|
382
404
|
inverse_compress: true
|
|
405
|
+
margin_bottom: 0
|
|
383
406
|
from: [
|
|
384
407
|
"<a href='/government/organisations/ministry-of-defence'>Ministry of Defence</a>",
|
|
385
408
|
"<a href='/government/organisations/cabinet-office'>Cabinet Office</a>",
|
|
@@ -30,7 +30,7 @@ module GovukPublishingComponents
|
|
|
30
30
|
# config options are here: https://developers.google.com/chart/interactive/docs/gallery/linechart
|
|
31
31
|
def chart_options
|
|
32
32
|
{
|
|
33
|
-
chartArea: { width: "
|
|
33
|
+
chartArea: { width: "auto", height: "auto" },
|
|
34
34
|
crosshair: { orientation: "vertical", trigger: "both", color: "#ccc" },
|
|
35
35
|
curveType: "none",
|
|
36
36
|
enableInteractivity: @enable_interactivity,
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: govuk_publishing_components
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 66.7.
|
|
4
|
+
version: 66.7.1
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- GOV.UK Dev
|
|
@@ -9,6 +9,20 @@ bindir: bin
|
|
|
9
9
|
cert_chain: []
|
|
10
10
|
date: 1980-01-02 00:00:00.000000000 Z
|
|
11
11
|
dependencies:
|
|
12
|
+
- !ruby/object:Gem::Dependency
|
|
13
|
+
name: chartkick
|
|
14
|
+
requirement: !ruby/object:Gem::Requirement
|
|
15
|
+
requirements:
|
|
16
|
+
- - ">="
|
|
17
|
+
- !ruby/object:Gem::Version
|
|
18
|
+
version: '0'
|
|
19
|
+
type: :runtime
|
|
20
|
+
prerelease: false
|
|
21
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
22
|
+
requirements:
|
|
23
|
+
- - ">="
|
|
24
|
+
- !ruby/object:Gem::Version
|
|
25
|
+
version: '0'
|
|
12
26
|
- !ruby/object:Gem::Dependency
|
|
13
27
|
name: govuk_app_config
|
|
14
28
|
requirement: !ruby/object:Gem::Requirement
|