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 +4 -4
- data/app/assets/javascripts/govuk_publishing_components/lib/govspeak/youtube-link-enhancement.js +1 -0
- data/app/assets/stylesheets/govuk_publishing_components/components/_tabs.scss +10 -1
- data/config/initializers/assets.rb +2 -0
- data/lib/govuk_publishing_components/presenters/page_with_step_by_step_navigation.rb +4 -4
- data/lib/govuk_publishing_components/version.rb +1 -1
- data/node_modules/accessible-autocomplete/package.json +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2b3003c6c02ae0cfe4c9cdd3d95f7f748239bfe736163fece126366bd48fb27d
|
4
|
+
data.tar.gz: 960b8b0f12871b5d102ec86b8909d4a320702e51aec7b79216f9c5718fb74796
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 20d274ba4a41a4c2e4605efa211912c66d88bd21bf6ab80b73d5087fd4fad83111490e788b69ef57b976febf1b15ac1763342819854afc2eef1078e7ba4c9ae6
|
7
|
+
data.tar.gz: 1364a0a06e88848f8c35d9606a3541a4893d3784bc19916482575bd44a70d50cefeb69dac3b35a05fad6bbfb6ece016fe886f3232c451ec6bbe593d14524fd0c
|
data/app/assets/javascripts/govuk_publishing_components/lib/govspeak/youtube-link-enhancement.js
CHANGED
@@ -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
|
@@ -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(
|
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(
|
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(
|
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)
|
@@ -49,7 +49,7 @@
|
|
49
49
|
"/"
|
50
50
|
],
|
51
51
|
"_resolved": "git://github.com/alphagov/accessible-autocomplete.git#3523dd9fffc70cbd9f6f555f75863c33a709f49e",
|
52
|
-
"_shasum": "
|
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.
|
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-
|
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
|