@nationalarchives/frontend 0.1.55 → 0.1.57

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 (113) hide show
  1. package/nationalarchives/all.css +1 -1
  2. package/nationalarchives/all.css.map +1 -1
  3. package/nationalarchives/components/accordion/accordion.css +1 -1
  4. package/nationalarchives/components/accordion/accordion.css.map +1 -1
  5. package/nationalarchives/components/accordion/accordion.scss +25 -0
  6. package/nationalarchives/components/breadcrumbs/breadcrumbs.css +1 -1
  7. package/nationalarchives/components/breadcrumbs/breadcrumbs.css.map +1 -1
  8. package/nationalarchives/components/breadcrumbs/breadcrumbs.scss +0 -17
  9. package/nationalarchives/components/button/button.css +1 -1
  10. package/nationalarchives/components/button/button.css.map +1 -1
  11. package/nationalarchives/components/button/button.scss +6 -0
  12. package/nationalarchives/components/card/card.css.map +1 -1
  13. package/nationalarchives/components/checkboxes/checkboxes.css +1 -1
  14. package/nationalarchives/components/checkboxes/checkboxes.css.map +1 -1
  15. package/nationalarchives/components/compound-filters/compound-filters.css +1 -1
  16. package/nationalarchives/components/compound-filters/compound-filters.css.map +1 -1
  17. package/nationalarchives/components/compound-filters/compound-filters.scss +1 -1
  18. package/nationalarchives/components/cookie-banner/cookie-banner.css +1 -1
  19. package/nationalarchives/components/cookie-banner/cookie-banner.css.map +1 -1
  20. package/nationalarchives/components/cookie-banner/cookie-banner.scss +2 -4
  21. package/nationalarchives/components/date-input/date-input.css +1 -1
  22. package/nationalarchives/components/date-input/date-input.css.map +1 -1
  23. package/nationalarchives/components/date-search/date-search.css +1 -1
  24. package/nationalarchives/components/date-search/date-search.css.map +1 -1
  25. package/nationalarchives/components/details/details.css +1 -1
  26. package/nationalarchives/components/details/details.css.map +1 -1
  27. package/nationalarchives/components/details/details.scss +27 -0
  28. package/nationalarchives/components/error-summary/error-summary.css +1 -1
  29. package/nationalarchives/components/error-summary/error-summary.css.map +1 -1
  30. package/nationalarchives/components/featured-records/featured-records.css +1 -1
  31. package/nationalarchives/components/featured-records/featured-records.css.map +1 -1
  32. package/nationalarchives/components/featured-records/featured-records.scss +1 -2
  33. package/nationalarchives/components/footer/footer.css +1 -1
  34. package/nationalarchives/components/footer/footer.css.map +1 -1
  35. package/nationalarchives/components/footer/footer.scss +2 -0
  36. package/nationalarchives/components/gallery/gallery.css.map +1 -1
  37. package/nationalarchives/components/global-header/fixtures.json +1 -1
  38. package/nationalarchives/components/global-header/global-header.css +1 -1
  39. package/nationalarchives/components/global-header/global-header.css.map +1 -1
  40. package/nationalarchives/components/global-header/global-header.scss +23 -4
  41. package/nationalarchives/components/global-header/template.njk +1 -1
  42. package/nationalarchives/components/grid/grid.css.map +1 -1
  43. package/nationalarchives/components/header/fixtures.json +1 -1
  44. package/nationalarchives/components/header/header.css +1 -1
  45. package/nationalarchives/components/header/header.css.map +1 -1
  46. package/nationalarchives/components/header/header.scss +19 -10
  47. package/nationalarchives/components/header/header.stories.js +41 -0
  48. package/nationalarchives/components/header/template.njk +1 -1
  49. package/nationalarchives/components/hero/fixtures.json +3 -15
  50. package/nationalarchives/components/hero/hero.css.map +1 -1
  51. package/nationalarchives/components/hero/macro-options.json +0 -6
  52. package/nationalarchives/components/hero/template.njk +4 -5
  53. package/nationalarchives/components/index-grid/fixtures.json +3 -1
  54. package/nationalarchives/components/index-grid/index-grid.css +1 -1
  55. package/nationalarchives/components/index-grid/index-grid.css.map +1 -1
  56. package/nationalarchives/components/index-grid/index-grid.stories.js +12 -3
  57. package/nationalarchives/components/index-grid/macro-options.json +26 -2
  58. package/nationalarchives/components/index-grid/template.njk +15 -2
  59. package/nationalarchives/components/pagination/pagination.css.map +1 -1
  60. package/nationalarchives/components/phase-banner/phase-banner.css +1 -1
  61. package/nationalarchives/components/phase-banner/phase-banner.css.map +1 -1
  62. package/nationalarchives/components/phase-banner/phase-banner.scss +2 -0
  63. package/nationalarchives/components/picture/fixtures.json +75 -0
  64. package/nationalarchives/components/picture/macro-options.json +9 -3
  65. package/nationalarchives/components/picture/picture.css.map +1 -1
  66. package/nationalarchives/components/picture/template.njk +1 -1
  67. package/nationalarchives/components/quick-filters/fixtures.json +83 -1
  68. package/nationalarchives/components/quick-filters/macro-options.json +6 -0
  69. package/nationalarchives/components/quick-filters/quick-filters.css +1 -1
  70. package/nationalarchives/components/quick-filters/quick-filters.css.map +1 -1
  71. package/nationalarchives/components/quick-filters/quick-filters.scss +25 -3
  72. package/nationalarchives/components/quick-filters/quick-filters.stories.js +3 -1
  73. package/nationalarchives/components/quick-filters/template.njk +1 -1
  74. package/nationalarchives/components/radios/radios.css +1 -1
  75. package/nationalarchives/components/radios/radios.css.map +1 -1
  76. package/nationalarchives/components/radios/radios.scss +4 -4
  77. package/nationalarchives/components/search-field/search-field.css +1 -1
  78. package/nationalarchives/components/search-field/search-field.css.map +1 -1
  79. package/nationalarchives/components/search-field/search-field.scss +6 -0
  80. package/nationalarchives/components/search-filters/search-filters.css +1 -1
  81. package/nationalarchives/components/search-filters/search-filters.css.map +1 -1
  82. package/nationalarchives/components/search-filters/search-filters.scss +25 -0
  83. package/nationalarchives/components/select/select.css +1 -1
  84. package/nationalarchives/components/select/select.css.map +1 -1
  85. package/nationalarchives/components/skip-link/skip-link.css +1 -1
  86. package/nationalarchives/components/skip-link/skip-link.css.map +1 -1
  87. package/nationalarchives/components/skip-link/skip-link.scss +3 -0
  88. package/nationalarchives/components/tabs/tabs.css +1 -1
  89. package/nationalarchives/components/tabs/tabs.css.map +1 -1
  90. package/nationalarchives/components/tabs/tabs.scss +2 -4
  91. package/nationalarchives/components/text-input/text-input.css +1 -1
  92. package/nationalarchives/components/text-input/text-input.css.map +1 -1
  93. package/nationalarchives/components/textarea/textarea.css +1 -1
  94. package/nationalarchives/components/textarea/textarea.css.map +1 -1
  95. package/nationalarchives/components/warning/warning.css.map +1 -1
  96. package/nationalarchives/global-header-package.css +1 -1
  97. package/nationalarchives/global-header-package.css.map +1 -1
  98. package/nationalarchives/global-header-package.scss +0 -2
  99. package/nationalarchives/prototype-kit.css +1 -1
  100. package/nationalarchives/prototype-kit.css.map +1 -1
  101. package/nationalarchives/stories/utilities/colour-schemes/colour-themes.stories.js +5 -5
  102. package/nationalarchives/templates/fixtures.json +5 -5
  103. package/nationalarchives/templates/index-grid.njk +116 -118
  104. package/nationalarchives/templates/layouts/_prototype-kit.njk +15 -1
  105. package/nationalarchives/templates/list.njk +23 -25
  106. package/nationalarchives/templates/plain.njk +67 -67
  107. package/nationalarchives/tools/_colour.scss +6 -1
  108. package/nationalarchives/tools/_media.scss +10 -0
  109. package/nationalarchives/utilities/_areas.scss +1 -1
  110. package/nationalarchives/utilities/_lists.scss +1 -5
  111. package/nationalarchives/utilities/_typography.scss +2 -0
  112. package/nationalarchives/variables/_colour.scss +2 -1
  113. package/package.json +1 -1
