govuk_publishing_components 11.0.0 → 11.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (115) hide show
  1. checksums.yaml +4 -4
  2. data/app/assets/javascripts/govuk_publishing_components/admin_scripts.js +1 -1
  3. data/app/assets/javascripts/govuk_publishing_components/components/radio.js +1 -1
  4. data/app/assets/stylesheets/govuk_publishing_components/_all_components.scss +11 -3
  5. data/app/assets/stylesheets/govuk_publishing_components/admin_styles.scss +2 -4
  6. data/app/assets/stylesheets/govuk_publishing_components/admin_styles_ie8.scss +2 -1
  7. data/app/assets/stylesheets/govuk_publishing_components/components/_back-link.scss +2 -6
  8. data/app/assets/stylesheets/govuk_publishing_components/components/_button.scss +3 -9
  9. data/app/assets/stylesheets/govuk_publishing_components/components/_details.scss +2 -1
  10. data/app/assets/stylesheets/govuk_publishing_components/components/_error-message.scss +2 -6
  11. data/app/assets/stylesheets/govuk_publishing_components/components/_file-upload.scss +3 -7
  12. data/app/assets/stylesheets/govuk_publishing_components/components/_hint.scss +2 -6
  13. data/app/assets/stylesheets/govuk_publishing_components/components/_input.scss +3 -7
  14. data/app/assets/stylesheets/govuk_publishing_components/components/_inset-text.scss +2 -1
  15. data/app/assets/stylesheets/govuk_publishing_components/components/_label.scss +2 -6
  16. data/app/assets/stylesheets/govuk_publishing_components/components/_layout-footer.scss +2 -1
  17. data/app/assets/stylesheets/govuk_publishing_components/components/_layout-header.scss +2 -13
  18. data/app/assets/stylesheets/govuk_publishing_components/components/_panel.scss +2 -6
  19. data/app/assets/stylesheets/govuk_publishing_components/components/_radio.scss +3 -8
  20. data/app/assets/stylesheets/govuk_publishing_components/components/_select.scss +2 -1
  21. data/app/assets/stylesheets/govuk_publishing_components/components/_skip-link.scss +2 -1
  22. data/app/assets/stylesheets/govuk_publishing_components/components/_table.scss +15 -10
  23. data/app/assets/stylesheets/govuk_publishing_components/components/_tabs.scss +2 -1
  24. data/app/assets/stylesheets/govuk_publishing_components/components/_textarea.scss +3 -1
  25. data/app/assets/stylesheets/govuk_publishing_components/components/govspeak/_button.scss +1 -1
  26. data/app/assets/stylesheets/govuk_publishing_components/components/helpers/_govuk-frontend-settings.scss +5 -0
  27. data/app/views/govuk_publishing_components/components/_admin_analytics.html.erb +10 -0
  28. data/app/views/govuk_publishing_components/components/_file_upload.html.erb +1 -1
  29. data/app/views/govuk_publishing_components/components/_input.html.erb +7 -5
  30. data/app/views/govuk_publishing_components/components/_layout_footer.html.erb +43 -1
  31. data/app/views/govuk_publishing_components/components/_textarea.html.erb +1 -1
  32. data/app/views/govuk_publishing_components/components/docs/admin_analytics.yml +9 -0
  33. data/app/views/govuk_publishing_components/components/docs/details.yml +1 -2
  34. data/app/views/govuk_publishing_components/components/docs/input.yml +9 -0
  35. data/app/views/govuk_publishing_components/components/docs/inset_text.yml +1 -2
  36. data/app/views/govuk_publishing_components/components/docs/layout_footer.yml +117 -3
  37. data/app/views/govuk_publishing_components/components/docs/select.yml +1 -2
  38. data/app/views/govuk_publishing_components/components/docs/textarea.yml +1 -2
  39. data/config/initializers/assets.rb +1 -1
  40. data/lib/govuk_publishing_components.rb +1 -0
  41. data/lib/govuk_publishing_components/app_helpers/environment.rb +18 -0
  42. data/lib/govuk_publishing_components/version.rb +1 -1
  43. data/node_modules/govuk-frontend/all.js +3 -1
  44. data/node_modules/govuk-frontend/assets/images/favicon.ico +0 -0
  45. data/node_modules/govuk-frontend/components/back-link/macro-options.json +32 -0
  46. data/node_modules/govuk-frontend/components/breadcrumbs/README.md +12 -0
  47. data/node_modules/govuk-frontend/components/breadcrumbs/macro-options.json +40 -0
  48. data/node_modules/govuk-frontend/components/breadcrumbs/template.njk +1 -1
  49. data/node_modules/govuk-frontend/components/button/_button.scss +4 -9
  50. data/node_modules/govuk-frontend/components/button/macro-options.json +62 -0
  51. data/node_modules/govuk-frontend/components/checkboxes/_checkboxes.scss +2 -4
  52. data/node_modules/govuk-frontend/components/checkboxes/macro-options.json +129 -0
  53. data/node_modules/govuk-frontend/components/date-input/README.md +19 -7
  54. data/node_modules/govuk-frontend/components/date-input/macro-options.json +85 -0
  55. data/node_modules/govuk-frontend/components/date-input/template.njk +2 -22
  56. data/node_modules/govuk-frontend/components/details/_details.scss +3 -0
  57. data/node_modules/govuk-frontend/components/details/macro-options.json +50 -0
  58. data/node_modules/govuk-frontend/components/error-message/macro-options.json +32 -0
  59. data/node_modules/govuk-frontend/components/error-summary/README.md +12 -0
  60. data/node_modules/govuk-frontend/components/error-summary/_error-summary.scss +7 -3
  61. data/node_modules/govuk-frontend/components/error-summary/macro-options.json +70 -0
  62. data/node_modules/govuk-frontend/components/error-summary/template.njk +1 -1
  63. data/node_modules/govuk-frontend/components/fieldset/_fieldset.scss +1 -2
  64. data/node_modules/govuk-frontend/components/fieldset/macro-options.json +58 -0
  65. data/node_modules/govuk-frontend/components/file-upload/macro-options.json +53 -0
  66. data/node_modules/govuk-frontend/components/footer/README.md +48 -0
  67. data/node_modules/govuk-frontend/components/footer/_footer.scss +10 -2
  68. data/node_modules/govuk-frontend/components/footer/macro-options.json +100 -0
  69. data/node_modules/govuk-frontend/components/footer/template.njk +19 -12
  70. data/node_modules/govuk-frontend/components/header/README.md +14 -2
  71. data/node_modules/govuk-frontend/components/header/_header.scss +9 -1
  72. data/node_modules/govuk-frontend/components/header/macro-options.json +88 -0
  73. data/node_modules/govuk-frontend/components/header/template.njk +2 -2
  74. data/node_modules/govuk-frontend/components/hint/macro-options.json +32 -0
  75. data/node_modules/govuk-frontend/components/input/README.md +1 -1
  76. data/node_modules/govuk-frontend/components/input/_input.scss +1 -3
  77. data/node_modules/govuk-frontend/components/input/macro-options.json +52 -0
  78. data/node_modules/govuk-frontend/components/inset-text/macro-options.json +32 -0
  79. data/node_modules/govuk-frontend/components/label/macro-options.json +38 -0
  80. data/node_modules/govuk-frontend/components/panel/README.md +5 -5
  81. data/node_modules/govuk-frontend/components/panel/_panel.scss +1 -3
  82. data/node_modules/govuk-frontend/components/panel/macro-options.json +44 -0
  83. data/node_modules/govuk-frontend/components/panel/template.njk +1 -2
  84. data/node_modules/govuk-frontend/components/phase-banner/macro-options.json +33 -0
  85. data/node_modules/govuk-frontend/components/radios/_radios.scss +10 -4
  86. data/node_modules/govuk-frontend/components/radios/macro-options.json +135 -0
  87. data/node_modules/govuk-frontend/components/radios/template.njk +1 -1
  88. data/node_modules/govuk-frontend/components/select/README.md +63 -0
  89. data/node_modules/govuk-frontend/components/select/_select.scss +1 -4
  90. data/node_modules/govuk-frontend/components/select/macro-options.json +79 -0
  91. data/node_modules/govuk-frontend/components/select/template.njk +4 -1
  92. data/node_modules/govuk-frontend/components/skip-link/macro-options.json +32 -0
  93. data/node_modules/govuk-frontend/components/table/_table.scss +7 -4
  94. data/node_modules/govuk-frontend/components/table/macro-options.json +108 -0
  95. data/node_modules/govuk-frontend/components/tabs/README.md +29 -5
  96. data/node_modules/govuk-frontend/components/tabs/_tabs.scss +1 -1
  97. data/node_modules/govuk-frontend/components/tabs/macro-options.json +58 -0
  98. data/node_modules/govuk-frontend/components/tabs/tabs.js +3 -1
  99. data/node_modules/govuk-frontend/components/tabs/template.njk +3 -2
  100. data/node_modules/govuk-frontend/components/tag/macro-options.json +26 -0
  101. data/node_modules/govuk-frontend/components/textarea/_textarea.scss +4 -3
  102. data/node_modules/govuk-frontend/components/textarea/macro-options.json +65 -0
  103. data/node_modules/govuk-frontend/components/warning-text/macro-options.json +32 -0
  104. data/node_modules/govuk-frontend/core/_links.scss +1 -14
  105. data/node_modules/govuk-frontend/core/_lists.scss +0 -18
  106. data/node_modules/govuk-frontend/helpers/_grid.scss +1 -2
  107. data/node_modules/govuk-frontend/helpers/_links.scss +52 -1
  108. data/node_modules/govuk-frontend/overrides/_width.scss +4 -0
  109. data/node_modules/govuk-frontend/package.json +19 -19
  110. data/node_modules/govuk-frontend/settings/_colours-applied.scss +10 -0
  111. data/node_modules/govuk-frontend/settings/_compatibility.scss +3 -3
  112. data/node_modules/govuk-frontend/settings/_typography-responsive.scss +10 -3
  113. data/node_modules/govuk-frontend/template.njk +1 -1
  114. data/node_modules/govuk-frontend/utilities/_visually-hidden.scss +0 -5
  115. metadata +32 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 154ec0ba2a3a52f59a7ac5f399812d37b323ae2adc3665e7632324f666d999d2
