govuk_publishing_components 17.18.0 → 17.19.0

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: aa3b2ab5c6bae378fcfbc364a38f985840b75717cdcf7d36c30ff52cb1b21c69
4
- data.tar.gz: bdb08fde76441407c58750c41322d2fe458a80611998076482a26c9da97d677f
3
+ metadata.gz: 2b3003c6c02ae0cfe4c9cdd3d95f7f748239bfe736163fece126366bd48fb27d
4
+ data.tar.gz: 960b8b0f12871b5d102ec86b8909d4a320702e51aec7b79216f9c5718fb74796
5
5
  SHA512:
6
- metadata.gz: d46360f64ea06b1798025f91d3823567f8d2347330702bc6a6cbe9a152471aa59a6daca4ff8de19d4644a44dc7f27ea0c3c85d6ef4acc1746257ff59429b7dce
7
- data.tar.gz: 1bc32915bb2f1794a3fb74abc1f9d492ea7d841c2d5d7d9176b9d12c3ee0e03f7d84643c150dfb77ca3b7fc2e0cc0369ee77cd816bb14103350c7ceae0f55a28
6
+ metadata.gz: 20d274ba4a41a4c2e4605efa211912c66d88bd21bf6ab80b73d5087fd4fad83111490e788b69ef57b976febf1b15ac1763342819854afc2eef1078e7ba4c9ae6
7
+ data.tar.gz: 1364a0a06e88848f8c35d9606a3541a4893d3784bc19916482575bd44a70d50cefeb69dac3b35a05fad6bbfb6ece016fe886f3232c451ec6bbe593d14524fd0c
@@ -55,6 +55,7 @@
55
55
  playerVars: {
56
56
  // enables the player to be controlled via IFrame or JavaScript Player API calls
57
57
  enablejsapi: 1,
58
+ origin: window.location.origin,
58
59
  // don't show related videos
59
60
  rel: 0,
60
61
  // disable option to allow single key shortcuts due to (WCAG SC 2.1.4)
@@ -14,13 +14,22 @@
14
14
  // scss-lint:disable QualifyingElement
15
15
  // sass-lint:disable no-qualifying-elements
16
16
  ul.govuk-tabs__list {
17
- list-style: none;
18
17
  margin: 0;
19
18
  padding: 0;
19
+ list-style: none;
20
+ @include govuk-responsive-margin(6, "bottom");
20
21
  }
21
22
 
22
23
  li.govuk-tabs__list-item {
23
24
  margin-left: govuk-spacing(5);
24
25
  }
26
+
27
+ .js-enabled {
28
+ @include govuk-media-query($from: tablet) {
29
+ ul.govuk-tabs__list {
30
+ margin-bottom: 0;
31
+ }
32
+ }
33
+ }
25
34
  // scss-lint:enable QualifyingElement
26
35
  // sass-lint:enable no-qualifying-elements
@@ -1,3 +1,5 @@
1
+ return unless Rails.application.config.respond_to?(:assets)
2
+
1
3
  Rails.application.config.assets.precompile += %w(
2
4
  component_guide/accessibility-test.js
3
5
  component_guide/application.js
@@ -4,7 +4,7 @@ module GovukPublishingComponents
4
4
  # Only used by the step by step component
5
5
  class PageWithStepByStepNavigation
6
6
  def initialize(content_store_response, current_path, query_parameters = {})
7
- @content_item = content_store_response.to_h
7
+ @content_item = content_store_response.to_h.deep_symbolize_keys
8
8
  @current_path = current_path
9
9
  @query_parameters = query_parameters
10
10
  end
@@ -152,15 +152,15 @@ module GovukPublishingComponents
152
152
  end
153
153
 
154
154
  def parsed_step_navs
155
- content_item.dig("links", "part_of_step_navs").to_a
155
+ content_item.dig(:links, :part_of_step_navs).to_a
156
156
  end
157
157
 
158
158
  def parsed_related_to_step_navs
159
- content_item.dig("links", "related_to_step_navs").to_a
159
+ content_item.dig(:links, :related_to_step_navs).to_a
160
160
  end
161
161
 
162
162
  def parsed_secondary_to_step_navs
163
- content_item.dig("links", "secondary_to_step_navs").to_a
163
+ content_item.dig(:links, :secondary_to_step_navs).to_a
164
164
  end
165
165
 
166
166
  def configure_for_sidebar(step_nav_content)
@@ -1,3 +1,3 @@
1
1
  module GovukPublishingComponents
2
- VERSION = '17.18.0'.freeze
2
+ VERSION = '17.19.0'.freeze
3
3
  end
@@ -49,7 +49,7 @@
49
49
  "/"
50
50
  ],
51
51
  "_resolved": "git://github.com/alphagov/accessible-autocomplete.git#3523dd9fffc70cbd9f6f555f75863c33a709f49e",
52
- "_shasum": "e6d17f81172b18852c851434307a096874ef1731",
52
+ "_shasum": "e6e79f60ea2475ba37c513c1398d04aaec5f9035",
53
53
  "_shrinkwrap": null,
54
54
  "_spec": "accessible-autocomplete@git://github.com/alphagov/accessible-autocomplete.git#add-multiselect-support",
55
55
  "_where": "/var/lib/jenkins/workspace/ublishing_components_master-N4FWJIUY4CIFHKGZOAAEVVXODRY3YBORQOPIBBXWX72VUPSGJRRQ",
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: 17.18.0
4
+ version: 17.19.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: 2019-07-22 00:00:00.000000000 Z
11
+ date: 2019-07-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: gds-api-adapters