dxw_govuk_frontend_rails 3.5.0 → 3.10.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (116) hide show
  1. checksums.yaml +4 -4
  2. data/CONTRIBUTING.md +1 -0
  3. data/Gemfile.lock +3 -2
  4. data/README.md +45 -42
  5. data/lib/dxw_govuk_frontend_rails/version.rb +1 -1
  6. data/package-lock.json +3 -3
  7. data/package.json +1 -1
  8. data/vendor/assets/javascripts/govuk_frontend_rails.js +265 -121
  9. data/vendor/assets/stylesheets/_base.scss +3 -0
  10. data/vendor/assets/stylesheets/all.scss +1 -3
  11. data/vendor/assets/stylesheets/components/_all.scss +32 -29
  12. data/vendor/assets/stylesheets/components/accordion/_accordion.scss +2 -208
  13. data/vendor/assets/stylesheets/components/accordion/_index.scss +206 -0
  14. data/vendor/assets/stylesheets/components/back-link/_back-link.scss +2 -65
  15. data/vendor/assets/stylesheets/components/back-link/_index.scss +110 -0
  16. data/vendor/assets/stylesheets/components/breadcrumbs/_breadcrumbs.scss +2 -118
  17. data/vendor/assets/stylesheets/components/breadcrumbs/_index.scss +137 -0
  18. data/vendor/assets/stylesheets/components/button/_button.scss +2 -284
  19. data/vendor/assets/stylesheets/components/button/_index.scss +280 -0
  20. data/vendor/assets/stylesheets/components/character-count/_character-count.scss +2 -31
  21. data/vendor/assets/stylesheets/components/character-count/_index.scss +24 -0
  22. data/vendor/assets/stylesheets/components/checkboxes/_checkboxes.scss +2 -308
  23. data/vendor/assets/stylesheets/components/checkboxes/_index.scss +305 -0
  24. data/vendor/assets/stylesheets/components/date-input/_date-input.scss +2 -30
  25. data/vendor/assets/stylesheets/components/date-input/_index.scss +26 -0
  26. data/vendor/assets/stylesheets/components/details/_details.scss +2 -88
  27. data/vendor/assets/stylesheets/components/details/_index.scss +83 -0
  28. data/vendor/assets/stylesheets/components/error-message/_error-message.scss +2 -15
  29. data/vendor/assets/stylesheets/components/error-message/_index.scss +11 -0
  30. data/vendor/assets/stylesheets/components/error-summary/_error-summary.scss +2 -59
  31. data/vendor/assets/stylesheets/components/error-summary/_index.scss +43 -0
  32. data/vendor/assets/stylesheets/components/fieldset/_fieldset.scss +2 -68
  33. data/vendor/assets/stylesheets/components/fieldset/_index.scss +64 -0
  34. data/vendor/assets/stylesheets/components/file-upload/_file-upload.scss +2 -81
  35. data/vendor/assets/stylesheets/components/file-upload/_index.scss +50 -0
  36. data/vendor/assets/stylesheets/components/footer/_footer.scss +2 -244
  37. data/vendor/assets/stylesheets/components/footer/_index.scss +234 -0
  38. data/vendor/assets/stylesheets/components/header/_header.scss +2 -318
  39. data/vendor/assets/stylesheets/components/header/_index.scss +309 -0
  40. data/vendor/assets/stylesheets/components/hint/_hint.scss +2 -50
  41. data/vendor/assets/stylesheets/components/hint/_index.scss +44 -0
  42. data/vendor/assets/stylesheets/components/input/_index.scss +187 -0
  43. data/vendor/assets/stylesheets/components/input/_input.scss +2 -103
  44. data/vendor/assets/stylesheets/components/inset-text/_index.scss +24 -0
  45. data/vendor/assets/stylesheets/components/inset-text/_inset-text.scss +2 -28
  46. data/vendor/assets/stylesheets/components/label/_index.scss +41 -0
  47. data/vendor/assets/stylesheets/components/label/_label.scss +2 -45
  48. data/vendor/assets/stylesheets/components/notification-banner/_index.scss +89 -0
  49. data/vendor/assets/stylesheets/components/notification-banner/_notification-banner.scss +2 -0
  50. data/vendor/assets/stylesheets/components/panel/_index.scss +44 -0
  51. data/vendor/assets/stylesheets/components/panel/_panel.scss +2 -44
  52. data/vendor/assets/stylesheets/components/phase-banner/_index.scss +27 -0
  53. data/vendor/assets/stylesheets/components/phase-banner/_phase-banner.scss +2 -31
  54. data/vendor/assets/stylesheets/components/radios/_index.scss +342 -0
  55. data/vendor/assets/stylesheets/components/radios/_radios.scss +2 -346
  56. data/vendor/assets/stylesheets/components/select/_index.scss +49 -0
  57. data/vendor/assets/stylesheets/components/select/_select.scss +2 -57
  58. data/vendor/assets/stylesheets/components/skip-link/_index.scss +34 -0
  59. data/vendor/assets/stylesheets/components/skip-link/_skip-link.scss +2 -37
  60. data/vendor/assets/stylesheets/components/summary-list/_index.scss +145 -0
  61. data/vendor/assets/stylesheets/components/summary-list/_summary-list.scss +2 -157
  62. data/vendor/assets/stylesheets/components/table/_index.scss +50 -0
  63. data/vendor/assets/stylesheets/components/table/_table.scss +2 -54
  64. data/vendor/assets/stylesheets/components/tabs/_index.scss +135 -0
  65. data/vendor/assets/stylesheets/components/tabs/_tabs.scss +2 -142
  66. data/vendor/assets/stylesheets/components/tag/_index.scss +86 -0
  67. data/vendor/assets/stylesheets/components/tag/_tag.scss +2 -44
  68. data/vendor/assets/stylesheets/components/textarea/_index.scss +47 -0
  69. data/vendor/assets/stylesheets/components/textarea/_textarea.scss +2 -55
  70. data/vendor/assets/stylesheets/components/warning-text/_index.scss +57 -0
  71. data/vendor/assets/stylesheets/components/warning-text/_warning-text.scss +2 -60
  72. data/vendor/assets/stylesheets/core/_global-styles.scss +5 -3
  73. data/vendor/assets/stylesheets/core/_links.scss +5 -3
  74. data/vendor/assets/stylesheets/core/_lists.scss +17 -3
  75. data/vendor/assets/stylesheets/core/_section-break.scss +5 -3
  76. data/vendor/assets/stylesheets/core/_template.scss +5 -3
  77. data/vendor/assets/stylesheets/core/_typography.scss +5 -3
  78. data/vendor/assets/stylesheets/helpers/_clearfix.scss +1 -1
  79. data/vendor/assets/stylesheets/helpers/_colour.scss +1 -1
  80. data/vendor/assets/stylesheets/helpers/_device-pixels.scss +3 -3
  81. data/vendor/assets/stylesheets/helpers/_focused.scss +1 -1
  82. data/vendor/assets/stylesheets/helpers/_font-faces.scss +9 -11
  83. data/vendor/assets/stylesheets/helpers/_grid.scss +2 -1
  84. data/vendor/assets/stylesheets/helpers/_links.scss +96 -4
  85. data/vendor/assets/stylesheets/helpers/_media-queries.scss +2 -6
  86. data/vendor/assets/stylesheets/helpers/_shape-arrow.scss +1 -1
  87. data/vendor/assets/stylesheets/helpers/_spacing.scss +7 -6
  88. data/vendor/assets/stylesheets/helpers/_typography.scss +13 -12
  89. data/vendor/assets/stylesheets/helpers/_visually-hidden.scss +30 -30
  90. data/vendor/assets/stylesheets/objects/_form-group.scss +1 -4
  91. data/vendor/assets/stylesheets/objects/_grid.scss +3 -6
  92. data/vendor/assets/stylesheets/objects/_main-wrapper.scss +5 -4
  93. data/vendor/assets/stylesheets/objects/_width-container.scss +2 -4
  94. data/vendor/assets/stylesheets/overrides/_display.scss +12 -4
  95. data/vendor/assets/stylesheets/overrides/_spacing.scss +5 -3
  96. data/vendor/assets/stylesheets/overrides/_typography.scss +5 -3
  97. data/vendor/assets/stylesheets/overrides/_width.scss +6 -3
  98. data/vendor/assets/stylesheets/settings/_colours-applied.scss +11 -5
  99. data/vendor/assets/stylesheets/settings/_colours-organisations.scss +3 -0
  100. data/vendor/assets/stylesheets/settings/_colours-palette.scss +42 -35
  101. data/vendor/assets/stylesheets/settings/_compatibility.scss +0 -1
  102. data/vendor/assets/stylesheets/settings/_ie8.scss +1 -1
  103. data/vendor/assets/stylesheets/settings/_measurements.scss +4 -5
  104. data/vendor/assets/stylesheets/settings/_typography-font-families.scss +2 -2
  105. data/vendor/assets/stylesheets/settings/_typography-font.scss +14 -5
  106. data/vendor/assets/stylesheets/settings/_typography-responsive.scss +6 -2
  107. data/vendor/assets/stylesheets/tools/_compatibility.scss +1 -1
  108. data/vendor/assets/stylesheets/tools/_font-url.scss +1 -4
  109. data/vendor/assets/stylesheets/tools/_ie8.scss +1 -1
  110. data/vendor/assets/stylesheets/tools/_iff.scss +3 -1
  111. data/vendor/assets/stylesheets/tools/_image-url.scss +1 -4
  112. data/vendor/assets/stylesheets/tools/_px-to-em.scss +1 -1
  113. data/vendor/assets/stylesheets/tools/_px-to-rem.scss +1 -1
  114. data/vendor/assets/stylesheets/utilities/_visually-hidden.scss +0 -1
  115. data/vendor/assets/stylesheets/vendor/_sass-mq.scss +0 -4
  116. metadata +36 -3