4
- data.tar.gz: bd0339d107c6f63330401b89b375337eafe10c434d9c64f30533da52c62af5b3
3
+ metadata.gz: a29866b641cb5fe11013b5ccbf65ac711103b2326195a1dd90aae163ca7504a9
4
+ data.tar.gz: 06ebbec6ea9f80236b7f7cd0662b0f621ddece915d73aba443c5efdb72931fb3
5
5
  SHA512:
6
- metadata.gz: 911320cba45f74c279e24175182f696217cd7df82baf3454eccc8b7d8ba00b9b8551c5c4f3fe549a111690b0e6bcc5991c9cd44b7a908600492e39fd7b1e4058
7
- data.tar.gz: 3072d1970d946fb3ca9217ad042eb7d5c6e0c591473b6abb8592fb799eca83da3bfe7c4dbd1754b014b5c30d0b670590ba1b569fcc6c284945d2c1f3f20efe4a
6
+ metadata.gz: 84021fce8199dcba9adf8b358f40c62d5b18576df386da134852b21bc23c2695fadf0267ca85487910d16c5b95ee9735222491d9dd7c5d4a5c5dc36be96197e5
7
+ data.tar.gz: 6e13d1192539f79e3213dfc836e1c113cbd41a0288025676ab60dea39f61b34878fe2a2c1a07f272700a2529d4e4e8dd62e0915b6492a71bbf0d6c62b92be220
@@ -1,4 +1,4 @@
1
- //= require all.js
1
+ //= require govuk-frontend/all.js
2
2
 