@@ -26,124 +26,122 @@
26
26
  {% endblock %}
27
27
 
28
28
  {% block content %}
29
- <main class="tna-main">
30
- <div class="tna-section tna-background-accent tna-!--padding-bottom-xl">
31
- <div class="tna-container">
32
- <div class="tna-column tna-column--width-2-3 tna-column--width-5-6-medium tna-column--full-small tna-column--full-tiny">
33
- <h1 class="tna-heading-xl">
34
- {{ pageTitle }}
35
- </h1>
36
- <p class="tna-large-paragraph">Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nam sit amet luctus libero. Cras nec mauris ex. Fusce nisl erat, efficitur sed auctor ornare, varius fermentum arcu.</p>
37
- </div>
29
+ <div class="tna-background-accent tna-!--padding-vertical-xl">
30
+ <div class="tna-container">
31
+ <div class="tna-column tna-column--width-2-3 tna-column--width-5-6-medium tna-column--full-small tna-column--full-tiny">
32
+ <h1 class="tna-heading-xl">
33
+ {{ pageTitle }}
34
+ </h1>
35
+ <p class="tna-large-paragraph">Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nam sit amet luctus libero. Cras nec mauris ex. Fusce nisl erat, efficitur sed auctor ornare, varius fermentum arcu.</p>
38
36
  </div>