@@ -16,7 +16,6 @@
16
16
  /// @group settings/compatibility
17
17
  ////
18
18
 
19
-
20
19
  /// Compatibility Mode: alphagov/govuk_frontend_toolkit
21
20
  ///
22
21
  /// Set this to true if you are also including alphagov/govuk_frontend_toolkit
@@ -1,5 +1,5 @@
1
1
  ////
2
- /// @group settings/ie8
2
+ /// @group settings/internet-explorer-8
3
3
  ////
4
4
 
5
5
  /// Whether the stylesheet being built is targeting Internet Explorer 8.
@@ -2,8 +2,6 @@
2
2
  /// @group settings/measurements
3
3
  ////
4
4
 
5
-
6
-
7
5
  // =========================================================
8
6
  // Page layout
9
7
  // =========================================================
@@ -43,8 +41,6 @@ $govuk-gutter: 30px !default;
43
41
 
44
42
  $govuk-gutter-half: $govuk-gutter / 2;
45
43
 
46
-
47
-
48
44
  // =========================================================
49
45
  // Borders
50
46
  // =========================================================
@@ -81,8 +77,11 @@ $govuk-border-width-form-element: 2px !default;
81
77
  ///
82
78
  /// @type Number
83
79
  /// @access public
80
+ /// @deprecated Use $govuk-border-width-form-element instead. There should be no
81
+ /// difference in thickness for inputs in the error state, in order to
82
+ /// maintain a distinct focus state.
84
83
 