3
3
  // Initialise all GOVUKFrontend components
4
4
  window.GOVUKFrontend.initAll()
@@ -1,5 +1,5 @@
1
1
  // This component relies on JavaScript from GOV.UK Frontend
2
- //= require components/radios/radios.js
2
+ //= require govuk-frontend/components/radios/radios.js
3
3
 
4
4
  window.GOVUK = window.GOVUK || {}
5
5
  window.GOVUK.FrontendModules = window.GOVUK.FrontendModules || {};
@@ -14,7 +14,10 @@
14
14
  @import "components/button";
15
15
  @import "components/contents-list";
16
16
  @import "components/copy-to-clipboard";
17
+ @import "components/details";
17
18
  @import "components/document-list";
19
+ @import "components/error-alert";
20
+ @import "components/error-message";
18
21
  @import "components/error-summary";
19
22
  @import "components/feedback";
20
23
  @import "components/fieldset";
@@ -22,10 +25,14 @@
22
25
  @import "components/govspeak";
23
26
  @import "components/heading";
24
27
  @import "components/highlight-boxes";
28
+ @import "components/hint";
25
29
  @import "components/image-card";
26
30
  @import "components/input";
31
+ @import "components/inset-text";
27
32
  @import "components/inverse-header";
28
33
  @import "components/label";
