govuk_publishing_components 70.0.1 → 70.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: d8ba839c9e37ab74e7b66ba8b6b32e81b9c99f1ad3b31ad8425a0c2e91e7df7f
4
- data.tar.gz: 635783cf55c655079398c02c541a4aa09a7ecb67c8a8b8b1802e06f4e327806a
3
+ metadata.gz: a208990405169cdf86868f1f1348fdacf2d42112b7bc2f4076bad3fc979fb296
4
+ data.tar.gz: 9be0a018eef194e89559ae804b341b7b9770b47acab3b27fe9d8e039eb9398ef
5
5
  SHA512:
6
- metadata.gz: aae0a87278ac959798cbfa23c6c5884c1e2edc33918d963acb45cdf8b7a3656233912a4d67b605bc0cef5e567f9471bcab96d78d6970877f8f75a03f4721a85a
7
- data.tar.gz: 96f01ce33679f119d9d9d77462d762f3a9bba38413bd640b5ef46b72f70d5d274fc3435e3f586f71fa5804e7d556020d5948ae91279e535ca3caa20c9f2840a8
6
+ metadata.gz: 1496a72e47e1a86373ca73e6f8a4a535c5821899af6ab3b5d20f3bd20b618f20d05df9dae456d34f56616bca48600d172a384587b70147b263dce51faa0cdd4f
7
+ data.tar.gz: 053e638e9b073f6a49cbe4f06c3e9d83c04e1ea350c4fc1d1d456401280aeaa635408e43ff0d2ae78e478b262a151f5609fc29dc491f27796a36b58667bbd3d9
@@ -234,5 +234,9 @@ $search-submit-button-hover-colour: $govuk-blue-tint-95;
234
234
  top: auto;
235
235
  left: auto;
236
236
  padding-left: 0;
237
+ max-width: unset;
238
+ height: auto;
239
+ overflow: visible;
240
+ white-space: normal;
237
241
  }
238
242
  }
@@ -1,10 +1,13 @@
1
1
  .gem-c-translation-nav {
2
2
  margin-bottom: govuk-spacing(6);
3
- border-bottom: 1px solid govuk-functional-colour(border);
4
3
  color: govuk-functional-colour(text);
5
4
  @include govuk-font(16);
6
5
  }
7
6
 
7
+ .gem-c-translation-nav--border {
8
+ border-bottom: 1px solid govuk-functional-colour(border);
9
+ }
10
+
8
11
  .gem-c-translation-nav__list {
9
12
  list-style: none;
10
13
  margin: 0 (- govuk-spacing(2));
@@ -2,9 +2,11 @@
2
2
  brand ||= false
3
3
  brand_helper = GovukPublishingComponents::AppHelpers::BrandHelper.new(brand)
4
4
  translation_helper = GovukPublishingComponents::Presenters::TranslationNavHelper.new(local_assigns)
5
+ omit_border ||= false
5
6
 
6
7
  component_helper = GovukPublishingComponents::Presenters::ComponentWrapperHelper.new(local_assigns)
7
8
  component_helper.add_class("gem-c-translation-nav govuk-!-display-none-print #{translation_helper.classes} #{brand_helper.brand_class}")
9
+ component_helper.add_class("gem-c-translation-nav--border") unless omit_border
8
10
  component_helper.add_aria_attribute({ label: t("common.translations") })
9
11
  %>
10
12
  <% if translation_helper.has_translations? %>
@@ -98,6 +98,14 @@ examples:
98
98
  data:
99
99
  label_margin_bottom: 9
100
100
  inline_label: false
101
+ with_long_label_text:
102
+ description: |
103
+ Demonstrates how long label text wraps across multiple lines without being clipped.
104
+
105
+ Requires `inline_label` to be false.
106
+ data:
107
+ inline_label: false
108
+ label_text: Search for a licence, permit, or regulation by entering keywords, document title, or reference number
101
109
  with_custom_label_class:
102
110
  description: |
103
111
  Allows adding a custom class to the label of the component.
@@ -28,6 +28,17 @@ examples:
28
28
  - locale: 'hi'
29
29
  base_path: '/hi'
30
30
  text: 'हिंदी'
31
+ omit_border:
32
+ data:
33
+ omit_border: true
34
+ translations:
35
+ - locale: 'en'
36
+ base_path: '/en'
37
+ text: 'English'
38
+ active: true
39
+ - locale: 'hi'
40
+ base_path: '/hi'
41
+ text: 'हिंदी'
31
42
  multiple_translations:
32
43
  data:
33
44
  translations:
@@ -1,3 +1,3 @@
1
1
  module GovukPublishingComponents
2
- VERSION = "70.0.1".freeze
2
+ VERSION = "70.1.0".freeze
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: govuk_publishing_components
3
3
  version: !ruby/object:Gem::Version
4
- version: 70.0.1
4
+ version: 70.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - GOV.UK Dev