85
- $govuk-border-width-form-element-error: 4px !default;
84
+ $govuk-border-width-form-element-error: 2px !default;
86
85
 
87
86
  /// Form group border width when in error state
88
87
  ///
@@ -8,7 +8,7 @@
8
8
  /// @type List
9
9
  /// @access public
10
10
 
11
- $govuk-font-family-gds-transport: "GDS Transport", Arial, sans-serif;
11
+ $govuk-font-family-gds-transport: "GDS Transport", arial, sans-serif;
12
12
 
13
13
  /// List of font families to use if using NTA (old font 'stack' for
14
14
  /// GOV.UK)
@@ -17,7 +17,7 @@ $govuk-font-family-gds-transport: "GDS Transport", Arial, sans-serif;
17
17
  /// @access public
18
18
  /// @deprecated To be removed once support for compatibility mode is dropped
19
19
 
20
- $govuk-font-family-nta: "nta", Arial, sans-serif;
20
+ $govuk-font-family-nta: "nta", arial, sans-serif;
21
21
 
22
22
  /// List of font families to use if using the 'tabular numbers' subset of NTA
23
23
  /// (the default font 'stack' for GOV.UK)
@@ -14,11 +14,15 @@
14
14
  /// @type Boolean
15
15
  /// @access public
16
16
 