34
+ @import "components/layout-footer";
35
+ @import "components/layout-header";
29
36
  @import "components/lead-paragraph";
30
37
  @import "components/metadata";
31
38
  @import "components/notice";
@@ -36,16 +43,17 @@
36
43
  @import "components/radio";
37
44
  @import "components/related-navigation";
38
45
  @import "components/search";
46
+ @import "components/select";
39
47
  @import "components/share-links";
48
+ @import "components/skip-link";
40
49
  @import "components/step-by-step-nav-header";
41
50
  @import "components/step-by-step-nav-related";
42
51
  @import "components/step-by-step-nav";
43
52
  @import "components/subscription-links";
44
53
  @import "components/success-alert";
45
- @import "components/error-alert";
46
- @import "components/table";
47
54
  @import "components/tabs";
48
- @import "components/taxonomy-navigation";
55
+ @import "components/table";
49
56
  @import "components/taxonomy-list";
57
+ @import "components/taxonomy-navigation";
50
58
  @import "components/title";
51
59
  @import "components/translation-nav";
@@ -1,8 +1,6 @@
1
1
  // Include all of the GOV.UK Frontend styles. This includes fonts, and individual components.
2
- $govuk-image-url-function: "image-url";
3
- $govuk-font-url-function: "font-url";
4
-
5
- @import "../../../node_modules/govuk-frontend/all";
2
+ @import "govuk_publishing_components/components/helpers/govuk-frontend-settings";
3
+ @import "govuk-frontend/all";
6
4
 
7
5
  // Include our GOV.UK components
8
6
  @import "govuk_publishing_components/all_components";
@@ -1,2 +1,3 @@
1
1
  // Include all of the GOV.UK Frontend styles for IE8
2
- @import "../../../node_modules/govuk-frontend/all-ie8";
2
+ @import "govuk_publishing_components/components/helpers/govuk-frontend-settings";
3
+ @import "govuk-frontend/all-ie8";
@@ -1,6 +1,2 @@
1
- // This component relies on styles from GOV.UK Frontend
2
-
3
- // Specify the functions used to resolve assets paths in SCSS
4
- $govuk-font-url-function: "font-url";
5
-
6
- @import "../../../../node_modules/govuk-frontend/components/back-link/back-link";
1
+ @import "helpers/govuk-frontend-settings";
2
+ @import "govuk-frontend/components/back-link/back-link";
@@ -1,8 +1,6 @@
1
- // This component relies on styles from GOV.UK Frontend
2
-
3
- // Specify the functions used to resolve assets paths in SCSS
4
- $govuk-image-url-function: "image-url";
5
- $govuk-font-url-function: "font-url";
1
+ @import "helpers/govuk-frontend-settings";
2
+ @import "mixins/margins";
3
+ @import "govuk-frontend/components/button/button";
6
4
 
7
5
  $gem-secondary-button-colour: #00823b;
8
6
  $gem-secondary-button-hover-colour: darken($gem-secondary-button-colour, 5%);
@@ -16,10 +14,6 @@ $gem-destructive-button-background-colour: govuk-colour("red");
16
14
  $gem-destructive-button-hover-background-colour: darken($gem-destructive-button-background-colour, 5%);
17
15
  $gem-destructive-button-border-colour: govuk-colour("black");
18
16
 
19
- @import "../../../../node_modules/govuk-frontend/components/button/button";
20
-
21
- @import "mixins/margins";
22
-
23
17
  // Because govuk-frontend adds a responsive bottom margin by default for each component
24
18
  // we reset it to zero so we can set it separately using `gem-c-button--bottom-margin`
25
19
  // If we decide to use responsive margins consistently across components we can remove this
