govuk_publishing_components 21.13.2 → 21.13.3

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: b990d9b30f4c8c5d0e6ccf8d1d53b679fe47f8758bd986bd75039588bd02e07b
4
- data.tar.gz: 2929d0298a3ecb008ff38217359c9f58ba1ba7ff0b59ec52fe0a8dd043be8a0b
3
+ metadata.gz: cbd34f0166b0c5c5c38226e23ef1d95fb03fa5a3c06a05f7c2c4e1e62c5f0dbb
4
+ data.tar.gz: 733069a7303c155a34053a502f2b4ef81f3284bdbb2f8af99420db69f5344083
5
5
  SHA512:
6
- metadata.gz: c1e7e8480b6a84fc697f546be5bfcbbc2fda606313aba9edb01873a8b0e8af34501d9c3a9fbc3dfc999d1168f351a194a9583a8fba95982cf105ad3b0e5f589d
7
- data.tar.gz: 4233bd6739384598708857c82fab71bd5e5aa11364d72d90deb55e2740c798200bf3c9a0ad5b6eb1240330dc9bbb015fd00bbf27e5195247f98d7cced41f6124
6
+ metadata.gz: 85a76aa59276d5df03d3e8045a47a7f14bb46f8080274e448f2c4ebc3f84a6da4e78bc748e10340693e063165e28e2f294f61f5d228e3f85f6f27f200f825a28
7
+ data.tar.gz: 6023c90967b99c03f9830989a4d70fc004f938573ac3a40686a9bf48cf3e9e74630b0c38b35b796b1f0d2c80bde30e9cc126a3421775093062250ba83a6a532e
@@ -64,11 +64,9 @@
64
64
  .gem-c-feedback__prompt-link {
65
65
  @include govuk-link-common;
66
66
  @include govuk-font(19);
67
- margin-left: govuk-spacing(3);
68
67
 
69
68
  @include govuk-media-query($from: tablet) {
70
69
  @include govuk-font(16);
71
- float: left; // needed to ensure vertical alignment consistent with prompt-link--wrong
72
70
  margin-left: govuk-spacing(2);
73
71
  }
74
72
  }
@@ -82,20 +80,6 @@
82
80
  }
83
81
  }
84
82
 
85
- .gem-c-feedback__prompt-link--wrong {
86
- display: block;
87
- clear: both;
88
- margin-top: govuk-spacing(3);
89
- margin-left: 0;
90
-
91
- @include govuk-media-query($from: tablet) {
92
- float: right;
93
- clear: none;
94
- margin-top: 0;
95
- margin-left: govuk-spacing(2);
96
- }
97
- }
98
-
99
83
  .gem-c-feedback__error-summary {
100
84
  margin-bottom: govuk-spacing(3);
101
85
  padding: govuk-spacing(3);
@@ -203,3 +187,78 @@
203
187
  margin: 0;
204
188
  padding: 0;
205
189
  }
