@nationalarchives/frontend 0.1.15-prerelease → 0.1.16-prerelease

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 (66) hide show
  1. package/LICENCE +21 -0
  2. package/nationalarchives/all.css +1 -1
  3. package/nationalarchives/all.css.map +1 -1
  4. package/nationalarchives/all.js +1 -1
  5. package/nationalarchives/all.js.map +1 -1
  6. package/nationalarchives/components/_index.scss +1 -0
  7. package/nationalarchives/components/breadcrumbs/_index.scss +11 -39
  8. package/nationalarchives/components/breadcrumbs/breadcrumbs.js +1 -1
  9. package/nationalarchives/components/breadcrumbs/breadcrumbs.js.map +1 -1
  10. package/nationalarchives/components/breadcrumbs/breadcrumbs.mjs +8 -4
  11. package/nationalarchives/components/breadcrumbs/breadcrumbs.stories.js +9 -30
  12. package/nationalarchives/components/breadcrumbs/fixtures.json +23 -1
  13. package/nationalarchives/components/breadcrumbs/macro-options.json +6 -0
  14. package/nationalarchives/components/breadcrumbs/template.njk +17 -12
  15. package/nationalarchives/components/button/_index.scss +1 -2
  16. package/nationalarchives/components/button/button.stories.js +2 -3
  17. package/nationalarchives/components/card/_index.scss +10 -9
  18. package/nationalarchives/components/card/card.stories.js +67 -5
  19. package/nationalarchives/components/card/fixtures.json +13 -0
  20. package/nationalarchives/components/card/macro-options.json +0 -6
  21. package/nationalarchives/components/card/template.njk +1 -1
  22. package/nationalarchives/components/filters/filters.stories.js +3 -4
  23. package/nationalarchives/components/footer/_index.scss +5 -16
  24. package/nationalarchives/components/footer/footer.stories.js +2 -3
  25. package/nationalarchives/components/grid/_index.scss +2 -2
  26. package/nationalarchives/components/grid/grid.stories.js +2 -3
  27. package/nationalarchives/components/header/_index.scss +17 -19
  28. package/nationalarchives/components/header/header.stories.js +2 -3
  29. package/nationalarchives/components/hero/_index.scss +3 -7
  30. package/nationalarchives/components/hero/hero.stories.js +2 -3
  31. package/nationalarchives/components/index-grid/_index.scss +1 -2
  32. package/nationalarchives/components/index-grid/index-grid.stories.js +2 -3
  33. package/nationalarchives/components/message/_index.scss +4 -6
  34. package/nationalarchives/components/message/phase-banner.stories.js +2 -3
  35. package/nationalarchives/components/phase-banner/phase-banner.stories.js +2 -3
  36. package/nationalarchives/components/picture/_index.scss +3 -5
  37. package/nationalarchives/components/picture/picture.stories.js +2 -3
  38. package/nationalarchives/components/profile/profile.stories.js +2 -3
  39. package/nationalarchives/components/sensitive-image/sensitive-image.stories.js +3 -4
  40. package/nationalarchives/components/skip-link/_index.scss +63 -0
  41. package/nationalarchives/components/skip-link/fixtures.json +11 -0
  42. package/nationalarchives/components/skip-link/macro-options.json +26 -0
  43. package/nationalarchives/components/skip-link/macro.njk +3 -0
  44. package/nationalarchives/components/skip-link/skip-link.stories.js +31 -0
  45. package/nationalarchives/components/skip-link/template.njk +4 -0
  46. package/nationalarchives/components/tabs/_index.scss +1 -2
  47. package/nationalarchives/components/tabs/tabs.stories.js +2 -3
  48. package/nationalarchives/patterns/featured-collection/_index.scss +2 -2
  49. package/nationalarchives/patterns/featured-collection/featured-collection.stories.js +2 -3
  50. package/nationalarchives/stories/utilities/colour-schemes/colour-schemes.stories.js +19 -2
  51. package/nationalarchives/stories/utilities/overrides/overrides.stories.js +8 -14
  52. package/nationalarchives/templates/layouts/_generic.njk +10 -8
  53. package/nationalarchives/tools/_colour.scss +87 -18
  54. package/nationalarchives/tools/_index.scss +0 -1
  55. package/nationalarchives/utilities/_debug.scss +41 -1
  56. package/nationalarchives/utilities/_global.scss +5 -0
  57. package/nationalarchives/utilities/_overrides.scss +17 -4
  58. package/nationalarchives/utilities/_typography.scss +6 -7
  59. package/nationalarchives/variables/_colour.scss +78 -84
  60. package/nationalarchives/variables/_grid.scss +1 -1
  61. package/nationalarchives/variables/_index.scss +0 -1
  62. package/nationalarchives/variables/_media.scss +23 -23
  63. package/nationalarchives/variables/_spacing.scss +10 -2
  64. package/package.json +2 -2
  65. package/nationalarchives/tools/_assets.scss +0 -5
  66. package/nationalarchives/variables/_assets.scss +0 -1