39
37
  </div>
40
- <section class="tna-section">
41
- {{ tnaIndexGrid({
42
- title: 'Topics',
43
- headingLevel: 0,
44
- items: [
45
- {
46
- href: '#',
47
- title: 'Topic',
48
- src: 'https://fakeimg.pl/600x400/e4e4e4/343338?text=Topic%20image&font=museo&font_size=48',
49
- alt: 'Topic image',
50
- width: 600,
51
- height: 400
52
- },
53
- {
54
- href: '#',
55
- title: 'Topic',
56
- src: 'https://fakeimg.pl/600x400/e4e4e4/343338?text=Topic%20image&font=museo&font_size=48',
57
- alt: 'Topic image',
58
- width: 600,
59
- height: 400
60
- },
61
- {
62
- href: '#',
63
- title: 'Topic',
64
- src: 'https://fakeimg.pl/600x400/e4e4e4/343338?text=Topic%20image&font=museo&font_size=48',
65
- alt: 'Topic image',
66
- width: 600,
67
- height: 400
68
- },
69
- {
70
- href: '#',
71
- title: 'Topic',
72
- src: 'https://fakeimg.pl/600x400/e4e4e4/343338?text=Topic%20image&font=museo&font_size=48',
73
- alt: 'Topic image',
74
- width: 600,
75
- height: 400
76
- },
77
- {
78
- href: '#',
79
- title: 'Topic',
80
- src: 'https://fakeimg.pl/600x400/e4e4e4/343338?text=Topic%20image&font=museo&font_size=48',
81
- alt: 'Topic image',
82
- width: 600,
83
- height: 400
84
- },
85
- {
86
- href: '#',
87
- title: 'Topic',
88
- src: 'https://fakeimg.pl/600x400/e4e4e4/343338?text=Topic%20image&font=museo&font_size=48',
89
- alt: 'Topic image',
90
- width: 600,
91
- height: 400
92
- },
93
- {
94
- href: '#',
95
- title: 'Topic',
96
- src: 'https://fakeimg.pl/600x400/e4e4e4/343338?text=Topic%20image&font=museo&font_size=48',
97
- alt: 'Topic image',
98
- width: 600,
99
- height: 400
100
- },
101
- {
102
- href: '#',
103
- title: 'Topic',
104
- src: 'https://fakeimg.pl/600x400/e4e4e4/343338?text=Topic%20image&font=museo&font_size=48',
105
- alt: 'Topic image',
106
- width: 600,
107
- height: 400
108
- },
109
- {
110
- href: '#',
111
- title: 'Topic',
112
- src: 'https://fakeimg.pl/600x400/e4e4e4/343338?text=Topic%20image&font=museo&font_size=48',
113
- alt: 'Topic image',
114
- width: 600,
115
- height: 400
116
- },
117
- {
118
- href: '#',
119
- title: 'Topic',
120
- src: 'https://fakeimg.pl/600x400/e4e4e4/343338?text=Topic%20image&font=museo&font_size=48',
121
- alt: 'Topic image',
122
- width: 600,
123
- height: 400
124
- },
125
- {
126
- href: '#',
127
- title: 'Topic',
128
- src: 'https://fakeimg.pl/600x400/e4e4e4/343338?text=Topic%20image&font=museo&font_size=48',
129
- alt: 'Topic image',
130
- width: 600,
131
- height: 400
132
- },
133
- {
134
- href: '#',
135
- title: 'Topic',
136
- src: 'https://fakeimg.pl/600x400/e4e4e4/343338?text=Topic%20image&font=museo&font_size=48',
137
- alt: 'Topic image',
138
- width: 600,
139
- height: 400
140
- }
141
- ],
142
- columns: 4,
143
- columnsMedium: 3,
144
- columnsSmall: 2,
145
- columnsTiny: 1
146
- }) }}
147
- </section>
148
- </main>
38
+ </div>
39
+ <section class="tna-section">
40
+ {{ tnaIndexGrid({
41
+ title: 'Topics',
42
+ headingLevel: 0,
43
+ items: [
44
+ {
45
+ href: '#',
46
+ title: 'Topic',
47
+ src: 'https://fakeimg.pl/600x400/e4e4e4/343338?text=Topic%20image&font=museo&font_size=48',
48
+ alt: 'Topic image',
49
+ width: 600,
50
+ height: 400
51
+ },
52
+ {
53
+ href: '#',
54
+ title: 'Topic',
55
+ src: 'https://fakeimg.pl/600x400/e4e4e4/343338?text=Topic%20image&font=museo&font_size=48',
56
+ alt: 'Topic image',
57
+ width: 600,
58
+ height: 400
59
+ },
60
+ {
61
+ href: '#',
62
+ title: 'Topic',
63
+ src: 'https://fakeimg.pl/600x400/e4e4e4/343338?text=Topic%20image&font=museo&font_size=48',
64
+ alt: 'Topic image',
65
+ width: 600,
66
+ height: 400
67
+ },
68
+ {
69
+ href: '#',
70
+ title: 'Topic',
71
+ src: 'https://fakeimg.pl/600x400/e4e4e4/343338?text=Topic%20image&font=museo&font_size=48',
72
+ alt: 'Topic image',
73
+ width: 600,
74
+ height: 400
75
+ },
76
+ {
77
+ href: '#',
78
+ title: 'Topic',
79
+ src: 'https://fakeimg.pl/600x400/e4e4e4/343338?text=Topic%20image&font=museo&font_size=48',
80
+ alt: 'Topic image',
81
+ width: 600,
82
+ height: 400
83
+ },
84
+ {
85
+ href: '#',
86
+ title: 'Topic',
87
+ src: 'https://fakeimg.pl/600x400/e4e4e4/343338?text=Topic%20image&font=museo&font_size=48',
88
+ alt: 'Topic image',
89
+ width: 600,
90
+ height: 400
91
+ },
92
+ {
93
+ href: '#',
94
+ title: 'Topic',
95
+ src: 'https://fakeimg.pl/600x400/e4e4e4/343338?text=Topic%20image&font=museo&font_size=48',
96
+ alt: 'Topic image',
97
+ width: 600,
98
+ height: 400
99
+ },
100
+ {
101
+ href: '#',
102
+ title: 'Topic',
103
+ src: 'https://fakeimg.pl/600x400/e4e4e4/343338?text=Topic%20image&font=museo&font_size=48',
104
+ alt: 'Topic image',
105
+ width: 600,
106
+ height: 400
107
+ },
108
+ {
109
+ href: '#',
110
+ title: 'Topic',
111
+ src: 'https://fakeimg.pl/600x400/e4e4e4/343338?text=Topic%20image&font=museo&font_size=48',
112
+ alt: 'Topic image',
113
+ width: 600,
114
+ height: 400
115
+ },
116
+ {
117
+ href: '#',
118
+ title: 'Topic',
119
+ src: 'https://fakeimg.pl/600x400/e4e4e4/343338?text=Topic%20image&font=museo&font_size=48',
120
+ alt: 'Topic image',
121
+ width: 600,
122
+ height: 400
123
+ },
124
+ {
125
+ href: '#',
126
+ title: 'Topic',
127
+ src: 'https://fakeimg.pl/600x400/e4e4e4/343338?text=Topic%20image&font=museo&font_size=48',
128
+ alt: 'Topic image',
129
+ width: 600,
130
+ height: 400
131
+ },
132
+ {
133
+ href: '#',
134
+ title: 'Topic',
135
+ src: 'https://fakeimg.pl/600x400/e4e4e4/343338?text=Topic%20image&font=museo&font_size=48',
136
+ alt: 'Topic image',
137
+ width: 600,
138
+ height: 400
139
+ }
140
+ ],
141
+ columns: 4,
142
+ columnsMedium: 3,
143
+ columnsSmall: 2,
144
+ columnsTiny: 1
145
+ }) }}
146
+ </section>
149
147
  {% endblock %}