190
+
191
+
192
+ .js-enabled {
193
+ .gem-c-feedback__js-prompt-questions {
194
+ @include govuk-media-query($until: tablet) {
195
+ display: grid;
196
+ grid-template-columns: repeat(auto-fill, minmax(150px, 140));
197
+ grid-template-rows: repeat(2, auto);
198
+ }
199
+ }
200
+
201
+ .gem-c-feedback__prompt-question {
202
+ @include govuk-media-query($until: tablet) {
203
+ grid-area: 1 / 1;
204
+ }
205
+ }
206
+
207
+ .gem-c-feedback__option-list {
208
+ list-style-type: none;
209
+ margin: 0;
210
+ padding: 0;
211
+
212
+ @include govuk-media-query($until: tablet) {
213
+ grid-area: 1 / 1 / 2 / 3;
214
+ display: grid;
215
+ grid-template-columns: repeat(2, minmax(140px, 140px));
216
+ grid-template-rows: repeat(2, auto);
217
+ // older grid spec
218
+ grid-row-gap: govuk-spacing(3);
219
+ // newer grid spec
220
+ row-gap: govuk-spacing(3); // sass-lint:disable-line no-misspelled-properties
221
+ }
222
+ }
223
+
224
+ .gem-c-feedback__option-list-item {
225
+ @include govuk-media-query($from: tablet) {
226
+ float: left;
227
+ }
228
+ }
229
+
230
+ .gem-c-feedback__option-list-item--useful {
231
+ @include govuk-media-query($until: tablet) {
232
+ display: inline-block;
233
+ @supports (display: grid) {
234
+ grid-area: 1 / 2;
235
+ padding-left: govuk-spacing(3);
236
+ }
237
+ }
238
+ }
239
+
240
+ .gem-c-feedback__option-list-item--not-useful {
241
+ @include govuk-media-query($until: tablet) {
242
+ display: inline-block;
243
+ @supports (display: grid) {
244
+ grid-area: 1 / 2;
245
+ padding-left: 50px;
246
+ }
247
+ }
248
+ }
249
+
250
+ .gem-c-feedback__option-list-item--wrong {
251
+ @include govuk-media-query($until: tablet) {
252
+ display: block;
253
+ margin-top: govuk-spacing(3);
254
+ @supports (display: grid) {
255
+ margin-top: 0;
256
+ grid-area: 2 / 1 / 2 / 3;
257
+ }
258
+ }
259
+
260
+ @include govuk-media-query($from: tablet) {
261
+ float: right;
262
+ }
263
+ }
264
+ }
@@ -19,7 +19,6 @@
19
19
  }
20
20
 
21
21
  .gem-c-header__logo {
22
- white-space: nowrap;
23
22
  width: auto;
24
23
  }
25
24
 
@@ -20,9 +20,9 @@
20
20
  Maybe
21
21
  <% end %>
22
22
  <ul class="gem-c-feedback__option-list">
23
- <li class="gem-c-feedback__option-list-item">
23
+ <li class="gem-c-feedback__option-list-item gem-c-feedback__option-list-item--useful">
24
24
  <%= link_to contact_govuk_path, {
25
- class: 'gem-c-feedback__prompt-link gem-c-feedback__prompt-link--useful js-page-is-useful',
25
+ class: 'gem-c-feedback__prompt-link js-page-is-useful',
26
26
  data: {
27
27
  'track-category' => 'yesNoFeedbackForm',
28
28
  'track-action' => 'ffYesClick'
@@ -33,7 +33,7 @@
33
33
  Yes <span class="visually-hidden">this page is useful</span>
34
34
  <% end %>
35
35
  </li>
36
- <li class="gem-c-feedback__option-list-item">
36
+ <li class="gem-c-feedback__option-list-item gem-c-feedback__option-list-item--not-useful">
37
37
  <%= link_to contact_govuk_path, {
38
38
  class: 'gem-c-feedback__prompt-link js-toggle-form js-page-is-not-useful',
39
39
  data: {
@@ -47,9 +47,9 @@
47
47
  No <span class="visually-hidden">this page is not useful</span>
48
48
  <% end %>
49
49
  </li>
50
- <li class="gem-c-feedback__option-list-item">
50
+ <li class="gem-c-feedback__option-list-item gem-c-feedback__option-list-item--wrong">
51
51
  <%= link_to contact_govuk_path, {
52
- class: 'gem-c-feedback__prompt-link gem-c-feedback__prompt-link--wrong js-toggle-form js-something-is-wrong',
52
+ class: 'gem-c-feedback__prompt-link js-toggle-form js-something-is-wrong',
53
53
  data: {
54
54
  'track-category' => 'Onsite Feedback',
55
55
  'track-action' => 'GOV.UK Open Form'
@@ -1,3 +1,3 @@
1
1
  module GovukPublishingComponents
2
- VERSION = '21.13.2'.freeze
2
+ VERSION = '21.13.3'.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.13.2
4
+ version: 21.13.3
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-11-27 00:00:00.000000000 Z
11
+ date: 2019-12-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: gds-api-adapters