@@ -1 +1,2 @@
1
- // This component relies on styles from GOV.UK Frontend
1
+ @import "helpers/govuk-frontend-settings";
2
+ @import "govuk-frontend/components/details/details";
@@ -1,6 +1,2 @@
1
- // This component relies on styles from GOV.UK Frontend
2
-
3
- // Specify the functions used to resolve assets paths in SCSS
4
- $govuk-font-url-function: "font-url";
5
-
6
- @import "../../../../node_modules/govuk-frontend/components/error-message/error-message";
1
+ @import "helpers/govuk-frontend-settings";
2
+ @import "govuk-frontend/components/error-message/error-message";
@@ -1,7 +1,3 @@
1
- // This component relies on styles from GOV.UK Frontend
2
-
3
- // Specify the functions used to resolve assets paths in SCSS
4
- $govuk-font-url-function: "font-url";
5
-
6
- @import "../../../../node_modules/govuk-frontend/components/file-upload/file-upload";
7
- @import "../../../../node_modules/govuk-frontend/objects/form-group";
1
+ @import "helpers/govuk-frontend-settings";
2
+ @import "govuk-frontend/components/file-upload/file-upload";
3
+ @import "govuk-frontend/objects/form-group";
@@ -1,6 +1,2 @@
1
- // This component relies on styles from GOV.UK Frontend
2
-
3
- // Specify the functions used to resolve assets paths in SCSS
4
- $govuk-font-url-function: "font-url";
5
-
6
- @import "../../../../node_modules/govuk-frontend/components/hint/hint";
1
+ @import "helpers/govuk-frontend-settings";
2
+ @import "govuk-frontend/components/hint/hint";
@@ -1,7 +1,3 @@
1
- // This component relies on styles from GOV.UK Frontend
2
-
3
- // Specify the functions used to resolve assets paths in SCSS
4
- $govuk-font-url-function: "font-url";
5
-
6
- @import "../../../../node_modules/govuk-frontend/components/input/input";
7
- @import "../../../../node_modules/govuk-frontend/objects/form-group";
1
+ @import "helpers/govuk-frontend-settings";
2
+ @import "govuk-frontend/components/input/input";
3
+ @import "govuk-frontend/objects/form-group";
@@ -1 +1,2 @@
1
- // This component relies on styles from GOV.UK Frontend
1
+ @import "helpers/govuk-frontend-settings";
2
+ @import "govuk-frontend/components/inset-text/inset-text";
@@ -1,6 +1,2 @@
1
- // This component relies on styles from GOV.UK Frontend
2
-
3
- // Specify the functions used to resolve assets paths in SCSS
4
- $govuk-font-url-function: "font-url";
5
-
6
- @import "../../../../node_modules/govuk-frontend/components/label/label";
1
+ @import "helpers/govuk-frontend-settings";
2
+ @import "govuk-frontend/components/label/label";
@@ -1 +1,2 @@
1
- // This component relies on styles from GOV.UK Frontend
1
+ @import "helpers/govuk-frontend-settings";
2
+ @import "govuk-frontend/components/footer/footer";
@@ -1,4 +1,5 @@
1
- // This component relies on styles from GOV.UK Frontend
1
+ @import "helpers/govuk-frontend-settings";
2
+ @import "govuk-frontend/components/header/header";
2
3
 
3
4
  .gem-c-layout-header--integration .govuk-header__container,
4
5
  .gem-c-layout-header--staging .govuk-header__container {
@@ -9,15 +10,3 @@
9
10
  .gem-c-layout-header--test .govuk-header__container {
10
11
  border-bottom-color: govuk-colour("grey-1");
11
12
  }
12
-
13
- .govuk-header__logo {
14
- @include mq ($from: desktop) {
15
- float: left;
16
- }
17
- }
18
-
19
- .govuk-header__content {
20
- @include mq ($from: desktop) {
21
- float: left;
22
- }
23
- }
@@ -1,6 +1,2 @@
1
- // This component relies on styles from GOV.UK Frontend
2
-
3
- // Specify the functions used to resolve assets paths in SCSS
4
- $govuk-font-url-function: "font-url";
5
-
6
- @import "../../../../node_modules/govuk-frontend/components/panel/panel";
1
+ @import "helpers/govuk-frontend-settings";
2
+ @import "govuk-frontend/components/panel/panel";
@@ -1,8 +1,3 @@
1
- // This component relies on styles from GOV.UK Frontend
2
-
3
- // Specify the functions used to resolve assets paths in SCSS
4
- $govuk-image-url-function: "image-url";
5
- $govuk-font-url-function: "font-url";
6
-
7
- @import "../../../../node_modules/govuk-frontend/components/radios/radios";
8
- @import "../../../../node_modules/govuk-frontend/objects/form-group";
1
+ @import "helpers/govuk-frontend-settings";
2
+ @import "govuk-frontend/components/radios/radios";
3
+ @import "govuk-frontend/objects/form-group";
@@ -1 +1,2 @@
1
- // This component relies on styles from GOV.UK Frontend
1
+ @import "helpers/govuk-frontend-settings";
2
+ @import "govuk-frontend/components/select/select";
@@ -1 +1,2 @@
1
- // This component relies on styles from GOV.UK Frontend
1
+ @import "helpers/govuk-frontend-settings";
2
+ @import "govuk-frontend/components/skip-link/skip-link";
@@ -1,10 +1,8 @@
1
- // This component relies on styles from GOV.UK Frontend
2
-
3
- // Specify the functions used to resolve assets paths in SCSS
4
- $govuk-font-url-function: "font-url";
5
-
6
- @import "../../../../node_modules/govuk-frontend/components/table/table";
7
- @import "../../../../node_modules/govuk-frontend/core/links";
1
+ @import "helpers/govuk-frontend-settings";
2
+ @import "govuk-frontend/components/table/table";
3
+ @import "govuk-frontend/core/links";
4
+ @import "govuk-frontend/helpers/shape-arrow";
5
+ @import "govuk-frontend/helpers/focusable";
8
6
 
9
7
  $table-border-width: 1px;
10
8
  $table-border-colour: govuk-colour("grey-2");
@@ -38,7 +36,8 @@ $table-row-even-background-colour: govuk-colour("grey-4");
38
36
  }
