govuk_publishing_components 71.1.0 → 71.2.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.
Files changed (36) hide show
  1. checksums.yaml +4 -4
  2. data/app/assets/javascripts/govuk_publishing_components/components/feedback.js +1 -1
  3. data/app/assets/stylesheets/component_guide/application.scss +22 -4
  4. data/app/assets/stylesheets/govuk_publishing_components/_base.scss +1 -2
  5. data/app/assets/stylesheets/govuk_publishing_components/all-components.scss +3 -2
  6. data/app/assets/stylesheets/govuk_publishing_components/components/_action-link.scss +1 -1
  7. data/app/assets/stylesheets/govuk_publishing_components/components/_app-promo-banner.scss +1 -1
  8. data/app/assets/stylesheets/govuk_publishing_components/components/_button.scss +25 -19
  9. data/app/assets/stylesheets/govuk_publishing_components/components/_datetime-fields.scss +20 -0
  10. data/app/assets/stylesheets/govuk_publishing_components/components/_feedback.scss +2 -5
  11. data/app/assets/stylesheets/govuk_publishing_components/components/_inverse-header.scss +1 -1
  12. data/app/assets/stylesheets/govuk_publishing_components/components/_layout-super-navigation-header.scss +9 -11
  13. data/app/assets/stylesheets/govuk_publishing_components/components/_lead-paragraph.scss +8 -1
  14. data/app/assets/stylesheets/govuk_publishing_components/components/_metadata.scss +7 -1
  15. data/app/assets/stylesheets/govuk_publishing_components/components/_search.scss +2 -5
  16. data/app/assets/stylesheets/govuk_publishing_components/components/govspeak/_typography.scss +125 -2
  17. data/app/assets/stylesheets/govuk_publishing_components/lib/_brand-colours.scss +28 -0
  18. data/app/assets/stylesheets/govuk_publishing_components/{components/mixins → mixins}/_index.scss +0 -1
  19. data/app/assets/stylesheets/govuk_publishing_components/specific-components.scss +2 -2
  20. data/app/models/govuk_publishing_components/component_doc.rb +16 -1
  21. data/app/views/govuk_publishing_components/component_guide/show.html.erb +11 -0
  22. data/app/views/govuk_publishing_components/components/_datetime_fields.html.erb +112 -0
  23. data/app/views/govuk_publishing_components/components/_details.html.erb +1 -1
  24. data/app/views/govuk_publishing_components/components/docs/chart.yml +13 -2
  25. data/app/views/govuk_publishing_components/components/docs/datetime_fields.yml +74 -0
  26. data/config/locales/mfe.yml +258 -0
  27. data/lib/govuk_publishing_components/presenters/datetime_fields_helper.rb +68 -0
  28. data/lib/govuk_publishing_components/version.rb +1 -1
  29. data/lib/govuk_publishing_components.rb +1 -0
  30. metadata +2156 -2094
  31. data/app/assets/stylesheets/govuk_publishing_components/components/helpers/_brand-colours.scss +0 -29
  32. data/app/assets/stylesheets/govuk_publishing_components/components/helpers/_colours.scss +0 -12
  33. data/app/assets/stylesheets/govuk_publishing_components/components/helpers/_markdown-typography.scss +0 -127
  34. data/app/assets/stylesheets/govuk_publishing_components/components/mixins/_margins.scss +0 -7
  35. /data/app/assets/stylesheets/govuk_publishing_components/lib/{_print_support.scss → _print-support.scss} +0 -0
  36. /data/app/assets/stylesheets/govuk_publishing_components/{components/mixins → mixins}/_high-contrast-outline.scss +0 -0
