@nationalarchives/frontend 0.1.51 → 0.1.53
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.
- package/nationalarchives/all.css +1 -1
- package/nationalarchives/all.css.map +1 -1
- package/nationalarchives/all.js +1 -1
- package/nationalarchives/all.js.map +1 -1
- package/nationalarchives/all.mjs +7 -0
- package/nationalarchives/analytics.js +1 -1
- package/nationalarchives/analytics.js.map +1 -1
- package/nationalarchives/analytics.mjs +4 -4
- package/nationalarchives/assets/fonts/OpenSans-SemiBold.ttf +0 -0
- package/nationalarchives/components/breadcrumbs/breadcrumbs.css +1 -1
- package/nationalarchives/components/breadcrumbs/breadcrumbs.css.map +1 -1
- package/nationalarchives/components/breadcrumbs/breadcrumbs.scss +9 -8
- package/nationalarchives/components/button/button-group.stories.js +0 -8
- package/nationalarchives/components/button/button.css +1 -1
- package/nationalarchives/components/button/button.css.map +1 -1
- package/nationalarchives/components/button/button.scss +12 -6
- package/nationalarchives/components/button/fixtures.json +76 -0
- package/nationalarchives/components/card/card.css +1 -1
- package/nationalarchives/components/card/card.css.map +1 -1
- package/nationalarchives/components/card/card.scss +1 -1
- package/nationalarchives/components/card/macro-options.json +1 -1
- package/nationalarchives/components/checkboxes/checkboxes.css +1 -1
- package/nationalarchives/components/checkboxes/checkboxes.css.map +1 -1
- package/nationalarchives/components/checkboxes/checkboxes.scss +3 -2
- package/nationalarchives/components/compound-filters/compound-filters.css +1 -1
- package/nationalarchives/components/compound-filters/compound-filters.css.map +1 -1
- package/nationalarchives/components/compound-filters/compound-filters.scss +10 -6
- package/nationalarchives/components/cookie-banner/README.md +6 -2
- package/nationalarchives/components/cookie-banner/cookie-banner.css +1 -1
- package/nationalarchives/components/cookie-banner/cookie-banner.css.map +1 -1
- package/nationalarchives/components/cookie-banner/cookie-banner.js +1 -1
- package/nationalarchives/components/cookie-banner/cookie-banner.js.map +1 -1
- package/nationalarchives/components/cookie-banner/cookie-banner.mjs +2 -1
- package/nationalarchives/components/cookie-banner/cookie-banner.stories.js +7 -8
- package/nationalarchives/components/date-input/date-input.css +1 -1
- package/nationalarchives/components/date-input/date-input.css.map +1 -1
- package/nationalarchives/components/date-search/date-search.css +1 -1
- package/nationalarchives/components/date-search/date-search.css.map +1 -1
- package/nationalarchives/components/date-search/date-search.scss +2 -0
- package/nationalarchives/components/error-summary/error-summary.css +1 -1
- package/nationalarchives/components/error-summary/error-summary.css.map +1 -1
- package/nationalarchives/components/featured-records/featured-records.css +1 -1
- package/nationalarchives/components/featured-records/featured-records.css.map +1 -1
- package/nationalarchives/components/featured-records/featured-records.scss +5 -3
- package/nationalarchives/components/footer/analytics.js +8 -0
- package/nationalarchives/components/footer/fixtures.json +2 -2
- package/nationalarchives/components/footer/footer.css +1 -1
- package/nationalarchives/components/footer/footer.css.map +1 -1
- package/nationalarchives/components/footer/footer.js +2 -0
- package/nationalarchives/components/footer/footer.js.map +1 -0
- package/nationalarchives/components/footer/footer.mjs +87 -0
- package/nationalarchives/components/footer/footer.scss +28 -8
- package/nationalarchives/components/footer/footer.stories.js +62 -3
- package/nationalarchives/components/footer/template.njk +168 -120
- package/nationalarchives/components/gallery/gallery.css +1 -1
- package/nationalarchives/components/gallery/gallery.css.map +1 -1
- package/nationalarchives/components/gallery/gallery.scss +2 -1
- package/nationalarchives/components/global-header/README.md +1 -1
- package/nationalarchives/components/global-header/global-header.css +1 -1
- package/nationalarchives/components/global-header/global-header.css.map +1 -1
- package/nationalarchives/components/global-header/global-header.scss +26 -29
- package/nationalarchives/components/grid/grid.css +1 -1
- package/nationalarchives/components/grid/grid.css.map +1 -1
- package/nationalarchives/components/grid/grid.scss +3 -3
- package/nationalarchives/components/header/header.css +1 -1
- package/nationalarchives/components/header/header.css.map +1 -1
- package/nationalarchives/components/header/header.scss +30 -47
- package/nationalarchives/components/hero/fixtures.json +106 -18
- package/nationalarchives/components/hero/hero.css +1 -1
- package/nationalarchives/components/hero/hero.css.map +1 -1
- package/nationalarchives/components/hero/hero.scss +80 -20
- package/nationalarchives/components/hero/hero.stories.js +60 -32
- package/nationalarchives/components/hero/macro-options.json +34 -3
- package/nationalarchives/components/hero/template.njk +27 -6
- package/nationalarchives/components/index-grid/index-grid.css +1 -1
- package/nationalarchives/components/index-grid/index-grid.css.map +1 -1
- package/nationalarchives/components/index-grid/macro-options.json +1 -1
- package/nationalarchives/components/pagination/pagination.css +1 -1
- package/nationalarchives/components/pagination/pagination.css.map +1 -1
- package/nationalarchives/components/pagination/pagination.scss +2 -2
- package/nationalarchives/components/phase-banner/phase-banner.css.map +1 -1
- package/nationalarchives/components/picture/picture.css +1 -1
- package/nationalarchives/components/picture/picture.css.map +1 -1
- package/nationalarchives/components/picture/picture.scss +5 -1
- package/nationalarchives/components/quick-filters/quick-filters.css +1 -1
- package/nationalarchives/components/quick-filters/quick-filters.css.map +1 -1
- package/nationalarchives/components/quick-filters/quick-filters.scss +4 -2
- package/nationalarchives/components/radios/radios.css +1 -1
- package/nationalarchives/components/radios/radios.css.map +1 -1
- package/nationalarchives/components/radios/radios.scss +3 -2
- package/nationalarchives/components/search-field/search-field.css +1 -1
- package/nationalarchives/components/search-field/search-field.css.map +1 -1
- package/nationalarchives/components/search-field/search-field.scss +24 -7
- package/nationalarchives/components/search-filters/search-filters.css +1 -1
- package/nationalarchives/components/search-filters/search-filters.css.map +1 -1
- package/nationalarchives/components/search-filters/search-filters.scss +7 -6
- package/nationalarchives/components/select/select.css +1 -1
- package/nationalarchives/components/select/select.css.map +1 -1
- package/nationalarchives/components/sensitive-image/sensitive-image.css +1 -1
- package/nationalarchives/components/sensitive-image/sensitive-image.css.map +1 -1
- package/nationalarchives/components/sensitive-image/sensitive-image.scss +7 -6
- package/nationalarchives/components/skip-link/skip-link.css +1 -1
- package/nationalarchives/components/skip-link/skip-link.css.map +1 -1
- package/nationalarchives/components/skip-link/skip-link.scss +4 -4
- package/nationalarchives/components/tabs/tabs.css +1 -1
- package/nationalarchives/components/tabs/tabs.css.map +1 -1
- package/nationalarchives/components/tabs/tabs.scss +8 -6
- package/nationalarchives/components/text-input/text-input.css +1 -1
- package/nationalarchives/components/text-input/text-input.css.map +1 -1
- package/nationalarchives/components/textarea/textarea.css +1 -1
- package/nationalarchives/components/textarea/textarea.css.map +1 -1
- package/nationalarchives/components/textarea/textarea.scss +7 -4
- package/nationalarchives/components/warning/warning.css +1 -1
- package/nationalarchives/components/warning/warning.css.map +1 -1
- package/nationalarchives/components/warning/warning.scss +7 -5
- package/nationalarchives/global-header-package.css +1 -1
- package/nationalarchives/global-header-package.css.map +1 -1
- package/nationalarchives/lib/cookies.mjs +21 -4
- package/nationalarchives/lib/functions.css +1 -0
- package/nationalarchives/lib/functions.css.map +1 -0
- package/nationalarchives/lib/functions.scss +16 -0
- package/nationalarchives/prototype-kit.css +1 -1
- package/nationalarchives/prototype-kit.css.map +1 -1
- package/nationalarchives/stories/utilities/colour-schemes/colour-combinations.stories.js +83 -34
- package/nationalarchives/stories/utilities/colour-schemes/colour-themes.stories.js +74 -41
- package/nationalarchives/templates/fixtures.json +4 -4
- package/nationalarchives/tools/_a11y.scss +0 -4
- package/nationalarchives/tools/_colour.scss +30 -68
- package/nationalarchives/tools/_typography.scss +8 -9
- package/nationalarchives/utilities/_a11y.scss +4 -4
- package/nationalarchives/utilities/_colour.scss +3 -36
- package/nationalarchives/utilities/_debug.scss +2 -2
- package/nationalarchives/utilities/_global.scss +8 -0
- package/nationalarchives/utilities/_imports.scss +57 -0
- package/nationalarchives/utilities/_index.scss +1 -0
- package/nationalarchives/utilities/_lists.scss +36 -19
- package/nationalarchives/utilities/_tables.scss +8 -8
- package/nationalarchives/utilities/_typography.scss +6 -42
- package/nationalarchives/variables/_colour.scss +7 -2
- package/nationalarchives/variables/_typography.scss +55 -4
- package/package.json +23 -21
- package/nationalarchives/assets/fonts/OpenSans-Italic.ttf +0 -0
@@ -1,5 +1,6 @@
|
|
1
1
|
import Button from "../../../components/button/template.njk";
|
2
2
|
import Checkboxes from "../../../components/checkboxes/template.njk";
|
3
|
+
import ErrorSummary from "../../../components/error-summary/template.njk";
|
3
4
|
import Radios from "../../../components/radios/template.njk";
|
4
5
|
import Select from "../../../components/select/template.njk";
|
5
6
|
import TextInput from "../../../components/text-input/template.njk";
|
@@ -11,13 +12,8 @@ export default {
|
|
11
12
|
argTypes,
|
12
13
|
};
|
13
14
|
|
14
|
-
const Template = () => {
|
15
|
-
const
|
16
|
-
"tna-template--light-theme",
|
17
|
-
"tna-template--light-theme tna-template--high-contrast-theme",
|
18
|
-
"tna-template--dark-theme",
|
19
|
-
"tna-template--dark-theme tna-template--high-contrast-theme",
|
20
|
-
];
|
15
|
+
const Template = ({ theme }) => {
|
16
|
+
const themeSlug = theme.replace(" ", "-").toLowerCase();
|
21
17
|
|
22
18
|
const accents = [
|
23
19
|
"",
|
@@ -31,8 +27,8 @@ const Template = () => {
|
|
31
27
|
|
32
28
|
const blocks = [
|
33
29
|
"",
|
34
|
-
"tna-background-accent-light",
|
35
30
|
"tna-background-tint",
|
31
|
+
"tna-background-accent-light",
|
36
32
|
"tna-background-accent",
|
37
33
|
"tna-background-contrast",
|
38
34
|
];
|
@@ -51,17 +47,12 @@ const Template = () => {
|
|
51
47
|
)}
|
52
48
|
</div>
|
53
49
|
<div class="tna-colour-contrast-demo__examples">
|
54
|
-
${
|
55
|
-
(
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
accent,
|
60
|
-
) => `${accentOutput}<div class="tna-colour-contrast-demo__theme-accent">
|
50
|
+
${accents.reduce(
|
51
|
+
(
|
52
|
+
accentOutput,
|
53
|
+
accent,
|
54
|
+
) => `${accentOutput}<div class="tna-colour-contrast-demo__theme-accent">
|
61
55
|
<div class="tna-colour-contrast-demo__example">
|
62
|
-
<p>Theme: <strong>${theme
|
63
|
-
.replace(/tna-template--/g, "")
|
64
|
-
.replace(/-theme/g, "")}</strong></p>
|
65
56
|
<p>Accent: <strong>${
|
66
57
|
accent.replace(/tna-accent-/g, "") || "[none]"
|
67
58
|
}</strong></p>
|
@@ -71,10 +62,13 @@ const Template = () => {
|
|
71
62
|
`${blockOutput}<div class="tna-colour-contrast-demo__example tna-template ${theme} ${accent}">
|
72
63
|
<div class="tna-template__body">
|
73
64
|
<div class="tna-colour-contrast-demo__example-content ${block}">
|
74
|
-
<
|
65
|
+
<h1 class="tna-heading-s">Heading</h1>
|
75
66
|
<p>Text / <span class="dark-text">Dark</span> / <span class="light-text">Light</span> / <i class="fa-solid fa-heart" aria-hidden="true"></i> <i class="fa-solid fa-heart light-icon" aria-hidden="true"></i></p>
|
76
67
|
<p><a href="#">Link</a> / <a href="#" class="tna-colour-contrast-demo__link--visited">Link (visited)</a></p>
|
77
|
-
<ul class="tna-
|
68
|
+
<ul class="tna-ul">
|
69
|
+
<li>Alpha</li>
|
70
|
+
</ul>
|
71
|
+
<ul class="tna-chip-list tna-!--margin-top-xs">
|
78
72
|
<li class="tna-chip-list__item">
|
79
73
|
<span class="tna-chip">Chip</span>
|
80
74
|
</li>
|
@@ -85,18 +79,43 @@ const Template = () => {
|
|
85
79
|
<span class="tna-chip tna-chip--plain"><i class="fa-solid fa-heart" aria-hidden="true"></i>Chip</span>
|
86
80
|
</li>
|
87
81
|
</ul>
|
82
|
+
${ErrorSummary({
|
83
|
+
params: {
|
84
|
+
title: "Error",
|
85
|
+
headingLevel: 2,
|
86
|
+
items: [
|
87
|
+
{
|
88
|
+
text: "Error",
|
89
|
+
href: `name-${themeSlug}-${block}-${accent}-2`,
|
90
|
+
},
|
91
|
+
],
|
92
|
+
disableAutoFocus: true,
|
93
|
+
classes: "tna-!--margin-top-s",
|
94
|
+
},
|
95
|
+
})}
|
96
|
+
${TextInput({
|
97
|
+
params: {
|
98
|
+
label: "Input",
|
99
|
+
id: `name-${themeSlug}-${block}-${accent}`,
|
100
|
+
name: `name-${themeSlug}-${block}-${accent}`,
|
101
|
+
value: `Lorem ipsum`,
|
102
|
+
},
|
103
|
+
})}
|
88
104
|
${TextInput({
|
89
105
|
params: {
|
90
106
|
label: "Input",
|
91
|
-
id: `name-${
|
92
|
-
name: `name-${
|
107
|
+
id: `name-${themeSlug}-${block}-${accent}-2`,
|
108
|
+
name: `name-${themeSlug}-${block}-${accent}-2`,
|
93
109
|
value: `Lorem ipsum`,
|
110
|
+
error: {
|
111
|
+
text: "Error",
|
112
|
+
},
|
94
113
|
},
|
95
114
|
})}
|
96
115
|
${Checkboxes({
|
97
116
|
params: {
|
98
|
-
id: `categories-${
|
99
|
-
name: `categories-${
|
117
|
+
id: `categories-${themeSlug}-${block}-${accent}`,
|
118
|
+
name: `categories-${themeSlug}-${block}-${accent}`,
|
100
119
|
items: [
|
101
120
|
{
|
102
121
|
text: "Alpha",
|
@@ -114,8 +133,8 @@ const Template = () => {
|
|
114
133
|
})}
|
115
134
|
${Radios({
|
116
135
|
params: {
|
117
|
-
id: `type-${
|
118
|
-
name: `type-${
|
136
|
+
id: `type-${themeSlug}-${block}-${accent}`,
|
137
|
+
name: `type-${themeSlug}-${block}-${accent}`,
|
119
138
|
items: [
|
120
139
|
{
|
121
140
|
text: "Alpha",
|
@@ -134,8 +153,8 @@ const Template = () => {
|
|
134
153
|
${Select({
|
135
154
|
params: {
|
136
155
|
label: "Select",
|
137
|
-
id: `sort-${
|
138
|
-
name: `sort-${
|
156
|
+
id: `sort-${themeSlug}-${block}-${accent}`,
|
157
|
+
name: `sort-${themeSlug}-${block}-${accent}`,
|
139
158
|
items: [
|
140
159
|
{
|
141
160
|
text: "Relevance",
|
@@ -180,18 +199,48 @@ const Template = () => {
|
|
180
199
|
"",
|
181
200
|
)}
|
182
201
|
</div>`,
|
183
|
-
"",
|
184
|
-
)}`,
|
185
202
|
"",
|
186
203
|
)}
|
187
204
|
</div>
|
188
205
|
</div>`;
|
189
206
|
};
|
190
207
|
|
191
|
-
export const
|
192
|
-
|
208
|
+
export const Light = Template.bind({});
|
209
|
+
Light.parameters = {
|
193
210
|
a11y: {
|
194
|
-
disable: true,
|
211
|
+
// disable: true,
|
195
212
|
},
|
196
213
|
};
|
197
|
-
|
214
|
+
Light.args = {
|
215
|
+
theme: "",
|
216
|
+
};
|
217
|
+
|
218
|
+
export const Dark = Template.bind({});
|
219
|
+
Dark.parameters = {
|
220
|
+
a11y: {
|
221
|
+
// disable: true,
|
222
|
+
},
|
223
|
+
};
|
224
|
+
Dark.args = {
|
225
|
+
theme: "tna-template--dark-theme",
|
226
|
+
};
|
227
|
+
|
228
|
+
export const HighContrast = Template.bind({});
|
229
|
+
HighContrast.parameters = {
|
230
|
+
a11y: {
|
231
|
+
// disable: true,
|
232
|
+
},
|
233
|
+
};
|
234
|
+
HighContrast.args = {
|
235
|
+
theme: "tna-template--high-contrast-theme",
|
236
|
+
};
|
237
|
+
|
238
|
+
export const DarkHighContrast = Template.bind({});
|
239
|
+
DarkHighContrast.parameters = {
|
240
|
+
a11y: {
|
241
|
+
// disable: true,
|
242
|
+
},
|
243
|
+
};
|
244
|
+
DarkHighContrast.args = {
|
245
|
+
theme: "tna-template--dark-theme tna-template--high-contrast-theme",
|
246
|
+
};
|
@@ -28,8 +28,8 @@ const argTypes = {
|
|
28
28
|
"system",
|
29
29
|
"light",
|
30
30
|
"dark",
|
31
|
-
"light high-contrast",
|
32
|
-
"dark high-contrast",
|
31
|
+
// "light high-contrast",
|
32
|
+
// "dark high-contrast",
|
33
33
|
],
|
34
34
|
},
|
35
35
|
accent: {
|
@@ -46,7 +46,6 @@ export default {
|
|
46
46
|
const Template = ({ theme, accent }) => {
|
47
47
|
document.documentElement.classList.remove(
|
48
48
|
"tna-template",
|
49
|
-
"tna-template--light-theme",
|
50
49
|
"tna-template--yellow-accent",
|
51
50
|
);
|
52
51
|
|
@@ -75,15 +74,13 @@ const Template = ({ theme, accent }) => {
|
|
75
74
|
return `<div class="tna-template ${
|
76
75
|
theme === "system"
|
77
76
|
? "tna-template--system-theme"
|
78
|
-
: theme === "
|
79
|
-
? "tna-template--
|
80
|
-
: theme === "
|
81
|
-
? "tna-template--
|
82
|
-
: theme === "
|
83
|
-
? "tna-template--
|
84
|
-
:
|
85
|
-
? "tna-template--dark-theme tna-template--high-contrast-theme"
|
86
|
-
: ""
|
77
|
+
: theme === "dark"
|
78
|
+
? "tna-template--dark-theme"
|
79
|
+
: theme === "high-contrast"
|
80
|
+
? "tna-template--high-contrast-theme"
|
81
|
+
: theme === "dark high-contrast"
|
82
|
+
? "tna-template--dark-theme tna-template--high-contrast-theme"
|
83
|
+
: ""
|
87
84
|
} ${
|
88
85
|
accent === "yellow"
|
89
86
|
? "tna-template--yellow-accent"
|
@@ -194,7 +191,8 @@ const Template = ({ theme, accent }) => {
|
|
194
191
|
<main class="tna-main" id="main-content">
|
195
192
|
${Hero({
|
196
193
|
params: {
|
197
|
-
|
194
|
+
title: "Title",
|
195
|
+
text: "Lorem ipsum dolor sit amet, consectetur adipiscing elit.",
|
198
196
|
imageSrc:
|
199
197
|
"https://www.nationalarchives.gov.uk/wp-content/uploads/sites/24/2023/07/tna-building-compress.jpg",
|
200
198
|
imageAlt: "The National Archives office",
|
@@ -717,9 +715,19 @@ const Template = ({ theme, accent }) => {
|
|
717
715
|
classes: "tna-pagination--demo tna-!--margin-top-m",
|
718
716
|
},
|
719
717
|
})}
|
718
|
+
${SearchField({
|
719
|
+
params: {
|
720
|
+
label: "Catalogue search results",
|
721
|
+
headingLevel: 3,
|
722
|
+
headingSize: "l",
|
723
|
+
id: "search1",
|
724
|
+
name: "q",
|
725
|
+
},
|
726
|
+
})}
|
720
727
|
<div class="tna-button-group">
|
721
728
|
<a href="#" class="tna-button">Primary button</a>
|
722
729
|
<a href="#" class="tna-button tna-button--accent">Accent button</a>
|
730
|
+
<a href="" class="tna-button tna-button--solid-hover">Solid hover button</a>
|
723
731
|
<a href="" class="tna-button tna-button--plain">Plain button</a>
|
724
732
|
</div>
|
725
733
|
</div>
|
@@ -801,9 +809,19 @@ const Template = ({ theme, accent }) => {
|
|
801
809
|
classes: "tna-pagination--demo tna-!--margin-top-m",
|
802
810
|
},
|
803
811
|
})}
|
812
|
+
${SearchField({
|
813
|
+
params: {
|
814
|
+
label: "Catalogue search results",
|
815
|
+
headingLevel: 3,
|
816
|
+
headingSize: "l",
|
817
|
+
id: "search2",
|
818
|
+
name: "q",
|
819
|
+
},
|
820
|
+
})}
|
804
821
|
<div class="tna-button-group">
|
805
822
|
<a href="#" class="tna-button">Primary button</a>
|
806
823
|
<a href="#" class="tna-button tna-button--accent">Accent button</a>
|
824
|
+
<a href="" class="tna-button tna-button--solid-hover">Solid hover button</a>
|
807
825
|
<a href="" class="tna-button tna-button--plain">Plain button</a>
|
808
826
|
</div>
|
809
827
|
</div>
|
@@ -885,9 +903,19 @@ const Template = ({ theme, accent }) => {
|
|
885
903
|
classes: "tna-pagination--demo tna-!--margin-top-m",
|
886
904
|
},
|
887
905
|
})}
|
906
|
+
${SearchField({
|
907
|
+
params: {
|
908
|
+
label: "Catalogue search results",
|
909
|
+
headingLevel: 3,
|
910
|
+
headingSize: "l",
|
911
|
+
id: "search3",
|
912
|
+
name: "q",
|
913
|
+
},
|
914
|
+
})}
|
888
915
|
<div class="tna-button-group">
|
889
916
|
<a href="#" class="tna-button">Primary button</a>
|
890
917
|
<a href="#" class="tna-button tna-button--accent">Accent button</a>
|
918
|
+
<a href="" class="tna-button tna-button--solid-hover">Solid hover button</a>
|
891
919
|
<a href="" class="tna-button tna-button--plain">Plain button</a>
|
892
920
|
</div>
|
893
921
|
</div>
|
@@ -969,9 +997,19 @@ const Template = ({ theme, accent }) => {
|
|
969
997
|
classes: "tna-pagination--demo tna-!--margin-top-m",
|
970
998
|
},
|
971
999
|
})}
|
1000
|
+
${SearchField({
|
1001
|
+
params: {
|
1002
|
+
label: "Catalogue search results",
|
1003
|
+
headingLevel: 3,
|
1004
|
+
headingSize: "l",
|
1005
|
+
id: "search4",
|
1006
|
+
name: "q",
|
1007
|
+
},
|
1008
|
+
})}
|
972
1009
|
<div class="tna-button-group">
|
973
1010
|
<a href="#" class="tna-button">Primary button</a>
|
974
1011
|
<a href="#" class="tna-button tna-button--accent">Accent button</a>
|
1012
|
+
<a href="" class="tna-button tna-button--solid-hover">Solid hover button</a>
|
975
1013
|
<a href="" class="tna-button tna-button--plain">Plain button</a>
|
976
1014
|
</div>
|
977
1015
|
</div>
|
@@ -1053,26 +1091,21 @@ const Template = ({ theme, accent }) => {
|
|
1053
1091
|
classes: "tna-pagination--demo tna-!--margin-top-m",
|
1054
1092
|
},
|
1055
1093
|
})}
|
1056
|
-
<div class="tna-button-group">
|
1057
|
-
<a href="#" class="tna-button">Primary button</a>
|
1058
|
-
<a href="#" class="tna-button tna-button--accent">Accent button</a>
|
1059
|
-
<a href="" class="tna-button tna-button--plain">Plain button</a>
|
1060
|
-
</div>
|
1061
|
-
</div>
|
1062
|
-
</div>
|
1063
|
-
</div>
|
1064
|
-
<div class="tna-section tna-background-contrast">
|
1065
|
-
<div class="tna-container">
|
1066
|
-
<div class="tna-column tna-column--width-2-3 tna-column--full-small tna-column--full-tiny">
|
1067
1094
|
${SearchField({
|
1068
1095
|
params: {
|
1069
1096
|
label: "Catalogue search results",
|
1070
1097
|
headingLevel: 3,
|
1071
1098
|
headingSize: "l",
|
1072
|
-
id: "
|
1099
|
+
id: "search5",
|
1073
1100
|
name: "q",
|
1074
1101
|
},
|
1075
1102
|
})}
|
1103
|
+
<div class="tna-button-group">
|
1104
|
+
<a href="#" class="tna-button">Primary button</a>
|
1105
|
+
<a href="#" class="tna-button tna-button--accent">Accent button</a>
|
1106
|
+
<a href="" class="tna-button tna-button--solid-hover">Solid hover button</a>
|
1107
|
+
<a href="" class="tna-button tna-button--plain">Plain button</a>
|
1108
|
+
</div>
|
1076
1109
|
</div>
|
1077
1110
|
</div>
|
1078
1111
|
</div>
|
@@ -1374,20 +1407,20 @@ Dark.args = {
|
|
1374
1407
|
accent: "pink",
|
1375
1408
|
};
|
1376
1409
|
|
1377
|
-
export const LightHighContrast = Template.bind({});
|
1378
|
-
LightHighContrast.parameters = {
|
1379
|
-
|
1380
|
-
};
|
1381
|
-
LightHighContrast.args = {
|
1382
|
-
|
1383
|
-
|
1384
|
-
};
|
1410
|
+
// export const LightHighContrast = Template.bind({});
|
1411
|
+
// LightHighContrast.parameters = {
|
1412
|
+
// chromatic: { disableSnapshot: true },
|
1413
|
+
// };
|
1414
|
+
// LightHighContrast.args = {
|
1415
|
+
// theme: "light high-contrast",
|
1416
|
+
// accent: "pink",
|
1417
|
+
// };
|
1385
1418
|
|
1386
|
-
export const DarkHighContrast = Template.bind({});
|
1387
|
-
DarkHighContrast.parameters = {
|
1388
|
-
|
1389
|
-
};
|
1390
|
-
DarkHighContrast.args = {
|
1391
|
-
|
1392
|
-
|
1393
|
-
};
|
1419
|
+
// export const DarkHighContrast = Template.bind({});
|
1420
|
+
// DarkHighContrast.parameters = {
|
1421
|
+
// chromatic: { disableSnapshot: true },
|
1422
|
+
// };
|
1423
|
+
// DarkHighContrast.args = {
|
1424
|
+
// theme: "dark high-contrast",
|
1425
|
+
// accent: "pink",
|
1426
|
+
// };
|