@nationalarchives/frontend 0.2.12 → 0.2.13
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+analytics.js +1 -1
- package/nationalarchives/all+analytics.js.map +1 -1
- 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 +79 -57
- package/nationalarchives/components/button/button.css +1 -1
- package/nationalarchives/components/button/button.css.map +1 -1
- package/nationalarchives/components/button/button.scss +16 -17
- package/nationalarchives/components/card/card.css +1 -1
- package/nationalarchives/components/card/card.css.map +1 -1
- package/nationalarchives/components/card/card.scss +40 -0
- package/nationalarchives/components/card/fixtures.json +1 -1
- package/nationalarchives/components/card/template.njk +1 -1
- package/nationalarchives/components/checkboxes/checkboxes.css +1 -1
- package/nationalarchives/components/checkboxes/checkboxes.css.map +1 -1
- 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/error-summary/error-summary.css +1 -1
- package/nationalarchives/components/error-summary/error-summary.css.map +1 -1
- package/nationalarchives/components/files-list/files-list.css +1 -1
- package/nationalarchives/components/files-list/files-list.css.map +1 -1
- package/nationalarchives/components/files-list/files-list.scss +3 -6
- package/nationalarchives/components/footer/footer.css +1 -1
- package/nationalarchives/components/footer/footer.css.map +1 -1
- package/nationalarchives/components/gallery/gallery.css +1 -1
- package/nationalarchives/components/gallery/gallery.css.map +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/header/header.css +1 -1
- package/nationalarchives/components/header/header.css.map +1 -1
- package/nationalarchives/components/hero/hero.css +1 -1
- package/nationalarchives/components/hero/hero.css.map +1 -1
- package/nationalarchives/components/index-grid/index-grid.css +1 -1
- package/nationalarchives/components/index-grid/index-grid.css.map +1 -1
- package/nationalarchives/components/pagination/fixtures.json +117 -2
- package/nationalarchives/components/pagination/macro-options.json +0 -18
- package/nationalarchives/components/picture/picture.css +1 -1
- package/nationalarchives/components/picture/picture.css.map +1 -1
- package/nationalarchives/components/radios/radios.css +1 -1
- package/nationalarchives/components/radios/radios.css.map +1 -1
- package/nationalarchives/components/search-field/search-field.css +1 -1
- package/nationalarchives/components/search-field/search-field.css.map +1 -1
- package/nationalarchives/components/select/select.css +1 -1
- package/nationalarchives/components/select/select.css.map +1 -1
- 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/warning/warning.css +1 -1
- package/nationalarchives/components/warning/warning.css.map +1 -1
- package/nationalarchives/global-header-package.css +1 -1
- package/nationalarchives/global-header-package.css.map +1 -1
- package/nationalarchives/print.css +1 -1
- package/nationalarchives/print.css.map +1 -1
- package/nationalarchives/prototype-kit.css +1 -1
- package/nationalarchives/prototype-kit.css.map +1 -1
- package/nationalarchives/utilities/_reset.scss +4 -0
- package/nationalarchives/utilities/tables/_index.scss +18 -0
- package/nationalarchives/variables/_colour.scss +20 -19
- package/package.json +12 -12
@@ -1,5 +1,6 @@
|
|
1
1
|
@use "sass:math";
|
2
2
|
@use "sass:selector";
|
3
|
+
@use "../../tools/a11y";
|
3
4
|
@use "../../tools/colour";
|
4
5
|
@use "../../tools/grid";
|
5
6
|
@use "../../tools/media";
|
@@ -23,6 +24,15 @@
|
|
23
24
|
caption-side: bottom;
|
24
25
|
|
25
26
|
@include typography.font-size(16);
|
27
|
+
|
28
|
+
&--scroll {
|
29
|
+
min-width: calc(320px - #{grid.gutter-width()});
|
30
|
+
max-width: calc(100vw - #{grid.gutter-width()});
|
31
|
+
|
32
|
+
&::after {
|
33
|
+
content: " (scroll to see more)";
|
34
|
+
}
|
35
|
+
}
|
26
36
|
}
|
27
37
|
|
28
38
|
&__head {
|
@@ -92,6 +102,14 @@
|
|
92
102
|
position: relative;
|
93
103
|
left: -#{grid.gutter-width()};
|
94
104
|
|
105
|
+
&[tabindex="0"] {
|
106
|
+
border-radius: 0.1px;
|
107
|
+
|
108
|
+
// &:active {
|
109
|
+
// @include a11y.focus-outline;
|
110
|
+
// }
|
111
|
+
}
|
112
|
+
|
95
113
|
@include media.on-tiny {
|
96
114
|
padding-right: grid.gutter-width-tiny();
|
97
115
|
padding-left: grid.gutter-width-tiny();
|
@@ -3,6 +3,7 @@
|
|
3
3
|
|
4
4
|
$colour-palette-brand: (
|
5
5
|
"black": #010101,
|
6
|
+
"dark-grey": #26262a,
|
6
7
|
"grey": #8c9694,
|
7
8
|
"light-grey": #d9d9d6,
|
8
9
|
"white": #fff,
|
@@ -40,11 +41,6 @@ $colour-palette-brand: (
|
|
40
41
|
@return hex-to-rgb(map.get($colour-palette-brand, $colour), $opacity);
|
41
42
|
}
|
42
43
|
|
43
|
-
$dark-grey: #26262a !default;
|
44
|
-
$base-font: #343338 !default;
|
45
|
-
$link-colour: #005fa3 !default;
|
46
|
-
$link-colour-visited: #4c2c92 !default;
|
47
|
-
|
48
44
|
/*
|
49
45
|
=========================================
|
50
46
|
LIGHT THEME (DEFAULT)
|
@@ -53,15 +49,15 @@ LIGHT THEME (DEFAULT)
|
|
53
49
|
$colour-palette-default: (
|
54
50
|
"background": #f4f4f4,
|
55
51
|
"background-tint": brand-colour("light-grey"),
|
56
|
-
"font-base":
|
52
|
+
"font-base": #343338,
|
57
53
|
"font-dark": brand-colour("black"),
|
58
54
|
"font-light": brand-colour("black", 0.58),
|
59
|
-
"icon-light": hex-to-rgb(
|
60
|
-
"link":
|
61
|
-
"link-visited":
|
55
|
+
"icon-light": hex-to-rgb(#343338, 0.45),
|
56
|
+
"link": #005fa3,
|
57
|
+
"link-visited": #634abb,
|
62
58
|
"focus-outline": brand-colour("blue"),
|
63
|
-
"keyline":
|
64
|
-
"keyline-dark":
|
59
|
+
"keyline": brand-colour("dark-grey", 0.25),
|
60
|
+
"keyline-dark": brand-colour("dark-grey"),
|
65
61
|
"input-foreground": brand-colour("black"),
|
66
62
|
"input-background": brand-colour("white"),
|
67
63
|
"input-border": brand-colour("black"),
|
@@ -78,8 +74,8 @@ $colour-palette-default: (
|
|
78
74
|
"contrast-icon-light": brand-colour("white", 0.45),
|
79
75
|
"contrast-link": brand-colour("white"),
|
80
76
|
"contrast-link-visited": brand-colour("white"),
|
81
|
-
"contrast-keyline": brand-colour("white", 0.
|
82
|
-
"contrast-keyline-dark": brand-colour("white", 0.
|
77
|
+
"contrast-keyline": brand-colour("white", 0.3),
|
78
|
+
"contrast-keyline-dark": brand-colour("white", 0.6),
|
83
79
|
"contrast-button-text": brand-colour("black"),
|
84
80
|
"contrast-button-background": brand-colour("white"),
|
85
81
|
"contrast-button-hover-text": brand-colour("white"),
|
@@ -94,7 +90,7 @@ $colour-palette-default: (
|
|
94
90
|
"accent-icon-light": brand-colour("black", 0.45),
|
95
91
|
"accent-link": brand-colour("black"),
|
96
92
|
"accent-link-visited": brand-colour("black"),
|
97
|
-
"accent-keyline": brand-colour("black", 0.
|
93
|
+
"accent-keyline": brand-colour("black", 0.3),
|
98
94
|
"accent-keyline-dark": brand-colour("black", 0.8),
|
99
95
|
"accent-button-text": brand-colour("white"),
|
100
96
|
"accent-button-background": brand-colour("black"),
|
@@ -122,7 +118,7 @@ $colour-palette-dark: map.merge(
|
|
122
118
|
"link-visited": #a8f,
|
123
119
|
"focus-outline": brand-colour("orange"),
|
124
120
|
"keyline": brand-colour("white", 0.25),
|
125
|
-
"keyline-dark": brand-colour("white"),
|
121
|
+
"keyline-dark": brand-colour("white", 0.75),
|
126
122
|
"input-foreground": brand-colour("white"),
|
127
123
|
"input-background": brand-colour("black"),
|
128
124
|
"input-border": brand-colour("white"),
|
@@ -151,16 +147,17 @@ $colour-palette-high-contrast: map.merge(
|
|
151
147
|
"font-base": brand-colour("black"),
|
152
148
|
"font-light": brand-colour("black"),
|
153
149
|
"icon-light": brand-colour("black", 0.8),
|
154
|
-
"link": #
|
155
|
-
"link-visited": #
|
150
|
+
"link": #202fbc,
|
151
|
+
"link-visited": #6a286b,
|
156
152
|
"focus-outline": brand-colour("orange"),
|
157
|
-
"keyline": brand-colour("black"),
|
153
|
+
"keyline": brand-colour("black", 0.8),
|
158
154
|
"keyline-dark": brand-colour("black"),
|
159
155
|
"contrast-background": brand-colour("black"),
|
160
156
|
"contrast-link": brand-colour("blue"),
|
161
157
|
"contrast-font-light": brand-colour("white", 0.8),
|
162
158
|
"contrast-link-visited": #a8f,
|
163
159
|
"accent-font-light": brand-colour("black", 0.8),
|
160
|
+
"button-accented-background": #8f9997,
|
164
161
|
)
|
165
162
|
) !default;
|
166
163
|
|
@@ -176,7 +173,10 @@ $colour-palette-high-contrast-dark: map.merge(
|
|
176
173
|
"font-base": brand-colour("white"),
|
177
174
|
"font-light": brand-colour("white"),
|
178
175
|
"icon-light": brand-colour("white", 0.8),
|
179
|
-
"
|
176
|
+
"link": #8fc7ff,
|
177
|
+
"link-visited": #ccb8ff,
|
178
|
+
"keyline": brand-colour("white", 0.8),
|
179
|
+
"keyline-dark": brand-colour("white"),
|
180
180
|
"form-error-border": #ff6b6b,
|
181
181
|
"form-error-text": #ff6b6b,
|
182
182
|
"contrast-background": brand-colour("black"),
|
@@ -184,5 +184,6 @@ $colour-palette-high-contrast-dark: map.merge(
|
|
184
184
|
"contrast-font-light": brand-colour("white", 0.8),
|
185
185
|
"contrast-link-visited": #a8f,
|
186
186
|
"accent-font-light": brand-colour("black", 0.8),
|
187
|
+
"button-accented-background": #8f9997,
|
187
188
|
)
|
188
189
|
) !default;
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@nationalarchives/frontend",
|
3
|
-
"version": "0.2.
|
3
|
+
"version": "0.2.13",
|
4
4
|
"description": "The National Archives frontend styles",
|
5
5
|
"scripts": {
|
6
6
|
"start": "storybook dev -p 6006",
|
@@ -47,15 +47,15 @@
|
|
47
47
|
"@babel/core": "^7.25.2",
|
48
48
|
"@babel/preset-env": "^7.25.2",
|
49
49
|
"@mdx-js/react": "^3.0.0",
|
50
|
-
"@storybook/addon-a11y": "^8.
|
51
|
-
"@storybook/addon-docs": "^8.
|
52
|
-
"@storybook/addon-essentials": "^8.
|
53
|
-
"@storybook/addon-interactions": "^8.
|
54
|
-
"@storybook/addon-links": "^8.
|
55
|
-
"@storybook/addon-mdx-gfm": "^8.
|
56
|
-
"@storybook/html": "^8.
|
57
|
-
"@storybook/html-webpack5": "^8.
|
58
|
-
"@storybook/test": "^8.
|
50
|
+
"@storybook/addon-a11y": "^8.3.0",
|
51
|
+
"@storybook/addon-docs": "^8.3.0",
|
52
|
+
"@storybook/addon-essentials": "^8.3.0",
|
53
|
+
"@storybook/addon-interactions": "^8.3.0",
|
54
|
+
"@storybook/addon-links": "^8.3.0",
|
55
|
+
"@storybook/addon-mdx-gfm": "^8.3.0",
|
56
|
+
"@storybook/html": "^8.3.0",
|
57
|
+
"@storybook/html-webpack5": "^8.3.0",
|
58
|
+
"@storybook/test": "^8.3.0",
|
59
59
|
"@storybook/test-runner": "^0.19.1",
|
60
60
|
"axe-playwright": "^2.0.1",
|
61
61
|
"babel-jest": "^29.7.0",
|
@@ -63,7 +63,7 @@
|
|
63
63
|
"chromatic": "^11.3.1",
|
64
64
|
"copy-webpack-plugin": "^12.0.2",
|
65
65
|
"css-loader": "^7.1.1",
|
66
|
-
"diff": "^
|
66
|
+
"diff": "^7.0.0",
|
67
67
|
"eslint": "^8.52.0",
|
68
68
|
"eslint-plugin-storybook": "^0.8.0",
|
69
69
|
"glob": "^11.0.0",
|
@@ -76,7 +76,7 @@
|
|
76
76
|
"sass": "^1.77.6",
|
77
77
|
"sass-loader": "^16.0.1",
|
78
78
|
"simple-nunjucks-loader": "^3.2.0",
|
79
|
-
"storybook": "^8.
|
79
|
+
"storybook": "^8.3.0",
|
80
80
|
"style-loader": "^4.0.0",
|
81
81
|
"stylelint": "^16.8.1",
|
82
82
|
"stylelint-config-standard-scss": "^13.0.0",
|