@@ -5,7 +5,6 @@
5
5
  {% block stylesheets %}
6
6
  {% include 'govuk-prototype-kit/includes/stylesheets-plugins.njk' ignore missing %}
7
7
  <link rel="stylesheet" type="text/css" href="https://use.typekit.net/hkj3kuz.css">
8
- <link rel="stylesheet" type="text/css" href="/public/stylesheets/application.css">
9
8
  {% endblock %}
10
9
 
11
10
  {% block bodyEnd %}
@@ -14,6 +13,21 @@
14
13
  if (window.TNAFrontend && window.TNAFrontend.initAll) {
15
14
  document.addEventListener("DOMContentLoaded", function() {
16
15
  window.TNAFrontend.initAll();
16
+ var cookies = new TNAFrontend.Cookies()
17
+ var theme = cookies.get("theme") || "light"
18
+ var $tnaTemplate = document.querySelector(".tna-template");
19
+ if (theme === "light") {
20
+ $tnaTemplate.classList.remove(
21
+ "tna-template--system-theme",
22
+ "tna-template--dark-theme",
23
+ );
24
+ } else if (theme === "dark") {
25
+ $tnaTemplate.classList.remove("tna-template--system-theme");
26
+ $tnaTemplate.classList.add(`tna-template--dark-theme`);
27
+ } else if (theme === "system") {
28
+ $tnaTemplate.classList.remove("tna-template--dark-theme");
29
+ $tnaTemplate.classList.add(`tna-template--system-theme`);
30
+ }
17
31
  });
18
32
  }