@@ -1,29 +0,0 @@
1
- @mixin organisation-brand-colour {
2
- @each $organisation in map-keys($govuk-colours-organisations) {
3
- .brand--#{$organisation} {
4
- // the & declaration allows border-color to also be applied to the parent
5
- // element as required by the heading component, adds 2KB to the CSS
6
- &.brand__border-color,
7
- .brand__border-color {
8
- border-color: govuk-organisation-colour($organisation, $contrast-safe: false);
9
- }
10
- }
11
- }
12
- }
13
-
14
- @include organisation-brand-colour;
15
-
16
- .brand--government-digital-service {
17
- &.brand__border-color,
18
- .brand__border-color {
19
- border-color: #16eeee;
20
- }
21
- }
22
-
23
- // This can be removed once the organisation is added to govuk-frontend
24
- .brand--department-for-business-innovation-science-trade {
25
- &.brand__border-color,
26
- .brand__border-color {
27
- border-color: #ff4328;
28
- }
29
- }
@@ -1,12 +0,0 @@
1
- $gem-secondary-button-colour: govuk-colour("green", $variant: "shade-25");
2
- $gem-secondary-button-hover-colour: govuk-colour("green", $variant: "shade-50");
3
- $gem-secondary-button-background-colour: govuk-colour("white");
4
- $gem-secondary-button-hover-background-colour: govuk-colour("black", $variant: "tint-95");
5
-
6
- $gem-quiet-button-colour: govuk-functional-colour("secondary-text");
7
- $gem-quiet-button-hover-colour: govuk-colour("black");
8
- $gem-quiet-button-hover-background-colour: govuk-colour("black", $variant: "tint-80");
9
-
10
- $govuk-blue-tint-95: govuk-colour("blue", $variant: "tint-95");
11
- $govuk-blue-tint-80: govuk-colour("blue", $variant: "tint-80");
12
- $govuk-blue-tint-50: govuk-colour("blue", $variant: "tint-50");
@@ -1,127 +0,0 @@
1
- @mixin markdown-typography {
2
- color: govuk-functional-colour(text);
3
- @include govuk-font($size: 16);
4
-
5
- ol,
6
- ul,
7
- p {
8
- margin: 0 0 govuk-spacing(4);
9
- @include govuk-font($size: 19);
10
- }
11
-
12
- // Headings
13
-
14
- // put some spacing between any element followed by a heading
15
- // has to be padding on the heading otherwise margins would overlap
16
-
17
- * + h2,
18
- * + h3 {
19
- padding-top: govuk-spacing(4);
20
- }
21
-
22
- // Markdown is expected to be styled within a document with a H1 title
23
- // thus H1's are not expected and are discouraged by bare styling
24
-
25
- h1 {
26
- margin: 0;
27
- padding: 0;
28
- @include govuk-font($size: 19);
29
- @include govuk-text-break-word;
30
- }
31
-
32
- h2 {
33
- margin: 0 0 govuk-spacing(4);
34
- @include govuk-font($size: 24, $weight: bold);
35
- @include govuk-text-break-word;
36
- }
37
-
38
- h3 {
39
- margin: 0 0 govuk-spacing(4);
40
- @include govuk-font($size: 19, $weight: bold);
41
- @include govuk-text-break-word;
42
- }
43
-
44
- // H4, H5 and H6 are discouraged and thus styled the same
45
-
46
- h4,
47
- h5,
48
- h6 {
49
- margin: 0;
50
- @include govuk-font($size: 19, $weight: bold);
51
- @include govuk-text-break-word;
52
- }
53
-
54
- // Links
55
-
56
- // stylelint-disable-next-line selector-no-qualifying-type
57
- a:not(.govuk-button) {
58
- @include govuk-link-common;
59
- @include govuk-link-style-default;
60
- @include govuk-text-break-word;
61
-
62
- &:focus {
63
- @include govuk-focused-text;
64
- }
65
-
66
- @include govuk-media-query($media-type: print) {
67
- color: govuk-functional-colour(print-text) !important; // stylelint-disable-line declaration-no-important
68
- }
69
- }
70
-
71
- // Lists
72
-
73
- ol,
74
- ul {
75
- // we intentionally don't set list-style for ol elements, so that they can
76
- // utilise the type attribute for the formatting. Browsers default to a
77
- // style of decimal.
78
- list-style-position: outside;
79
- margin: 0 0 govuk-spacing(4) govuk-spacing(4);
80
- padding: 0;
81
- }
82
-
83
- ul {
84
- list-style: disc;
85
- }
86
-
87
- .list-no-bullets {
88
- list-style: none;
89
- margin: 0;
90
- }
91
-
92
- li {
93
- margin: 0 0 govuk-spacing(2);
94
- padding: 0;
95
-
96
- p {
97
- margin: 0 0 govuk-spacing(2);
98
- }
99
- }
100
-
101
- // Text styles
102
-
103
- sup {
104
- font-size: .8em;
105
- line-height: .7em;
106
- vertical-align: super;
107
- }
108
-
109
- abbr {
110
- cursor: help;
111
- text-decoration: none;
112
- }
113
-
114
- // Horizontal Rule
115
-
116
- hr {
117
- margin-top: govuk-spacing(6) - 1px;
118
- margin-bottom: govuk-spacing(6);
119
- border-top: 1px solid govuk-functional-colour(border);
120
- }
121
-
122
- code {
123
- padding: 0 5px;
124
- color: #d13118;
125
- background-color: govuk-colour("black", $variant: "tint-95");
126
- }
127
- }
@@ -1,7 +0,0 @@
1
- @mixin responsive-bottom-margin {
2
- margin-bottom: govuk-spacing(3);
3
-
4
- @include govuk-media-query($from: tablet) {
5
- margin-bottom: govuk-spacing(7);
6
- }
7
- }