govuk_publishing_components 21.26.1 → 21.26.2

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: cc5af29219bd4b9bc7b8ae363465464bc9be5b18379be56fb5749e1cc7770b5e
4
- data.tar.gz: ad31407f577d64d7e5bf86692444d4ed50f548dfb077a20bc07c67ab2b8b915c
3
+ metadata.gz: 5cc3f29fce3143ed9b648c5c9e49471e5624f51d42fcca04941b166962f1ef10
4
+ data.tar.gz: f8163f7c80c04ae79ee9628b073883ff404a4afd2415e181bf419a1cf2b196ce
5
5
  SHA512:
6
- metadata.gz: 650dd808ba0219ef1e49ba8c466efa63e3875d2fdc6022117ab758c7eaeb5e79ed39f71eb39a14ac7235272ade539a577d4ef6e639325c237db799fbd136aacf
7
- data.tar.gz: 7192ab37e652830ccd24beac87b31249c0490bc98b81f3d16bdfaa8f070284a71d4c01dc14b23cc5fa47cc73ccb0a2b83abf951307710d9e84db40d74fb6fa93
6
+ metadata.gz: 8fa1baf83ec27c033f21c2c64a90a787a4a7a6e471e425941000e480213e90451e543704d178788c72f28107fb1dbb64a3735f3d9ad8e4d9f0fdccb416a09290
7
+ data.tar.gz: fa6bf742ccc2812e7f43c717e3386170db7fa8b6c2fb8a7910d2880254c48bfb8690424eda8b285d63c33443bd0cc2a89c99a4937076b95a424084b96c5cd631
@@ -152,7 +152,7 @@ window.GOVUK.Modules = window.GOVUK.Modules || {};
152
152
 
153
153
  function showError (error) {
154
154
  var genericError = [
155
- '<h2 class="gem-c-feedback__heading">',
155
+ '<h2>',
156
156
  ' Sorry, we’re unable to receive your message right now. ',
157
157
  '</h2>',
158
158
  '<p>If the problem persists, we have other ways for you to provide',
@@ -95,21 +95,22 @@
95
95
  }
96
96
 
97
97
  // this comes from the backend so we can't put a class on it
98
- h2,
99
- .gem-c-feedback__heading {
98
+ h2 {
100
99
  @include govuk-text-colour;
101
- @include govuk-font(24, $weight: bold);
102
- margin: 0;
100
+ @include govuk-font($size: 24, $weight: bold);
101
+ margin: 0 0 govuk-spacing(3) 0;
103
102
  }
104
103
 
105
104
  p {
106
105
  @include govuk-text-colour;
107
- @include govuk-font(19);
108
- margin: govuk-spacing(2) 0;
106
+ @include govuk-font($size: 19);
107
+ margin: 0 0 govuk-spacing(3) 0;
109
108
  }
110
109
 
111
110
  a {
112
- @extend %govuk-link;
111
+ @include govuk-link-common;
112
+ @include govuk-link-style-default;
113
+ @include govuk-link-print-friendly;
113
114
  }
114
115
  }
115
116
 
@@ -173,13 +174,15 @@
173
174
 
174
175
  // static.css on GOV.UK overwrites the component styles using input[type="text"]
175
176
  // so we need to apply govuk-input styles using a stronger selector
176
- .gem-c-feedback input[type="text"] {
177
- // scss-lint:disable PlaceholderInExtend
178
- // sass-lint:disable placeholder-in-extend
179
- @extend .govuk-input;
180
- // sass-lint:enable placeholder-in-extend
181
- // scss-lint:enable PlaceholderInExtend
177
+ .gem-c-feedback .gem-c-input[type="text"] {
178
+ @include govuk-font($size: 19);
182
179
  margin: 0;
180
+ padding: govuk-spacing(1);
181
+ border: $govuk-border-width-form-element solid $govuk-input-border-colour;
182
+
183
+ &:focus {
184
+ outline: $govuk-focus-width solid $govuk-focus-colour;
185
+ }
183
186
  }
184
187
 
185
188
  .gem-c-feedback__option-list {
@@ -13,21 +13,19 @@
13
13
  <ol class="govuk-breadcrumbs__list">
14
14
  <% breadcrumbs.each_with_index do |crumb, index| %>
15
15
  <% breadcrumb = GovukPublishingComponents::Presenters::Breadcrumb.new(crumb, index) %>
16
- <li class="govuk-breadcrumbs__list-item" aria-current="<%= breadcrumb.aria_current %>">
17
16
  <% if breadcrumb.is_link? %>
18
- <%= link_to(
19
- breadcrumb[:title],
20
- breadcrumb.path,
21
- data: breadcrumb.tracking_data(breadcrumbs.length),
22
- class: "govuk-breadcrumbs__link",
23
- aria: {
24
- current: breadcrumb.aria_current,
25
- }
26
- ) %>
27
- <% else %>
28
- <%= breadcrumb[:title] %>
17
+ <li class="govuk-breadcrumbs__list-item" aria-current="<%= breadcrumb.aria_current %>">
18
+ <%= link_to(
19
+ breadcrumb[:title],
20
+ breadcrumb.path,
21
+ data: breadcrumb.tracking_data(breadcrumbs.length),
22
+ class: "govuk-breadcrumbs__link",
23
+ aria: {
24
+ current: breadcrumb.aria_current,
25
+ }
26
+ ) %>
27
+ </li>
29
28
  <% end %>
30
- </li>
31
29
  <% end %>
32
30
  </ol>
33
31
  </div>
@@ -71,7 +71,6 @@ examples:
71
71
  long_taxon_on_mobile:
72
72
  description: This is an example of a breadcrumb (specifically for mobile) with long taxons on the the parent item and a greater touch target area
73
73
  data:
74
- collapse_on_mobile: true
75
74
  breadcrumbs:
76
75
  - title: 'Home'
77
76
  url: '/'
@@ -1,3 +1,3 @@
1
1
  module GovukPublishingComponents
2
- VERSION = '21.26.1'.freeze
2
+ VERSION = '21.26.2'.freeze
3
3
  end
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: 21.26.1
4
+ version: 21.26.2
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: 2020-02-26 00:00:00.000000000 Z
11
+ date: 2020-02-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: gds-api-adapters