govuk_publishing_components 49.0.0 → 49.1.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/images/govuk_publishing_components/crests/gds_crest_18px_x2.png +0 -0
- data/app/assets/stylesheets/govuk_publishing_components/components/_breadcrumbs.scss +16 -0
- data/app/assets/stylesheets/govuk_publishing_components/components/_metadata.scss +6 -3
- data/app/assets/stylesheets/govuk_publishing_components/components/_organisation-logo.scss +4 -0
- data/app/assets/stylesheets/govuk_publishing_components/components/helpers/_brand-colours.scss +9 -0
- data/app/views/govuk_publishing_components/components/_contextual_breadcrumbs.html.erb +5 -2
- data/app/views/govuk_publishing_components/components/_contextual_sidebar.html.erb +5 -2
- data/app/views/govuk_publishing_components/components/docs/breadcrumbs.yml +11 -0
- data/app/views/govuk_publishing_components/components/docs/contextual_breadcrumbs.yml +1 -0
- data/app/views/govuk_publishing_components/components/docs/contextual_sidebar.yml +1 -0
- data/config/locales/ar.yml +1 -1
- data/lib/govuk_publishing_components/version.rb +1 -1
- metadata +4 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9138d245bd1d57f9a78c08fad8234385936554efa39c18fcde3b1e37b1d25a33
|
4
|
+
data.tar.gz: 905cd9baa8e3975c2a4fba5540039179d7f4a08e296124be5ec130de3fb86568
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7411d2ecc8f7992e32352b12fcbd6f1363edff9bf2d79e7052b5f117c17ff7060da05c9fdaa07338e8a84540d0826c7a9630e0d82abb623c81763cf5e0da4b55
|
7
|
+
data.tar.gz: e0a37e610ddb60d74f694f9fd4056b98730a54b0d2dd941b089209e373a6228b045bab3bc398a25ade701359a6e0fb92b250d51da570180a8d61bf65c013ad7f
|
@@ -55,6 +55,22 @@
|
|
55
55
|
}
|
56
56
|
}
|
57
57
|
|
58
|
+
.gem-c-breadcrumbs[dir="rtl"] {
|
59
|
+
text-align: start;
|
60
|
+
|
61
|
+
.govuk-breadcrumbs__list-item {
|
62
|
+
float: inline-start;
|
63
|
+
margin-inline-end: .625em;
|
64
|
+
padding-inline-end: .978em;
|
65
|
+
|
66
|
+
&::before {
|
67
|
+
transform: rotate(-135deg);
|
68
|
+
left: 0;
|
69
|
+
right: -1.2069em;
|
70
|
+
}
|
71
|
+
}
|
72
|
+
}
|
73
|
+
|
58
74
|
@include govuk-media-query($media-type: print) {
|
59
75
|
.gem-c-breadcrumbs {
|
60
76
|
font-size: 12pt;
|
@@ -17,6 +17,7 @@
|
|
17
17
|
}
|
18
18
|
}
|
19
19
|
|
20
|
+
.direction-rtl .gem-c-metadata,
|
20
21
|
.gem-c-metadata.direction-rtl {
|
21
22
|
direction: rtl;
|
22
23
|
text-align: start;
|
@@ -63,9 +64,10 @@
|
|
63
64
|
}
|
64
65
|
}
|
65
66
|
|
67
|
+
.direction-rtl .gem-c-metadata .gem-c-metadata__term,
|
66
68
|
.gem-c-metadata.direction-rtl .gem-c-metadata__term {
|
67
|
-
float:
|
68
|
-
clear:
|
69
|
+
float: inline-start;
|
70
|
+
clear: inline-start;
|
69
71
|
|
70
72
|
@include govuk-media-query($from: tablet) {
|
71
73
|
padding-left: govuk-spacing(1);
|
@@ -83,8 +85,9 @@
|
|
83
85
|
}
|
84
86
|
}
|
85
87
|
|
88
|
+
.direction-rtl .gem-c-metadata .gem-c-metadata__definition,
|
86
89
|
.gem-c-metadata.direction-rtl .gem-c-metadata__definition {
|
87
|
-
float:
|
90
|
+
float: inline-start;
|
88
91
|
}
|
89
92
|
|
90
93
|
.gem-c-metadata__toggle-wrap {
|
@@ -119,6 +119,10 @@
|
|
119
119
|
@include crest($crest: "bis_crest", $xpos: 9px);
|
120
120
|
}
|
121
121
|
|
122
|
+
.gem-c-organisation-logo__crest--gds {
|
123
|
+
@include crest($crest: "gds_crest", $xpos: 8px);
|
124
|
+
}
|
125
|
+
|
122
126
|
.gem-c-organisation-logo__crest--hmrc {
|
123
127
|
@include crest($crest: "hmrc_crest", $xpos: 8px);
|
124
128
|
}
|
data/app/assets/stylesheets/govuk_publishing_components/components/helpers/_brand-colours.scss
CHANGED
@@ -58,9 +58,18 @@
|
|
58
58
|
}
|
59
59
|
}
|
60
60
|
|
61
|
+
// Temp colour overrides
|
62
|
+
|
61
63
|
.brand--department-for-science-innovation-and-technology {
|
62
64
|
&.brand__border-color,
|
63
65
|
.brand__border-color {
|
64
66
|
border-color: govuk-organisation-colour("department-for-science-innovation-technology", $contrast-safe: false);
|
65
67
|
}
|
66
68
|
}
|
69
|
+
|
70
|
+
.brand--government-digital-service {
|
71
|
+
&.brand__border-color,
|
72
|
+
.brand__border-color {
|
73
|
+
border-color: #16eeee;
|
74
|
+
}
|
75
|
+
}
|
@@ -4,9 +4,12 @@
|
|
4
4
|
breadcrumb_selector = GovukPublishingComponents::Presenters::BreadcrumbSelector.new(content_item, request, prioritise_taxon_breadcrumbs, disable_ga4)
|
5
5
|
inverse ||= false
|
6
6
|
collapse_on_mobile ||= true unless local_assigns[:collapse_on_mobile].eql?(false)
|
7
|
+
|
8
|
+
component_helper = GovukPublishingComponents::Presenters::ComponentWrapperHelper.new(local_assigns)
|
9
|
+
component_helper.add_class("gem-c-contextual-breadcrumbs")
|
7
10
|
%>
|
8
11
|
|
9
|
-
|
12
|
+
<%= tag.div(**component_helper.all_attributes) do %>
|
10
13
|
<% if breadcrumb_selector.step_by_step %>
|
11
14
|
<%= render 'govuk_publishing_components/components/step_by_step_nav_header', breadcrumb_selector.breadcrumbs %>
|
12
15
|
<% elsif breadcrumb_selector.breadcrumbs %>
|
@@ -17,4 +20,4 @@
|
|
17
20
|
collapse_on_mobile: collapse_on_mobile %>
|
18
21
|
</div>
|
19
22
|
<% end %>
|
20
|
-
|
23
|
+
<% end %>
|
@@ -7,9 +7,12 @@
|
|
7
7
|
show_ukraine_cta = navigation.show_ukraine_cta?
|
8
8
|
ga4_tracking_counts = OpenStruct.new(index_section_count: 0)
|
9
9
|
ga4_tracking_counts.index_section_count = 1 if show_ukraine_cta
|
10
|
+
|
11
|
+
component_helper = GovukPublishingComponents::Presenters::ComponentWrapperHelper.new(local_assigns)
|
12
|
+
component_helper.add_class("gem-c-contextual-sidebar govuk-!-display-none-print")
|
10
13
|
%>
|
11
14
|
|
12
|
-
|
15
|
+
<%= tag.div(**component_helper.all_attributes) do %>
|
13
16
|
<% if navigation.content_tagged_to_a_reasonable_number_of_step_by_steps? %>
|
14
17
|
<%# Rendering step by step related items because there are a few but not too many of them %>
|
15
18
|
<%= render 'govuk_publishing_components/components/step_by_step_nav_related', links: navigation.step_nav_helper.related_links, disable_ga4: disable_ga4 %>
|
@@ -36,4 +39,4 @@
|
|
36
39
|
<% if show_ukraine_cta %>
|
37
40
|
<%= render 'govuk_publishing_components/components/contextual_sidebar/ukraine_cta', content_item: content_item, disable_ga4: disable_ga4, ga4_tracking_counts: ga4_tracking_counts %>
|
38
41
|
<% end %>
|
39
|
-
|
42
|
+
<% end %>
|
@@ -121,3 +121,14 @@ examples:
|
|
121
121
|
url: "/section/sub-section"
|
122
122
|
- title: "Sub-sub-section"
|
123
123
|
url: "/section/sub-section/sub-section"
|
124
|
+
right_to_left:
|
125
|
+
data:
|
126
|
+
collapse_on_mobile: true
|
127
|
+
dir: rtl
|
128
|
+
breadcrumbs:
|
129
|
+
- title: "Section"
|
130
|
+
url: "/section"
|
131
|
+
- title: "Sub-section"
|
132
|
+
url: "/section/sub-section"
|
133
|
+
- title: "Sub-sub-section"
|
134
|
+
url: "/section/sub-section/sub-section"
|
@@ -17,6 +17,7 @@ body: |
|
|
17
17
|
[contextual_breadcrumbs]: /component-guide/contextual_breadcrumbs
|
18
18
|
accessibility_criteria: |
|
19
19
|
Components called by this component must be accessible
|
20
|
+
uses_component_wrapper_helper: true
|
20
21
|
examples:
|
21
22
|
default:
|
22
23
|
description: Display collections, guides, quick links, ordered related items and related mainstream content.
|
data/config/locales/ar.yml
CHANGED
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: govuk_publishing_components
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 49.
|
4
|
+
version: 49.1.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- GOV.UK Dev
|
8
8
|
bindir: bin
|
9
9
|
cert_chain: []
|
10
|
-
date: 2025-01-
|
10
|
+
date: 2025-01-17 00:00:00.000000000 Z
|
11
11
|
dependencies:
|
12
12
|
- !ruby/object:Gem::Dependency
|
13
13
|
name: govuk_app_config
|
@@ -396,6 +396,7 @@ files:
|
|
396
396
|
- app/assets/images/govuk_publishing_components/crests/bis_crest_18px_x2.png
|
397
397
|
- app/assets/images/govuk_publishing_components/crests/coastguard_18px_x2.png
|
398
398
|
- app/assets/images/govuk_publishing_components/crests/dbt_crest_18px_x2.png
|
399
|
+
- app/assets/images/govuk_publishing_components/crests/gds_crest_18px_x2.png
|
399
400
|
- app/assets/images/govuk_publishing_components/crests/hmrc_crest_18px_x2.png
|
400
401
|
- app/assets/images/govuk_publishing_components/crests/ho_crest_18px_x2.png
|
401
402
|
- app/assets/images/govuk_publishing_components/crests/mod_crest_18px_x2.png
|
@@ -1994,7 +1995,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
1994
1995
|
- !ruby/object:Gem::Version
|
1995
1996
|
version: '0'
|
1996
1997
|
requirements: []
|
1997
|
-
rubygems_version: 3.6.
|
1998
|
+
rubygems_version: 3.6.3
|
1998
1999
|
specification_version: 4
|
1999
2000
|
summary: A gem to document components in GOV.UK frontend applications
|
2000
2001
|
test_files: []
|