39
37
 
40
38
  .app-table__sort-link {
41
- @include govuk-link-common;
39
+ @include govuk-link-style-no-visited-state;
40
+ @include govuk-focusable-fill;
42
41
  position: relative;
43
42
  padding-right: $sort-link-arrow-size;
44
43
  color: $govuk-link-colour;
@@ -70,10 +69,16 @@ $table-row-even-background-colour: govuk-colour("grey-4");
70
69
 
71
70
  .app-table__sort-link {
72
71
  padding-right: govuk-spacing(4);
73
- color: $sort-link-active-colour;
72
+
73
+ &:link,
74
+ &:visited,
75
+ &:hover,
76
+ &:active {
77
+ color: $sort-link-active-colour;
78
+ }
74
79
 
75
80
  &:focus {
76
- color: $govuk-link-colour;
81
+ color: $govuk-focus-text-colour;
77
82
  }
78
83
  }
79
84
 
@@ -1,4 +1,5 @@
1
- // This component relies on styles from GOV.UK Frontend
1
+ @import "helpers/govuk-frontend-settings";
2
+ @import "govuk-frontend/components/tabs/tabs";
2
3
 
3
4
  .js-enabled {
4
5
  .gem-c-tabs__panel--no-border {
@@ -1 +1,3 @@
1
- // This component relies on styles from GOV.UK Frontend
1
+ @import "helpers/govuk-frontend-settings";
2
+ @import "govuk-frontend/components/textarea/textarea";
3
+ @import "govuk-frontend/objects/form-group";
@@ -1,4 +1,4 @@
1
- @import "../../../../node_modules/govuk-frontend/components/button/button";
1
+ @import "govuk-frontend/components/button/button";
2
2
 
3
3
  // scss-lint:disable PlaceholderInExtend
4
4
  .gem-c-govspeak {
@@ -0,0 +1,5 @@
1
+ $govuk-image-url-function: "image-url";
2
+ $govuk-font-url-function: "font-url";
3
+ $govuk-compatibility-govuktemplate: true;
4
+ $govuk-compatibility-govukelements: true;
5
+ $govuk-typography-use-rem: false;
@@ -0,0 +1,10 @@
1
+ <script class="analytics">
2
+ (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
3
+ (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
4
+ m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
5
+ })(window,document,'script','//www.google-analytics.com/analytics.js','ga');
6
+
7
+ ga('create', 'UA-26179049-6', '<%= ENV['GOVUK_APP_DOMAIN'] %>');
8
+ ga('set', 'anonymizeIp', true);
9
+ ga('send', 'pageview');
10
+ </script>
@@ -26,7 +26,7 @@
26
26
 
27
27
  <%= content_tag :div, class: form_group_css_classes do %>
28
28
  <% if label %>
29
- <%= render "govuk_publishing_components/components/label", { html_for: id, text: label[:text] }.merge(label) %>
29
+ <%= render "govuk_publishing_components/components/label", { html_for: id, text: label[:text] }.merge(label.symbolize_keys) %>
30
30
  <% end %>
31
31
 
32
32
  <% if hint %>
@@ -8,6 +8,8 @@
8
8
  label ||= nil
9
9
  hint ||= nil
10
10
  error_message ||= nil
11
+ autofocus ||= nil
12
+ tabindex ||= nil
11
13
  hint_id = "hint-#{SecureRandom.hex(4)}" if hint
12
14
  error_message_id = "error-message-#{SecureRandom.hex(4)}" if error_message
13
15
 
@@ -31,7 +33,7 @@
31
33
  <% if label %>
32
34
  <%= render "govuk_publishing_components/components/label", {
33
35
  html_for: id
34
- }.merge(label) %>
36
+ }.merge(label.symbolize_keys) %>
35
37
  <% end %>
36
38
 
37
39
  <% if hint %>
@@ -48,16 +50,16 @@
48
50
  } %>
49
51
  <% end %>
50
52
 
51
- <%= text_field_tag name,
52
- value,
53
- {
53
+ <%= tag.input name: name,
54
+ value: value,
54
55
  class: css_classes,
55
56
  id: id,
56
57
  type: type,
57
58
  data: data,
59
+ tabindex: tabindex,
60
+ autofocus: autofocus,
58
61
  aria: {
59
62
  describedby: aria_described_by
60
63
  }
61
- }
62
64
  %>
63
65
  <% end %>
@@ -1,8 +1,50 @@
1
+ <%
2
+ meta ||= []
3
+ navigation ||= []
4
+ %>
1
5
  <footer class="gem-c-layout-footer govuk-footer" role="contentinfo">
2
6
  <div class="govuk-width-container ">
7
+ <% if navigation.any? %>
8
+ <div class="govuk-footer__navigation">
9
+ <% navigation.each do |item| %>
10
+ <div class="govuk-footer__section">
11
+ <h2 class="govuk-footer__heading govuk-heading-m"><%= item[:title] %></h2>
12
+ <% if item[:items] %>
13
+ <%
14
+ list_classes = %w( govuk-footer__list )
15
+ list_classes << "govuk-footer__list--columns-#{item[:columns]}" if item[:columns]
16
+ %>
17
+ <ul class="<%= list_classes.join(' ') %>">
18
+ <% item[:items].each do |item| %>
19
+ <% if item[:href] && item[:text] %>
20
+ <li class="govuk-footer__list-item">
21
+ <a class="govuk-footer__link" href="<%= item[:href] %>">
22
+ <%= item[:text] %>
23
+ </a>
24
+ </li>
25
+ <% end %>
26
+ <% end %>
27
+ </ul>
28
+ <% end %>
29
+ </div>
30
+ <% end %>
31
+ </div>
32
+ <hr class="govuk-footer__section-break">
33
+ <% end %>
3
34
  <div class="govuk-footer__meta">
4
35
  <div class="govuk-footer__meta-item govuk-footer__meta-item--grow">
5
-
36
+ <% if meta.any? %>
37
+ <h2 class="govuk-visually-hidden">Support links</h2>
38
+ <ul class="govuk-footer__inline-list">
39
+ <% meta[:items].each do |item| %>
40
+ <li class="govuk-footer__inline-list-item">
41
+ <a class="govuk-footer__link" href="<%= item[:href] %>">
42
+ <%= item[:text] %>
43
+ </a>
44
+ </li>
45
+ <% end %>
46
+ </ul>
47
+ <% end %>
6
48
  <svg role="presentation" focusable="false" class="govuk-footer__licence-logo" xmlns="http://www.w3.org/2000/svg" viewbox="0 0 483.2 195.7" height="17" width="41">
7
49
  <path
8
50
  fill="currentColor"
@@ -27,7 +27,7 @@
27
27
 
28
28
  <%= content_tag :div, class: form_group_css_classes do %>
29
29
  <% if label %>
30
- <%= render "govuk_publishing_components/components/label", { html_for: id }.merge(label) %>
30
+ <%= render "govuk_publishing_components/components/label", { html_for: id }.merge(label.symbolize_keys) %>
31
31
  <% end %>
32
32
 
33
33
  <% if hint %>
@@ -0,0 +1,9 @@
1
+ name: Admin Analytics
2
+ description: |
3
+ Google Analytics script for tracking user interaction in admin (backend) apps.
4
+ accessibility_criteria: |
5
+ The component should not be visible to any users.
6
+ display_html: true
7
+ examples:
8
+ default:
9
+ data: {}