19
33
  </script>
@@ -25,31 +25,29 @@
25
25
  {% endblock %}
26
26
 
27
27
  {% block content %}
28
- <main class="tna-main">
29
- <div class="tna-section tna-background-accent tna-!--padding-bottom-xl">
30
- <div class="tna-container">
31
- <div class="tna-column tna-column--width-2-3 tna-column--width-5-6-medium tna-column--full-small tna-column--full-tiny">
32
- <h1 class="tna-heading-xl">
33
- {{ pageTitle }}
34
- </h1>
35
- <p class="tna-large-paragraph">Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nam sit amet luctus libero. Cras nec mauris ex. Fusce nisl erat, efficitur sed auctor ornare, varius fermentum arcu.</p>
36
- </div>
28
+ <div class="tna-background-accent tna-!--padding-vertical-xl">
29
+ <div class="tna-container">
30
+ <div class="tna-column tna-column--width-2-3 tna-column--width-5-6-medium tna-column--full-small tna-column--full-tiny">
31
+ <h1 class="tna-heading-xl">
32
+ {{ pageTitle }}
33
+ </h1>
34
+ <p class="tna-large-paragraph">Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nam sit amet luctus libero. Cras nec mauris ex. Fusce nisl erat, efficitur sed auctor ornare, varius fermentum arcu.</p>
37
35
  </div>
38
36
  </div>
