govuk_publishing_components 49.0.0 → 49.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: a20a02d184c76606028650720f22cae103d3ccce1f42ca2dbc595915c03b55d8
4
- data.tar.gz: d6187aefe322704e5e2e1d1ec58efe5c6b99d933e038085167f84211974b633f
3
+ metadata.gz: 9138d245bd1d57f9a78c08fad8234385936554efa39c18fcde3b1e37b1d25a33
4
+ data.tar.gz: 905cd9baa8e3975c2a4fba5540039179d7f4a08e296124be5ec130de3fb86568
5
5
  SHA512:
6
- metadata.gz: 5f49a37d3583d584d57c42be30daad593649ce8f7c60a217d7cebbb8f4cbc95ee768bedd93c9ced0b7003d2530675970212da802dabe9ec5bc173657df035d21
7
- data.tar.gz: d3ea15671ae94e6f723c89af1cbc9420c501fd890569df435762254decc3ba31b9b725d5532448edc6291e3fcd145fb95e9a5328dc4ec42a1a24800f98faac66
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: right;
68
- clear: right;
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: right;
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
  }
@@ -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
- <div class="gem-c-contextual-breadcrumbs">
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
- </div>
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
- <div class="gem-c-contextual-sidebar govuk-!-display-none-print">
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
- </div>
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"
@@ -20,6 +20,7 @@ body: |
20
20
  [breadcrumbs]: https://components.publishing.service.gov.uk/component-guide/breadcrumbs
21
21
  accessibility_criteria: |
22
22
  Components called by this component must be accessible
23
+ uses_component_wrapper_helper: true
23
24
  examples:
24
25
  default:
25
26
  data:
@@ -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.
@@ -134,7 +134,7 @@ ar:
134
134
  history: المحفوظات
135
135
  last_updated: التحديث الأخير
136
136
  part_of: جزء من
137
- published: منشورة
137
+ published: تاريخ النشر
138
138
  see_all_updates: اطلع على كل التحديثات
139
139
  modal_dialogue:
140
140
  close_modal: إغلاق مربع الحوار المشروط
@@ -1,3 +1,3 @@
1
1
  module GovukPublishingComponents
2
- VERSION = "49.0.0".freeze
2
+ VERSION = "49.1.0".freeze
3
3
  end
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.0.0
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-16 00:00:00.000000000 Z
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.2
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: []