@@ -1,14 +1,19 @@
1
1
  {%- set containerClasses = [params.classes] if params.classes else [] -%}
2
- <div class="tna-breadcrumbs tna-container {{ containerClasses | join(' ') }}" data-module="tna-breadcrumbs" {%- for attribute, value in params.attributes %} {{ attribute }}="{{ value }}"{% endfor %}>
3
- <nav class="tna-breadcrumbs__wrapper tna-column tna-column--full" aria-label="Breadcrumb">
4
- <ol class="tna-breadcrumbs__list tna-breadcrumbs__list--collapse-on-mobile">
5
- {%- for item in params.items -%}
6
- <li class="tna-breadcrumbs__item">
7
- <a href="{{ item.href }}" class="tna-breadcrumbs__link" data-prefix="{{ params.prefix if params.prefix else 'Back to' }}" {%- if item.title %} title="{{ item.title }}"{% endif %}>
8
- {{ item.text }}
9
- </a>
10
- </li>
11
- {%- endfor -%}
12
- </ol>
13
- </nav>
2
+ {%- if params.noCollapse -%}
3
+ {%- set containerClasses = containerClasses.concat('tna-breadcrumbs--no-collapse') -%}
4
+ {%- endif -%}
5
+ <div class="tna-breadcrumbs {{ containerClasses | join(' ') }}" data-module="tna-breadcrumbs" {%- for attribute, value in params.attributes %} {{ attribute }}="{{ value }}"{% endfor %}>
6
+ <div class="tna-container">
7
+ <nav class="tna-breadcrumbs__wrapper tna-column tna-column--full" aria-label="Breadcrumb">
8
+ <ol class="tna-breadcrumbs__list">
9
+ {%- for item in params.items -%}
10
+ <li class="tna-breadcrumbs__item">
11
+ <a href="{{ item.href }}" class="tna-breadcrumbs__link" {%- if item.title %} title="{{ item.title }}"{% endif %}>
12
+ {{ item.text }}
13
+ </a>
14
+ </li>
15
+ {%- endfor -%}
16
+ </ol>
17
+ </nav>
18
+ </div>
14
19
  </div>
@@ -10,8 +10,7 @@
10
10
 
11
11
  @include colour.colour-background("button-primary-background");
12
12
 
13
- border: 0.25rem transparent solid;
14
- @include colour.colour-border("button-primary-background");
13
+ @include colour.colour-border("button-primary-background", 0.25rem);
15
14
 
16
15
  transition:
17
16
  color 200ms,
@@ -21,8 +21,8 @@ export default {
21
21
  argTypes,
22
22
  };
23
23
 