39
- <nav class="tna-section" aria-label="Child pages">
40
- <ul class="tna-container tna-ul tna-ul--plain">
41
- {%- for item in range(0, 12) %}
42
- <li class="tna-column tna-column--width-1-3 tna-column--width-1-3-medium tna-column--width-1-2-small tna-column--full-tiny tna-!--margin-bottom-l">
43
- {{ tnaCard({
44
- title: "Item " + (item + 1),
45
- headingLevel: 2,
46
- headingSize: "m",
47
- href: "#",
48
- text: "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nam sit amet luctus libero. Cras nec mauris ex. Fusce nisl erat, efficitur sed auctor ornare, varius fermentum arcu."
49
- }) }}
50
- </li>
51
- {%- endfor %}
52
- </ul>
53
- </nav>
54
- </main>
37
+ </div>
38
+ <nav class="tna-section" aria-label="Child pages">
39
+ <ul class="tna-container tna-ul tna-ul--plain">
40
+ {%- for item in range(0, 12) %}
41
+ <li class="tna-column tna-column--width-1-3 tna-column--width-1-3-medium tna-column--width-1-2-small tna-column--full-tiny tna-!--margin-bottom-l">
42
+ {{ tnaCard({
43
+ title: "Item " + (item + 1),
44
+ headingLevel: 2,
45
+ headingSize: "m",
46
+ href: "#",
47
+ text: "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nam sit amet luctus libero. Cras nec mauris ex. Fusce nisl erat, efficitur sed auctor ornare, varius fermentum arcu."
48
+ }) }}
49
+ </li>
50
+ {%- endfor %}
51
+ </ul>
52
+ </nav>
55
53
  {% endblock %}
@@ -22,73 +22,73 @@
22
22
  {% endblock %}
23
23
 
24
24
  {% block content %}
