govuk_publishing_components 18.3.0 → 18.3.1

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: 41819966f3acdcd91980fc9e8f51633caf134bc96333f053c0618e0f1306cd59
4
- data.tar.gz: ad4486815abaab2fab8bfb56c8bcce37fb5384a8eab21997678dadf8cbd64d15
3
+ metadata.gz: dfca54ca61c479defb7578e203d15c1464791ae49a132970eda70bf4ae501fe0
4
+ data.tar.gz: e7a762e987b91cd63311509e704b13e8b16fa778effd58ca074adc11da7a2889
5
5
  SHA512:
6
- metadata.gz: d311fd3a434bcbcda4a498279635be91c1942aefa6bbc68c7882a74e866856b173b320e809a265e936e724219e92bd32e315e8e8ff5b2608f1bac6707bc56dd3
7
- data.tar.gz: 479d44fb2d1c2a0ce945b29e74bf80feaeb49feb048821a1b73af391f6c9eacaf849b74bc07a95707dd414be9fd8201fdaac8fb4755204c468717d43a2410bf1
6
+ metadata.gz: 6432c1a580ac5e937a1e8cda7b15cc6c507728cf4d187a39f0a4479d9d351e13fb78b3330183c150792af59597b5482bae4e75ce5a9fddf70d752f5d44afe386
7
+ data.tar.gz: e30bcb45d2a69e8cebbacdd68d33345fdfccc77d0b7457a234cc36cad2a5ebdacf816c55be1382917b1e3f8729f14b96c1df5005b523d64c65016f37f98e9fbe
@@ -59,16 +59,18 @@ $share-button-height: 32px;
59
59
  }
60
60
  }
61
61
 
62
+ $column-width: 150px;
63
+
62
64
  .gem-c-share-links--columns {
63
65
  .gem-c-share-links__list {
64
66
  @include govuk-clearfix;
65
67
  display: grid;
66
- grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
68
+ grid-template-columns: repeat(auto-fit, minmax($column-width, 1fr));
67
69
  }
68
70
 
69
71
  .gem-c-share-links__list-item {
70
72
  float: left;
71
- min-width: 200px;
73
+ min-width: $column-width;
72
74
  }
73
75
 
74
76
  .gem-c-share-links__link {
@@ -93,7 +93,7 @@ examples:
93
93
  ]
94
94
  arrange_in_columns:
95
95
  description: |
96
- Share links are arranged in even columns that adjust according to the available space. Note that the column width is based on an assumed width, so if the text in the links is very long it may wrap onto a second line, which is undesirable.
96
+ Share links are arranged in even columns that adjust according to the available space. Note that the column width is based on an assumed width, so if the link text is long it may wrap (the example below demonstrates this).
97
97
 
98
98
  This option uses CSS grid, which is not fully supported in IE <= 11, so in those browsers the columns are floated.
99
99
  data:
@@ -101,12 +101,12 @@ examples:
101
101
  links: [
102
102
  {
103
103
  href: '/facebook-share-link',
104
- text: 'Share on Facebook',
104
+ text: 'Facebook',
105
105
  icon: 'facebook'
106
106
  },
107
107
  {
108
108
  href: '/twitter-share-link',
109
- text: 'Share on Twitter',
109
+ text: 'Twitter',
110
110
  icon: 'twitter'
111
111
  },
112
112
  {
@@ -116,17 +116,17 @@ examples:
116
116
  },
117
117
  {
118
118
  href: '/flickr-share-link',
119
- text: 'Share on Flickr',
119
+ text: 'Flickr',
120
120
  icon: 'flickr'
121
121
  },
122
122
  {
123
123
  href: '/instagram-share-link',
124
- text: 'Share on Instagram',
124
+ text: 'Instagram',
125
125
  icon: 'instagram'
126
126
  },
127
127
  {
128
128
  href: '/linkedin-share-link',
129
- text: 'Share on Linkedin',
129
+ text: 'Linkedin',
130
130
  icon: 'linkedin'
131
131
  },
132
132
  ]
@@ -20,6 +20,14 @@ examples:
20
20
  - field: "Body"
21
21
  value: "After the government decided in 2013 to expand the remit of the Committee to include public service providers, the Committee on Standards in Public Life produced our first report on the issue: Ethical Standards for Providers of Public Services in 2014."
22
22
 
23
+ without_title:
24
+ data:
25
+ items:
26
+ - field: "Title"
27
+ value: "Ethical standards for public service providers"
28
+ - field: "Summary"
29
+ value: "Find out more about our reviews on the subject of ethical standards for public service providers, including our 2014 report, 2015 guidance and 2018 follow-up publication."
30
+
23
31
  with_edit_on_section:
24
32
  data:
25
33
  title: "Title, summary and body"
@@ -1,3 +1,3 @@
1
1
  module GovukPublishingComponents
2
- VERSION = '18.3.0'.freeze
2
+ VERSION = '18.3.1'.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: 18.3.0
4
+ version: 18.3.1
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: 2019-08-27 00:00:00.000000000 Z
11
+ date: 2019-08-29 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: gds-api-adapters