24
- const Template = ({ text, href, title, secondary, classes, attributes }) => {
25
- return Button({
24
+ const Template = ({ text, href, title, secondary, classes, attributes }) =>
25
+ Button({
26
26
  params: {
27
27
  text,
28
28
  href,
@@ -32,7 +32,6 @@ const Template = ({ text, href, title, secondary, classes, attributes }) => {
32
32
  attributes,
33
33
  },
34
34
  });
35
- };
36
35
 
37
36
  export const Standard = Template.bind({});
38
37
  Standard.args = {
@@ -1,5 +1,4 @@
1
1
  @use "sass:math";
2
- @use "../../variables/colour" as colourVars; // TODO
3
2
  @use "../../tools/colour";
4
3
  @use "../../tools/typography";
5
4
  @use "../../tools/media";
@@ -25,6 +24,9 @@
25
24
 
26
25
  &__title {
27
26
  order: 2;
27
+
28
+ @include typography.main-font;
29
+ @include typography.main-font-weight-bold;
28
30
  }
29
31
 
30
32
  &__title-link {
@@ -70,13 +72,10 @@
70
72
  }
71
73
 
72
74
  &--green-label #{&}__image-label {
73
- // color: colourVars.$tna-white;
74
- background-color: colourVars.$tna-green;
75
+ background-color: colour.brand-colour("green");
75
76
  }
76
77
 
77
78
  &__body {
78
- // margin-top: 2rem;
79
-
80
79
  order: 3;
81
80
  }
82
81
 
@@ -101,8 +100,7 @@
101
100
  .tna-card__heading {
102
101
  padding-bottom: 2rem;
103
102
 
104
- border-bottom: 2px transparent solid;
105
- @include colour.colour-border("keyline-dark");
103
+ @include colour.colour-border("keyline-dark", 2px, solid, bottom);
106
104
  }
107
105
 
108
106
  .tna-card__supertitle {
@@ -154,8 +152,11 @@
154
152
  }
155
153
 
156
154
  @include colour.on-high-contrast {
157
- border: 1px transparent solid;
158
- @include colour.colour-border("keyline-dark");
155
+ @include colour.colour-border("keyline-dark", 1px);
156
+
157
+ .tna-card__inner {
158
+ padding-bottom: 1rem;
159
+ }
159
160
 
160
161
  .tna-card__heading,
161
162
  .tna-card__body,
@@ -38,8 +38,8 @@ const Template = ({
38
38
  htmlElement,
39
39
  classes,
40
40
  attributes,
41
- }) => {
42
- return Card({
41
+ }) =>
42
+ Card({
43
43
  params: {
44
44
  heading,
45
45
  href,
@@ -54,7 +54,6 @@ const Template = ({
54
54
  attributes,
55
55
  },
56
56
  });
57
- };
58
57
 
59
58
  export const Standard = Template.bind({});
60
59
  Standard.args = {
@@ -62,7 +61,6 @@ Standard.args = {
62
61
  supertitle: "Card supertitle",
63
62
  title: "Card title",
64
63
  level: 3,
65
- size: "m",
66
64
  singleSentence: false,
67
65
  },
68
66
  href: "#",
@@ -91,7 +89,6 @@ Featured.args = {
91
89
  supertitle: "Card supertitle",
92
90
  title: "Card title",
93
91
  level: 3,
94
- size: "l",
95
92
  singleSentence: false,
96
93
  },
97
94
  href: "#",
@@ -114,3 +111,68 @@ Featured.args = {
114
111
  htmlElement: "article",
115
112
  classes: "tna-card--demo",
116
113
  };
114
+
115
+ const GridTemplate = ({
116
+ heading,
117
+ href,
118
+ image,
119
+ label,
120
+ body,
121
+ text,
122
+ actions,
123
+ featured,
124
+ htmlElement,
125
+ classes,
126
+ attributes,
127
+ }) =>
128
+ `<div class="tna-container">
129
+ ${Array(12)
130
+ .fill(
131
+ `<div class="tna-column tna-column--width-1-3 tna-column--width-1-2-small tna-column--full-tiny tna-!--margin-bottom-l">
132
+ ${Card({
133
+ params: {
134
+ heading,
135
+ href,
136
+ image,
137
+ label,
138
+ body,
139
+ text,
140
+ actions,
141
+ featured,
142
+ htmlElement,
143
+ classes,
144
+ attributes,
145
+ },
146
+ })}
147
+ </div>`,
148
+ )
149
+ .join("")}
150
+ </div>`;
151
+
152
+ export const Grid = GridTemplate.bind({});
153
+ Grid.args = {
154
+ heading: {
155
+ supertitle: "Card supertitle",
156
+ title: "Card title",
157
+ level: 3,
158
+ singleSentence: false,
159
+ },
160
+ href: "#",
161
+ image: {
162
+ src: "https://www.nationalarchives.gov.uk/wp-content/uploads/sites/24/2023/07/tna-building-compress.jpg",
163
+ alt: "The National Archives office",
164
+ width: 1996,
165
+ height: 1331,
166
+ },
167
+ label: "New",
168
+ body: "<p>Card body</p>",
169
+ // actions: [
170
+ // {
171
+ // text: "Card action",
172
+ // href: "#",
173
+ // title: "Go and do the action",
174
+ // },
175
+ // ],
176
+ htmlElement: "article",
177
+ classes: "tna-card--demo",
178
+ };
@@ -154,6 +154,19 @@
154
154
  },
155
155
  "html": "<div class=\"tna-card \" data-module=\"tna-card\" data-testattribute=\"foobar\"><div class=\"tna-card__inner\"><h3 class=\"tna-card__title tna-heading tna-heading--m\">Card title</h3><div class=\"tna-card__body\"><p>Card body</p></div></div></div>",
156
156
  "hidden": false
157
+ },
158
+ {
159
+ "name": "with a label",
160
+ "options": {
161
+ "heading": {
162
+ "title": "Card title",
163
+ "level": 3
164
+ },
165
+ "label": "New",
166
+ "body": "<p>Card body</p>"
167
+ },
168
+ "html": "<div class=\"tna-card \" data-module=\"tna-card\"><div class=\"tna-card__inner\"><h3 class=\"tna-card__title tna-heading tna-heading--m\">Card title</h3><div class=\"tna-card__body\"><p>Card body</p></div></div></div>",
169
+ "hidden": false
157
170
  }
158
171
  ]
159
172
  }
@@ -23,12 +23,6 @@
23
23
  "required": true,
24
24
  "description": ""
25
25
  },
26
- {
27
- "name": "size",
28
- "type": "text",
29
- "required": false,
30
- "description": ""
31
- },
32
26
  {
33
27
  "name": "singleSentence",
34
28
  "type": "boolean",
@@ -1,6 +1,6 @@
1
1
  {%- set htmlElement = params.htmlElement if params.htmlElement else 'div' -%}
2
2
  {%- set containerClasses = [params.classes] if params.classes else [] -%}
3
- {%- set headingSize = params.heading.size if params.heading.size else "m" -%}
3
+ {%- set headingSize = "l" if params.featured else "m" -%}
4
4
  {%- if params.featured -%}
5
5
  {%- set containerClasses = containerClasses.concat('tna-card--featured') -%}
6
6
  {%- endif -%}
@@ -15,12 +15,12 @@ Object.keys(argTypes).forEach((argType) => {
15
15
  });
16
16
 
17
17
  export default {
18
- title: "Components/Experimental/Filters",
18
+ title: "Components/Filters",
19
19
  argTypes,
20
20
  };
21
21
 
22
- const Template = ({ items, stack, classes, attributes }) => {
23
- return Filters({
22
+ const Template = ({ items, stack, classes, attributes }) =>
23
+ Filters({
24
24
  params: {
25
25
  items,
26
26
  stack,
@@ -28,7 +28,6 @@ const Template = ({ items, stack, classes, attributes }) => {
28
28
  attributes,
29
29
  },
30
30
  });
31
- };
32
31
 
33
32
  export const Standard = Template.bind({});
34
33
  Standard.args = {
@@ -1,4 +1,3 @@
1
- @use "../../variables/colour" as colourVars; // TODO
2
1
  @use "../../tools/colour";
3
2
  @use "../../tools/media";
4
3
 
@@ -7,10 +6,10 @@
7
6
  padding-bottom: 3rem;
8
7
 
9
8
  @include colour.invert;
9
+ @include colour.colour-font("contrast-font-base");
10
10
 
11
11
  @include colour.on-high-contrast {
12
- border-top: 1px transparent solid;
13
- @include colour.colour-border("keyline");
12
+ @include colour.colour-border("keyline", 1px, solid, top);
14
13
  }
15
14
 
16
15
  &__link {
@@ -20,8 +19,7 @@
20
19
  }
21
20
 
22
21
  &:hover {
23
- // @include colour.colour-font("link");
24
- color: colourVars.$tna-blue;
22
+ @include colour.colour-font("link");
25
23
  }
26
24
  }
27
25
 
@@ -33,8 +31,6 @@
33
31
 
34
32
  &__title {
35
33
  margin-bottom: 0.5rem;
36
-
37
- color: inherit;
38
34
  }
39
35
 
40
36
  &__address {
@@ -49,7 +45,6 @@
49
45
  }
50
46
 
51
47
  &__navigation-group-title {
52
- color: inherit;
53
48
  }
54
49
 
55
50
  &__navigation-group-items {
@@ -118,23 +113,17 @@
118
113
 
119
114
  &,
120
115
  &:visited {
121
- color: inherit;
122
- fill: #fff;
116
+ @include colour.colour-font("font-dark");
123
117
  }
124
118
 
125
119
  &:hover {
126
- // @include colour.colour-font("link");
127
- // @include colour.colour-fill("link");
128
- color: colourVars.$tna-blue;
129
- fill: colourVars.$tna-blue;
120
+ @include colour.colour-font("link");
130
121
  }
131
122
  }
132
123
 
133
124
  &__govuk-logotype-crown {
134
125
  margin: 0 auto;
135
126
  display: block;
136
-
137
- fill: inherit;
138
127
  }
139
128
 
140
129
  @include media.on-mobile {
@@ -28,8 +28,8 @@ const Template = ({
28
28
  social,
29
29
  classes,
30
30
  attributes,
31
- }) => {
32
- return Footer({
31
+ }) =>
32
+ Footer({
33
33
  params: {
34
34
  title,
35
35
  address,
@@ -39,7 +39,6 @@ const Template = ({
39
39
  attributes,
40
40
  },
41
41
  });
42
- };
43
42
 
44
43
  export const Standard = Template.bind({});
45
44
  Standard.args = {
@@ -50,8 +50,8 @@
50
50
 
51
51
  @include media.on-mobile {
52
52
  .tna-container {
53
- padding-right: math.div(grid.$gutter-width-mobile, 2) + 0.75rem;
54
- padding-left: math.div(grid.$gutter-width-mobile, 2) + 0.75rem;
53
+ padding-right: math.div(grid.$gutter-width-mobile, 2);
54
+ padding-left: math.div(grid.$gutter-width-mobile, 2);
55
55
  }
56
56
 
57
57
  .tna-column {
@@ -30,8 +30,8 @@ const Template = ({
30
30
  htmlElement,
31
31
  classes,
32
32
  attributes,
33
- }) => {
34
- return Header({
33
+ }) =>
34
+ Header({
35
35
  params: {
36
36
  columns,
37
37
  maxWidth,
@@ -42,7 +42,6 @@ const Template = ({
42
42
  attributes,
43
43
  },
44
44
  });
45
- };
46
45
 
47
46
  export const Standard = Template.bind({});
48
47
  Standard.args = {
@@ -8,7 +8,9 @@
8
8
  .tna-header {
9
9
  @include colour.invert;
10
10
 
11
- background-color: colourVars.$tna-black;
11
+ color: colour.brand-colour("white");
12
+
13
+ background-color: colour.brand-colour("black");
12
14
 
13
15
  &__exit {
14
16
  padding-top: 0.5rem;
@@ -262,7 +264,7 @@
262
264
  &--orange,
263
265
  &--green,
264
266
  &--blue {
265
- color: colourVars.$tna-black;
267
+ color: colour.brand-colour("black");
266
268
 
267
269
  .tna-header__logo-link {
268
270
  &:hover {
@@ -277,28 +279,28 @@
277
279
  }
278
280
 
279
281
  .tna-header__hamburger {
280
- background-color: colourVars.$tna-black;
282
+ background-color: colour.brand-colour("black");
281
283
  }
282
284
  }
283
285
 
284
286
  &--yellow {
285
- background-color: colourVars.$tna-yellow;
287
+ background-color: colour.brand-colour("yellow");
286
288
  }
287
289
 
288
290
  &--pink {
289
- background-color: colourVars.$tna-pink;
291
+ background-color: colour.brand-colour("pink");
290
292
  }
291
293
 
292
294
  &--orange {
293
- background-color: colourVars.$tna-orange;
295
+ background-color: colour.brand-colour("orange");
294
296
  }
295
297
 
296
298
  &--green {
297
- background-color: colourVars.$tna-green;
299
+ background-color: colour.brand-colour("green");
298
300
  }
299
301
 
300
302
  &--blue {
301
- background-color: colourVars.$tna-blue;
303
+ background-color: colour.brand-colour("blue");
302
304
  }
303
305
 
304
306
  &__navigation {
@@ -406,8 +408,6 @@
406
408
  }
407
409
 
408
410
  @include media.on-mobile {
409
- $compensated-container-padding: grid.$gutter-width-mobile + 0.75rem;
410
-
411
411
  &__contents {
412
412
  &.tna-container {
413
413
  padding-right: 0;
@@ -420,8 +420,8 @@
420
420
  padding-bottom: 1rem;
421
421
 
422
422
  &.tna-column {
423
- padding-right: $compensated-container-padding;
424
- padding-left: $compensated-container-padding;
423
+ padding-right: grid.$gutter-width-mobile;
424
+ padding-left: grid.$gutter-width-mobile;
425
425
  }
426
426
  }
427
427
 
@@ -436,7 +436,7 @@
436
436
 
437
437
  &__navigation-toggle {
438
438
  &.tna-column {
439
- padding-right: $compensated-container-padding;
439
+ padding-right: grid.$gutter-width-mobile;
440
440
  padding-left: 0;
441
441
  }
442
442
  }
@@ -470,8 +470,7 @@
470
470
 
471
471
  @include colour.colour-background("page-background");
472
472
 
473
- border-bottom: 1px solid;
474
- @include colour.colour-border("keyline");
473
+ @include colour.colour-border("keyline", 1px, solid, bottom);
475
474
  }
476
475
 
477
476
  &__top-navigation-item {
@@ -493,13 +492,12 @@
493
492
 
494
493
  display: block;
495
494
 
496
- border-bottom: 1px solid;
497
- @include colour.colour-border("keyline");
495
+ @include colour.colour-border("keyline", 1px, solid, bottom);
498
496
  }
499
497
 
500
498
  &__navigation-item-link {
501
- padding-right: $compensated-container-padding;
502
- padding-left: $compensated-container-padding;
499
+ padding-right: grid.$gutter-width-mobile;
500
+ padding-left: grid.$gutter-width-mobile + 1rem;
503
501
 
504
502
  display: block;
505
503
 
@@ -39,8 +39,8 @@ const Template = ({
39
39
  exit,
40
40
  classes,
41
41
  attributes,
42
- }) => {
43
- return Header({
42
+ }) =>
43
+ Header({
44
44
  params: {
45
45
  logo,
46
46
  topNavigation,
@@ -51,7 +51,6 @@ const Template = ({
51
51
  attributes,
52
52
  },
53
53
  });
54
- };
55
54
 
56
55
  export const Standard = Template.bind({});
57
56
  Standard.args = {
@@ -12,6 +12,8 @@
12
12
 
13
13
  position: relative;
14
14
 
15
+ @include colour.invert-on-mobile;
16
+
15
17
  &__image {
16
18
  width: 100%;
17
19
  height: 100%;
@@ -105,8 +107,6 @@
105
107
 
106
108
  display: block;
107
109
 
108
- @include colour.invert;
109
-
110
110
  &__image {
111
111
  height: 320px;
112
112
 
@@ -142,13 +142,10 @@
142
142
  }
143
143
 
144
144
  &__heading {
145
- color: inherit;
146
145
  }
147
146
 
148
147
  &__body {
149
148
  margin-top: 1rem;
150
-
151
- color: inherit;
152
149
  }
153
150
  }
154
151
 
@@ -160,8 +157,7 @@
160
157
 
161
158
  @include colour.on-high-contrast {
162
159
  &__content-inner {
163
- border: 1px transparent solid;
164
- @include colour.colour-border("keyline-dark");
160
+ @include colour.colour-border("keyline-dark", 1px);
165
161
 
166
162
  @include media.on-mobile {
167
163
  border: none;
@@ -23,8 +23,8 @@ export default {
23
23
  argTypes,
24
24
  };
25
25
 
26
- const Template = ({ heading, body, text, image, classes, attributes }) => {
27
- return Hero({
26
+ const Template = ({ heading, body, text, image, classes, attributes }) =>
27
+ Hero({
28
28
  params: {
29
29
  heading,
30
30
  body,
@@ -34,7 +34,6 @@ const Template = ({ heading, body, text, image, classes, attributes }) => {
34
34
  attributes,
35
35
  },
36
36
  });
37
- };
38
37
 
39
38
  export const Standard = Template.bind({});
40
39
  Standard.args = {
@@ -25,8 +25,7 @@
25
25
  text-decoration: none;
26
26
 
27
27
  @include colour.on-high-contrast {
28
- border: 1px transparent solid;
29
- @include colour.colour-border("keyline-dark");
28
+ @include colour.colour-border("keyline-dark", 1px);
30
29
  }
31
30
  }
32
31
 
@@ -32,8 +32,8 @@ const Template = ({
32
32
  columnsTiny,
33
33
  classes,
34
34
  attributes,
35
- }) => {
36
- return IndexGrid({
35
+ }) =>
36
+ IndexGrid({
37
37
  params: {
38
38
  heading,
39
39
  items,
@@ -45,7 +45,6 @@ const Template = ({
45
45
  attributes,
46
46
  },
47
47
  });
48
- };
49
48
 
50
49
  const exampleItem = {
51
50
  href: "#",
@@ -1,4 +1,3 @@
1
- @use "../../variables/colour" as colourVars; // TODO
2
1
  @use "../../tools/colour";
3
2
 
4
3
  .tna-message {
@@ -7,17 +6,16 @@
7
6
  display: flex;
8
7
  align-items: center;
9
8
 
10
- color: colourVars.$tna-black;
9
+ color: colour.brand-colour("black");
11
10
 
12
11
  @include colour.colour-background("keyline");
13
12
 
14
- border-left: 0.5rem transparent solid;
15
- @include colour.colour-border("keyline-dark");
13
+ @include colour.colour-border("keyline-dark", 0.5rem, solid, left);
16
14
 
17
15
  // &--yellow {
18
- background-color: colourVars.$tna-cream;
16
+ background-color: colour.brand-colour("cream");
19
17
 
20
- border-left-color: colourVars.$tna-yellow;
18
+ border-left-color: colour.brand-colour("yellow");
21
19
  // }
22
20
 
23
21
  &__icon {
@@ -18,15 +18,14 @@ export default {
18
18
  argTypes,
19
19
  };
20
20
 
21
- const Template = ({ message, classes, attributes }) => {
22
- return Message({
21
+ const Template = ({ message, classes, attributes }) =>
22
+ Message({
23
23
  params: {
24
24
  message,
25
25
  classes,
26
26
  attributes,
27
27
  },
28
28
  });
29
- };
30
29
 
31
30
  export const Standard = Template.bind({});
32
31
  Standard.args = {