25
- <div class="tna-section">
26
- <div class="tna-container">
27
- <div class="tna-column tna-column--width-2-3 tna-column--width-5-6-medium tna-column--full-small tna-column--full-tiny">
28
- <h1 class="tna-heading-xl">
29
- {{ pageTitle }}
30
- </h1>
31
- <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Mauris at magna est. Sed vel fermentum arcu. Suspendisse viverra est nec interdum tincidunt. Phasellus dictum, turpis eget iaculis tincidunt, ex metus porttitor turpis, ut pulvinar risus erat quis dui. Nam semper sapien a ipsum congue pharetra.</p>
32
- <p>Donec cursus, eros eu egestas aliquam, ipsum ligula suscipit metus, eget maximus turpis nisl vitae ex. Etiam ornare convallis quam a consequat. Etiam sodales aliquet nulla, id rutrum justo accumsan sed.</p>
33
- <ul class="tna-ul">
34
- <li>Alpha</li>
35
- <li>Beta</li>
36
- <li>Gamma</li>
37
- </ul>
38
- <ol class="tna-ol">
39
- <li>Alpha</li>
40
- <li>Beta</li>
41
- <li>Gamma</li>
42
- </ol>
43
- <dl class="tna-dl">
44
- <dt>Alpha</dt>
45
- <dd>Lorem ipsum</dd>
46
- <dt>Beta</dt>
47
- <dd>Lorem ipsum</dd>
48
- <dt>Gamma</dt>
49
- <dd>Lorem ipsum</dd>
50
- <dt>Delta</dt>
51
- <dd>Lorem ipsum</dd>
52
- <dt>Epsilon</dt>
53
- <dd>Lorem ipsum</dd>
54
- </dl>
55
- <table class="tna-table">
56
- <caption class="tna-table__caption">
57
- Records added and removed between 2020 and 2022.
58
- </caption>
59
- <thead class="tna-table__head">
60
- <tr class="tna-table__row">
61
- <th class="tna-table__header">Year</th>
62
- <th class="tna-table__header tna-table__header--numeric">Records added</th>
63
- <th class="tna-table__header tna-table__header--numeric">Records removed</th>
64
- </tr>
65
- </thead>
66
- <tbody class="tna-table__body">
67
- <tr>
68
- <th class="tna-table__header">2020</th>
69
- <td class="tna-table__cell tna-table__cell--numeric">123,456</td>
70
- <td class="tna-table__cell tna-table__cell--numeric">789</td>
71
- </tr>
72
- <tr>
73
- <th class="tna-table__header">2021</th>
74
- <td class="tna-table__cell tna-table__cell--numeric">456,789</td>
75
- <td class="tna-table__cell tna-table__cell--numeric">123</td>
76
- </tr>
77
- <tr>
78
- <th class="tna-table__header">2022</th>
79
- <td class="tna-table__cell tna-table__cell--numeric">42,424</td>
80
- <td class="tna-table__cell tna-table__cell--numeric">1,337</td>
81
- </tr>
82
- </tbody>
83
- <tfoot class="tna-table__foot">
84
- <tr>
85
- <th class="tna-table__header">Total</th>
86
- <td class="tna-table__cell tna-table__cell--numeric">622,669</td>
87
- <td class="tna-table__cell tna-table__cell--numeric">2,249</td>
88
- </tr>
89
- </tfoot>
90
- </table>
91
- </div>
25
+ <div class="tna-section">
26
+ <div class="tna-container">
27
+ <div class="tna-column tna-column--width-2-3 tna-column--width-5-6-medium tna-column--full-small tna-column--full-tiny">
28
+ <h1 class="tna-heading-xl">
29
+ {{ pageTitle }}
30
+ </h1>
31
+ <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Mauris at magna est. Sed vel fermentum arcu. Suspendisse viverra est nec interdum tincidunt. Phasellus dictum, turpis eget iaculis tincidunt, ex metus porttitor turpis, ut pulvinar risus erat quis dui. Nam semper sapien a ipsum congue pharetra.</p>
32
+ <p>Donec cursus, eros eu egestas aliquam, ipsum ligula suscipit metus, eget maximus turpis nisl vitae ex. Etiam ornare convallis quam a consequat. Etiam sodales aliquet nulla, id rutrum justo accumsan sed.</p>
33
+ <ul class="tna-ul">
34
+ <li>Alpha</li>
35
+ <li>Beta</li>
36
+ <li>Gamma</li>
37
+ </ul>
38
+ <ol class="tna-ol">
39
+ <li>Alpha</li>
40
+ <li>Beta</li>
41
+ <li>Gamma</li>
42
+ </ol>
43
+ <dl class="tna-dl">
44
+ <dt>Alpha</dt>
45
+ <dd>Lorem ipsum</dd>
46
+ <dt>Beta</dt>
47
+ <dd>Lorem ipsum</dd>
48
+ <dt>Gamma</dt>
49
+ <dd>Lorem ipsum</dd>
50
+ <dt>Delta</dt>
51
+ <dd>Lorem ipsum</dd>
52
+ <dt>Epsilon</dt>
53
+ <dd>Lorem ipsum</dd>
54
+ </dl>
55
+ <table class="tna-table">
56
+ <caption class="tna-table__caption">
57
+ Records added and removed between 2020 and 2022.
58
+ </caption>
59
+ <thead class="tna-table__head">
60
+ <tr class="tna-table__row">
61
+ <th class="tna-table__header">Year</th>
62
+ <th class="tna-table__header tna-table__header--numeric">Records added</th>
63
+ <th class="tna-table__header tna-table__header--numeric">Records removed</th>
64
+ </tr>
65
+ </thead>
66
+ <tbody class="tna-table__body">
67
+ <tr>
68
+ <th class="tna-table__header">2020</th>
69
+ <td class="tna-table__cell tna-table__cell--numeric">123,456</td>
70
+ <td class="tna-table__cell tna-table__cell--numeric">789</td>
71
+ </tr>
72
+ <tr>
73
+ <th class="tna-table__header">2021</th>
74
+ <td class="tna-table__cell tna-table__cell--numeric">456,789</td>
75
+ <td class="tna-table__cell tna-table__cell--numeric">123</td>
76
+ </tr>
77
+ <tr>
78
+ <th class="tna-table__header">2022</th>
79
+ <td class="tna-table__cell tna-table__cell--numeric">42,424</td>
80
+ <td class="tna-table__cell tna-table__cell--numeric">1,337</td>
81
+ </tr>
82
+ </tbody>
83
+ <tfoot class="tna-table__foot">
84
+ <tr>
85
+ <th class="tna-table__header">Total</th>
86
+ <td class="tna-table__cell tna-table__cell--numeric">622,669</td>
87
+ <td class="tna-table__cell tna-table__cell--numeric">2,249</td>
88
+ </tr>
89
+ </tfoot>
90
+ </table>
92
91
  </div>
93
92
  </div>
93
+ </div>
94
94
  {% endblock %}
@@ -124,7 +124,7 @@
124
124
 
