govuk_publishing_components 9.5.0 → 9.5.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: ed9cfca2bbf3caf1dca0acaac01d1aed13fcf8e5037af8291e001fa40ee71fc8
4
- data.tar.gz: 72dde8c41cf29d1d10a4639a38403badb66e2ad6d3e15151790add92506901ac
3
+ metadata.gz: 5554f431d5b1d929b511ee4cb9f2ed30d990062a39861d0556a5212c13a86597
4
+ data.tar.gz: 243b8ef4f539bb630c088ddd4a55d28588a5fff283bc91258ffc10cffe4d0a1a
5
5
  SHA512:
6
- metadata.gz: f558e44d99267415e7cd3cb42a00584bc45152d88bdf0f4772b15fea2f50d60ca96a8b967dab8589f54c7fe2c6b371ea02cdcc63b0b831cdc5199dce0c0aab9d
7
- data.tar.gz: 1a500eaf9859acc22d0030e05e9082fbdc272e1a698e54029cf432520374139f7570a60d8df9ac347390d646bdc62f93403c0258fedc3c23b26014976f9c2e1b
6
+ metadata.gz: 863f52e9ed306056b3f03ced2083aefa5bea0b5ac2e3b4c7c52bba68c3b94c4057ac915f23ddd3034a9ace4cf7daba0396124a1724d34add81f59addf75f1fb1
7
+ data.tar.gz: 57836f091c4053a419d9a4e5c9ec945f35d71f2f005e62b92b37e8ea8e07e2c426a5b46e12bd9b295590cd0f01d547a32ea940c8807056f885c78c0a64c3e6d8
@@ -1,6 +1,6 @@
1
1
  .gem-c-step-nav-related {
2
2
  border-top: 2px solid $govuk-blue;
3
- margin-bottom: $gutter * 1.5;
3
+ margin-bottom: $gutter;
4
4
  }
5
5
 
6
6
  .gem-c-step-nav-related__heading {
@@ -2,7 +2,17 @@
2
2
  @include responsive-top-margin;
3
3
  }
4
4
 
5
- .gem-c-title--bottom-margin {
5
+ // margins would ideally be handled by a general model for all components
6
+ // but we don't have one yet, so this is in anticipation of that
7
+ // suggested scale is as follows, not fully implemented
8
+ // no margin = 0
9
+ // $gutter = 4
10
+ // responsive-bottom-margin = 5
11
+ .gem-c-title--margin-bottom-4 {
12
+ margin-bottom: $gutter;
13
+ }
14
+
15
+ .gem-c-title--margin-bottom-5 {
6
16
  @include responsive-bottom-margin;
7
17
  }
8
18
 
@@ -6,8 +6,8 @@
6
6
  context_data = context.is_a?(Hash) ? context[:data] : false
7
7
 
8
8
  inverse ||= false
9
- margin_bottom ||= 1
10
- margin_bottom_class = "gem-c-title--bottom-margin" if margin_bottom == 1
9
+ margin_bottom ||= 5
10
+ margin_bottom_class = "gem-c-title--margin-bottom-#{margin_bottom}" if [4, 5].include? margin_bottom
11
11
  %>
12
12
  <div class="gem-c-title
13
13
  <% if inverse %>gem-c-title--inverse<% end %>
@@ -41,6 +41,14 @@ examples:
41
41
  context: Publication
42
42
  title: My page title which is often really long and verbose and has lots of extra words it doesn't need
43
43
  average_title_length: long
44
+ with_margin:
45
+ description: |
46
+ Configurable bottom margin for the component. This has been built in anticipation of being compatible with a theoretical future model for component margins.
47
+
48
+ Accepted parameters for this option are 0 (no margin), 4 (gives a margin of gutter) and 5 ([responsive-margin](https://github.com/alphagov/govuk_publishing_components/blob/a325cbebf93def14a4f8d55e86426ea16b15f2ee/app/assets/stylesheets/govuk_publishing_components/components/mixins/_margins.scss#L1), which is also the default). See the Sass file for more detail.
49
+ data:
50
+ title: 'Margin bottom of 30px'
51
+ margin_bottom: 4
44
52
  in_html_publication:
45
53
  description: Page titles are used in HTML Publications ([see example](https://www.gov.uk/government/publications/fees-for-civil-and-family-courts/court-fees-for-the-high-court-county-court-and-family-court))
46
54
  data:
@@ -1,3 +1,3 @@
1
1
  module GovukPublishingComponents
2
- VERSION = '9.5.0'.freeze
2
+ VERSION = '9.5.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: 9.5.0
4
+ version: 9.5.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: 2018-07-12 00:00:00.000000000 Z
11
+ date: 2018-07-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: govuk_app_config