17
- $govuk-use-legacy-font: if((
17
+ $govuk-use-legacy-font: if(
18
+ (
18
19
  $govuk-compatibility-govukfrontendtoolkit or
19
20
  $govuk-compatibility-govuktemplate or
20
21
  $govuk-compatibility-govukelements
21
- ), true, false) !default;
22
+ ),
23
+ true,
24
+ false
25
+ ) !default;
22
26
 
23
27
  // =========================================================
24
28
  // Font families
@@ -29,7 +33,8 @@ $govuk-use-legacy-font: if((
29
33
  /// @type List
30
34
  /// @access public
31
35
 
32
- $govuk-font-family: if($govuk-use-legacy-font,
36
+ $govuk-font-family: if(
37
+ $govuk-use-legacy-font,
33
38
  $govuk-font-family-nta,
34
39
  $govuk-font-family-gds-transport
35
40
  ) !default;
@@ -39,13 +44,17 @@ $govuk-font-family: if($govuk-use-legacy-font,
39
44
  /// @type List
40
45
  /// @access public
41
46
 
42
- $govuk-font-family-tabular: if($govuk-use-legacy-font,
47
+ $govuk-font-family-tabular: if(
48
+ $govuk-use-legacy-font,
43
49
  $govuk-font-family-nta-tabular,
44
50
  false
45
51
  ) !default;
46
52
 
47
53
  /// Font families to use for print media
48
54
  ///
55
+ /// We recommend that you use system fonts when printing. This will avoid issues
56
+ /// with some printer drivers and operating systems.
57
+ ///
49
58
  /// @type List
50
59
  /// @access public
51
60
 
@@ -61,7 +70,7 @@ $govuk-font-family-print: sans-serif !default;
61
70
 
62
71
  $govuk-include-default-font-face: (
63
72
  $govuk-font-family == $govuk-font-family-gds-transport
64
- ) !default;
73
+ ) !default;
65
74
 
66
75
  // =========================================================
67
76
  // Font weights
@@ -14,11 +14,15 @@
14
14
  /// @type Boolean
15
15
  /// @access public
16
16
 
17
- $govuk-typography-use-rem: if((
17
+ $govuk-typography-use-rem: if(
18
+ (
18
19
  $govuk-compatibility-govukfrontendtoolkit or
19
20
  $govuk-compatibility-govuktemplate or
20
21
  $govuk-compatibility-govukelements
21
- ), false, true) !default;
22
+ ),
23
+ false,
24
+ true
25
+ ) !default;
22
26
 
23
27
  /// Root font size
24
28
  ///
@@ -1,5 +1,5 @@
1
1
  ////
2
- /// @group tools
2
+ /// @group tools/compatibility-mode
3
3
  ////
4
4
 
5
5
  /// Conditional Compatibility Mixin
@@ -1,10 +1,7 @@
1
1
  ////
2
- /// @group tools
2
+ /// @group tools/assets
3
3
  ////
4
4
 
5
- // Disable indentation linting in this file only
6
- // sass-lint:disable indentation
7
-
8
5
  /// Font URL
9
6
  ///
10
7
  /// If a custom font-url handler is defined ($govuk-font-url-function) then
@@ -1,5 +1,5 @@
1
1
  ////
2
- /// @group tools
2
+ /// @group tools/internet-explorer-8
3
3
  ////
4
4
 
5
5
  /// Conditionally include rules only for IE8
@@ -8,8 +8,10 @@
8
8
  /// @param {Boolean} $condition - Whether to return the value of `$if-true`
9
9
  /// @param {Mixed} $if-true - Value to return if `$condition` is truthy
10
10
  /// @return {Mixed} Value of `$if-true` if `$condition` is truthy, else null
11
- /// @access public
11
+ /// @access private
12
+ /// @deprecated We will be removing this function in a future release, use `if($condition, $if-true, null);` instead.
12
13
 
13
14
  @function iff($condition, $if-true) {
15
+ @warn "The `iff` function will be removed in a future release, use `if($condition, $if-true, null);` instead.";
14
16
  @return if($condition, $if-true, null);
15
17
  }
@@ -1,10 +1,7 @@
1
1
  ////
2
- /// @group tools
2
+ /// @group tools/assets
3
3
  ////
4
4
 
5
- // Disable indentation linting in this file only
6
- // sass-lint:disable indentation
7
-
8
5
  /// Image URL
9
6
  ///
10
7
  /// If a custom image-url handler is defined ($govuk-image-url-function) then
@@ -1,5 +1,5 @@
1
1
  ////
2
- /// @group tools
2
+ /// @group tools/unit-conversion
3
3
  ////
4
4
 
5
5
  /// Convert pixels to em
@@ -1,5 +1,5 @@
1
1
  ////
2
- /// @group tools
2
+ /// @group tools/unit-conversion
3
3
  ////
4
4
 
5
5
  /// Convert pixels to rem
@@ -6,5 +6,4 @@
6
6
  .govuk-visually-hidden-focusable {
7
7
  @include govuk-visually-hidden-focusable;
8
8
  }
9
-
10
9
  }
@@ -1,8 +1,6 @@
1
1
  // mq() v4.0.2
2
2
  // sass-mq/sass-mq
3
3
 
4
- // sass-lint:disable-all
5
-
6
4
  @charset "UTF-8"; // Fixes an issue where Ruby locale is not set properly
7
5
  // See https://github.com/sass-mq/sass-mq/pull/10
8
6
 
@@ -347,5 +345,3 @@ $mq-media-type: all !default;
347
345
  @if length($mq-show-breakpoints) > 0 {
348
346
  @include mq-show-breakpoints;
349
347
  }
350
-
351
- // sass-lint:enable-all
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dxw_govuk_frontend_rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.5.0
4
+ version: 3.10.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - mec
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: exe
11
11
  cert_chain: []
12
- date: 2020-06-26 00:00:00.000000000 Z
12
+ date: 2020-12-23 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: bundler
@@ -49,6 +49,7 @@ files:
49
49
  - ".github/workflows/test.yml"
50
50
  - ".gitignore"
51
51
  - CODE_OF_CONDUCT.md
52
+ - CONTRIBUTING.md
52
53
  - Gemfile
53
54
  - Gemfile.lock
54
55
  - LICENSE.txt
@@ -76,37 +77,69 @@ files:
76
77
  - vendor/assets/images/govuk-mask-icon.svg
77
78
  - vendor/assets/images/govuk-opengraph-image.png
78
79
  - vendor/assets/javascripts/govuk_frontend_rails.js
80
+ - vendor/assets/stylesheets/_base.scss
79
81
  - vendor/assets/stylesheets/all-ie8.scss
80
82
  - vendor/assets/stylesheets/all.scss
81
83
  - vendor/assets/stylesheets/components/_all.scss
82
84
  - vendor/assets/stylesheets/components/accordion/_accordion.scss
85
+ - vendor/assets/stylesheets/components/accordion/_index.scss
83
86
  - vendor/assets/stylesheets/components/back-link/_back-link.scss
87
+ - vendor/assets/stylesheets/components/back-link/_index.scss
84
88
  - vendor/assets/stylesheets/components/breadcrumbs/_breadcrumbs.scss
89
+ - vendor/assets/stylesheets/components/breadcrumbs/_index.scss
85
90
  - vendor/assets/stylesheets/components/button/_button.scss
91
+ - vendor/assets/stylesheets/components/button/_index.scss
86
92
  - vendor/assets/stylesheets/components/character-count/_character-count.scss
93
+ - vendor/assets/stylesheets/components/character-count/_index.scss
87
94
  - vendor/assets/stylesheets/components/checkboxes/_checkboxes.scss
95
+ - vendor/assets/stylesheets/components/checkboxes/_index.scss
88
96
  - vendor/assets/stylesheets/components/date-input/_date-input.scss
97
+ - vendor/assets/stylesheets/components/date-input/_index.scss
89
98
  - vendor/assets/stylesheets/components/details/_details.scss
99
+ - vendor/assets/stylesheets/components/details/_index.scss
90
100
  - vendor/assets/stylesheets/components/error-message/_error-message.scss
101
+ - vendor/assets/stylesheets/components/error-message/_index.scss
91
102
  - vendor/assets/stylesheets/components/error-summary/_error-summary.scss
103
+ - vendor/assets/stylesheets/components/error-summary/_index.scss
92
104
  - vendor/assets/stylesheets/components/fieldset/_fieldset.scss
105
+ - vendor/assets/stylesheets/components/fieldset/_index.scss
93
106
  - vendor/assets/stylesheets/components/file-upload/_file-upload.scss
107
+ - vendor/assets/stylesheets/components/file-upload/_index.scss
94
108
  - vendor/assets/stylesheets/components/footer/_footer.scss
109
+ - vendor/assets/stylesheets/components/footer/_index.scss
95
110
  - vendor/assets/stylesheets/components/header/_header.scss
111
+ - vendor/assets/stylesheets/components/header/_index.scss
96
112
  - vendor/assets/stylesheets/components/hint/_hint.scss
113
+ - vendor/assets/stylesheets/components/hint/_index.scss
114
+ - vendor/assets/stylesheets/components/input/_index.scss
97
115
  - vendor/assets/stylesheets/components/input/_input.scss
116
+ - vendor/assets/stylesheets/components/inset-text/_index.scss
98
117
  - vendor/assets/stylesheets/components/inset-text/_inset-text.scss
118
+ - vendor/assets/stylesheets/components/label/_index.scss
99
119
  - vendor/assets/stylesheets/components/label/_label.scss
120
+ - vendor/assets/stylesheets/components/notification-banner/_index.scss
121
+ - vendor/assets/stylesheets/components/notification-banner/_notification-banner.scss
122
+ - vendor/assets/stylesheets/components/panel/_index.scss
100
123
  - vendor/assets/stylesheets/components/panel/_panel.scss
124
+ - vendor/assets/stylesheets/components/phase-banner/_index.scss
101
125
  - vendor/assets/stylesheets/components/phase-banner/_phase-banner.scss
126
+ - vendor/assets/stylesheets/components/radios/_index.scss
102
127
  - vendor/assets/stylesheets/components/radios/_radios.scss
128
+ - vendor/assets/stylesheets/components/select/_index.scss
103
129
  - vendor/assets/stylesheets/components/select/_select.scss
130
+ - vendor/assets/stylesheets/components/skip-link/_index.scss
104
131
  - vendor/assets/stylesheets/components/skip-link/_skip-link.scss
132
+ - vendor/assets/stylesheets/components/summary-list/_index.scss
105
133
  - vendor/assets/stylesheets/components/summary-list/_summary-list.scss
134
+ - vendor/assets/stylesheets/components/table/_index.scss
106
135
  - vendor/assets/stylesheets/components/table/_table.scss
136
+ - vendor/assets/stylesheets/components/tabs/_index.scss
107
137
  - vendor/assets/stylesheets/components/tabs/_tabs.scss
138
+ - vendor/assets/stylesheets/components/tag/_index.scss
108
139
  - vendor/assets/stylesheets/components/tag/_tag.scss
140
+ - vendor/assets/stylesheets/components/textarea/_index.scss
109
141
  - vendor/assets/stylesheets/components/textarea/_textarea.scss
142
+ - vendor/assets/stylesheets/components/warning-text/_index.scss
110
143
  - vendor/assets/stylesheets/components/warning-text/_warning-text.scss
111
144
  - vendor/assets/stylesheets/core/_all.scss
112
145
  - vendor/assets/stylesheets/core/_global-styles.scss
@@ -185,7 +218,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
185
218
  - !ruby/object:Gem::Version
186
219
  version: '0'
187
220
  requirements: []
188
- rubygems_version: 3.1.2
221
+ rubygems_version: 3.1.4
189
222
  signing_key:
190
223
  specification_version: 4
191
224
  summary: Adds the GOVUK frontend to a Rails application that uses the Asset Pipeline.