125
125
  @mixin thick-keyline-accent($direction) {
126
126
  @include colour-border(
127
- "accent-background",
127
+ "accent-border",
128
128
  borders.$thick-border-width,
129
129
  solid,
130
130
  $direction
@@ -318,6 +318,7 @@
318
318
  %yellow-accent {
319
319
  --accent-background: #{colour.brand-colour("yellow")} !important;
320
320
  --accent-background-light: #{colour.brand-colour("cream")} !important;
321
+ --accent-border: #{colour.brand-colour("brown")} !important;
321
322
  --accent-font-base: #{colour.brand-colour("black")} !important;
322
323
  --accent-font-dark: #{colour.brand-colour("black")} !important;
323
324
  --accent-font-light: #{colour.brand-colour("black", 0.7)} !important;
@@ -361,6 +362,7 @@
361
362
  %pink-accent {
362
363
  --accent-background: #{colour.brand-colour("maroon")} !important;
363
364
  --accent-background-light: #{colour.brand-colour("pastel-pink")} !important;
365
+ --accent-border: #{colour.brand-colour("pink")} !important;
364
366
  --button-accent-background: #{colour.brand-colour("maroon")} !important;
365
367
  }
366
368
 
@@ -372,6 +374,7 @@
372
374
  %orange-accent {
373
375
  --accent-background: #{colour.brand-colour("chestnut")} !important;
374
376
  --accent-background-light: #{colour.brand-colour("pastel-orange")} !important;
377
+ --accent-border: #{colour.brand-colour("orange")} !important;
375
378
  --button-accent-background: #{colour.brand-colour("chestnut")} !important;
376
379
  }
377
380
 
@@ -383,6 +386,7 @@
383
386
  %green-accent {
384
387
  --accent-background: #{colour.brand-colour("forest")} !important;
385
388
  --accent-background-light: #{colour.brand-colour("pastel-green")} !important;
389
+ --accent-border: #{colour.brand-colour("green")} !important;
386
390
  --button-accent-background: #{colour.brand-colour("forest")} !important;
387
391
  }
388
392
 
@@ -394,6 +398,7 @@
394
398
  %blue-accent {
395
399
  --accent-background: #{colour.brand-colour("navy")} !important;
396
400
  --accent-background-light: #{colour.brand-colour("pastel-blue")} !important;
401
+ --accent-border: #{colour.brand-colour("blue")} !important;
397
402
  --button-accent-background: #{colour.brand-colour("navy")} !important;
398
403
  }
399
404
 
@@ -90,3 +90,13 @@ $media-tiny: "(max-width: #{$largest-tiny-device-em})";
90
90
  @content;
91
91
  }
92
92
  }
93
+
94
+ %hide-on-print {
95
+ @media print {
96
+ display: none;
97
+ }
98
+ }
99
+
100
+ @mixin hide-on-print() {
101
+ @extend %hide-on-print;
102
+ }
@@ -21,7 +21,7 @@
21
21
  padding: spacing.space(1);
22
22
  }
23
23
 
24
- @include colour.on-high-contrast {
24
+ @include colour.on-high-contrast-and-forced-colours {
25
25
  @include colour.colour-border("keyline-dark", 1px);
26
26
  }
27
27
 
@@ -32,12 +32,8 @@
32
32
  }
33
33
 
34
34
  > li::marker {
35
- @include colour.colour-font("accent-background");
35
+ @include colour.colour-font("accent-border");
36
36
  font-weight: 700;
37
-
38
- .tna-background-accent & {
39
- @include colour.colour-font("font-dark");
40
- }
41
37
  }
42
38
  }
43
39
 
@@ -190,6 +190,8 @@ small {
190
190
  a {
191
191
  display: inline-block;
192
192
 
193
+ vertical-align: top;
194
+
193
195
  &::after {
194
196
  content: "\203A";
195
197
 
@@ -83,8 +83,9 @@ $colour-palette-default: (
83
83
  "contrast-button-background": brand-colour("white"),
84
84
  "contrast-button-hover-text": brand-colour("white"),
85
85
  "contrast-button-hover-background": brand-colour("black"),
86
- "accent-background": brand-colour("grey"),
86
+ "accent-background": #afb6b5,
87
87
  "accent-background-light": #ededed,
88
+ "accent-border": brand-colour("grey"),
88
89
  "accent-font-base": brand-colour("black"),
89
90
  "accent-font-dark": brand-colour("black"),
90
91
  "accent-font-light": brand-colour("black", 0.7),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nationalarchives/frontend",
3
- "version": "0.1.55",
3
+ "version": "0.1.57",
4
4
  "description": "The National Archives frontend styles",
5
5
  "scripts": {
6
6
  "start": "storybook dev -p 6006",