@nationalarchives/frontend 0.1.12-prerelease → 0.1.14-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.
- package/README.md +1 -1
- package/nationalarchives/_features.scss +0 -3
- package/nationalarchives/all.css +1 -1
- package/nationalarchives/all.css.map +1 -1
- package/nationalarchives/components/_index.scss +2 -0
- package/nationalarchives/components/breadcrumbs/_index.scss +30 -26
- package/nationalarchives/components/breadcrumbs/breadcrumbs.stories.js +1 -1
- package/nationalarchives/components/breadcrumbs/fixtures.json +1 -1
- package/nationalarchives/components/breadcrumbs/template.njk +1 -1
- package/nationalarchives/components/button/button.stories.js +1 -1
- package/nationalarchives/components/card/_index.scss +2 -1
- package/nationalarchives/components/card/card.stories.js +1 -1
- package/nationalarchives/components/footer/_index.scss +4 -6
- package/nationalarchives/components/footer/fixtures.json +1 -1
- package/nationalarchives/components/footer/template.njk +1 -1
- package/nationalarchives/components/header/_index.scss +43 -11
- package/nationalarchives/components/header/header.stories.js +88 -43
- package/nationalarchives/components/hero/_index.scss +0 -2
- package/nationalarchives/components/hero/hero.stories.js +2 -0
- package/nationalarchives/components/index-grid/_index.scss +44 -0
- package/nationalarchives/components/index-grid/fixtures.json +4 -0
- package/nationalarchives/components/index-grid/index-grid.stories.js +78 -0
- package/nationalarchives/components/index-grid/macro-options.json +94 -0
- package/nationalarchives/components/index-grid/macro.njk +3 -0
- package/nationalarchives/components/index-grid/template.njk +56 -0
- package/nationalarchives/components/message/_index.scss +29 -0
- package/nationalarchives/components/message/fixtures.json +4 -0
- package/nationalarchives/components/message/macro-options.json +20 -0
- package/nationalarchives/components/message/macro.njk +3 -0
- package/nationalarchives/components/message/phase-banner.stories.js +36 -0
- package/nationalarchives/components/message/template.njk +9 -0
- package/nationalarchives/components/phase-banner/phase-banner.stories.js +1 -1
- package/nationalarchives/components/phase-banner/template.njk +1 -1
- package/nationalarchives/components/picture/_index.scss +4 -18
- package/nationalarchives/components/picture/picture.stories.js +1 -1
- package/nationalarchives/components/profile/profile.stories.js +1 -1
- package/nationalarchives/components/profile/template.njk +1 -1
- package/nationalarchives/components/sensitive-image/sensitive-image.stories.js +2 -0
- package/nationalarchives/components/tabs/tabs.stories.js +4 -2
- package/nationalarchives/stories/development/publishing.mdx +1 -12
- package/nationalarchives/stories/utilities/colour.stories.js +39 -1
- package/nationalarchives/stories/utilities/heading-groups.stories.js +1 -0
- package/nationalarchives/stories/utilities/headings.stories.js +8 -22
- package/nationalarchives/stories/utilities/typography.mdx +1 -3
- package/nationalarchives/templates/layouts/_generic.njk +42 -50
- package/nationalarchives/tools/_colour.scss +39 -61
- package/nationalarchives/utilities/_global.scss +11 -20
- package/nationalarchives/utilities/_typography.scss +2 -2
- package/nationalarchives/variables/_colour.scss +24 -4
- package/nationalarchives/variables/_typography.scss +4 -2
- package/package.json +3 -3
@@ -79,20 +79,31 @@ $colour-palette-default: (
|
|
79
79
|
"button-secondary-background": $-tna-yellow,
|
80
80
|
"button-secondary-hover-text": $-tna-black,
|
81
81
|
"button-secondary-hover-background": $-tna-white,
|
82
|
+
"contrast-background": $-dark-grey,
|
83
|
+
"contrast-font-base": $-tna-white,
|
84
|
+
"contrast-font-dark": $-tna-white,
|
85
|
+
"contrast-font-light": rgba($-tna-white, 0.7),
|
86
|
+
"contrast-link": $-tna-white,
|
87
|
+
"contrast-link-visited": #b9f,
|
88
|
+
"contrast-keyline": rgba($-tna-white, 0.5),
|
89
|
+
"contrast-keyline-dark": rgba($-tna-white, 0.8),
|
82
90
|
);
|
83
91
|
|
84
92
|
$colour-palette-dark: map.merge(
|
85
93
|
$colour-palette-default,
|
86
94
|
(
|
87
|
-
"page-background": #
|
95
|
+
"page-background": #111,
|
88
96
|
"font-base": rgba($-tna-white, 0.95),
|
89
97
|
"font-dark": $-tna-white,
|
90
|
-
"font-light": rgba($-tna-white, 0.
|
98
|
+
"font-light": rgba($-tna-white, 0.5),
|
91
99
|
"link": $-tna-blue,
|
92
|
-
"link-visited":
|
100
|
+
"link-visited": map.get($colour-palette-default, "contrast-link-visited"),
|
93
101
|
"keyline": rgba($-tna-white, 0.5),
|
94
102
|
"keyline-dark": $-tna-white,
|
95
103
|
"accent": accent-colour-dark(),
|
104
|
+
"contrast-background": #222,
|
105
|
+
"contrast-link-visited":
|
106
|
+
map.get($colour-palette-default, "contrast-link-visited"),
|
96
107
|
)
|
97
108
|
);
|
98
109
|
|
@@ -106,17 +117,26 @@ $colour-palette-high-contrast: map.merge(
|
|
106
117
|
"focus-outline": $-tna-orange,
|
107
118
|
"keyline": $-tna-black,
|
108
119
|
"keyline-dark": $-tna-black,
|
120
|
+
"contrast-background": #f0f0f0,
|
121
|
+
"contrast-font-base": $-tna-black,
|
122
|
+
"contrast-font-dark": $-tna-black,
|
123
|
+
"contrast-font-light": rgba($-tna-black, 0.7),
|
124
|
+
"contrast-link": $-tna-black,
|
125
|
+
"contrast-link-visited": $-tna-black,
|
126
|
+
"contrast-keyline": rgba($-tna-black, 0.5),
|
127
|
+
"contrast-keyline-dark": rgba($-tna-black, 0.8),
|
109
128
|
)
|
110
129
|
);
|
111
130
|
|
112
131
|
$colour-palette-high-contrast-dark: map.merge(
|
113
132
|
$colour-palette-dark,
|
114
133
|
(
|
115
|
-
"page-background":
|
134
|
+
"page-background": $tna-black,
|
116
135
|
"font-base": $-tna-white,
|
117
136
|
"font-light": $-tna-white,
|
118
137
|
"link": $-tna-white,
|
119
138
|
"link-visited": $-tna-white,
|
120
139
|
"keyline": $-tna-white,
|
140
|
+
"contrast-background": #111,
|
121
141
|
)
|
122
142
|
);
|
@@ -4,7 +4,9 @@ $font-family-main: "Open Sans", sans-serif;
|
|
4
4
|
$font-weight-main: 400;
|
5
5
|
|
6
6
|
$font-family-heading: supria-sans-condensed, sans-serif;
|
7
|
-
$font-weight-heading:
|
7
|
+
$font-weight-heading: 400;
|
8
8
|
|
9
9
|
$font-family-detail: "Roboto Mono", monospace;
|
10
|
-
$font-weight-detail:
|
10
|
+
$font-weight-detail: 400;
|
11
|
+
// $font-family-detail: $font-family-main;
|
12
|
+
// $font-weight-detail: $font-weight-main;
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@nationalarchives/frontend",
|
3
|
-
"version": "0.1.
|
3
|
+
"version": "0.1.14-prerelease",
|
4
4
|
"description": "The National Archives frontend styles",
|
5
5
|
"scripts": {
|
6
6
|
"start": "storybook dev -p 6006",
|
@@ -9,8 +9,7 @@
|
|
9
9
|
"lint": "prettier --check '{src,.storybook,tasks}/**/*.{js,mjs,scss,json,html}' && stylelint 'src/**/*.scss' && eslint 'src/**/*.mjs'",
|
10
10
|
"lint:fix": "prettier --write '{src,.storybook,tasks}/**/*.{js,mjs,scss,json,html}' && stylelint --fix 'src/**/*.scss' && eslint --fix 'src/**/*.mjs'",
|
11
11
|
"package:sass": "sass --style=compressed --quiet-deps src/nationalarchives/all.scss package/nationalarchives/all.css",
|
12
|
-
"package:scripts": "webpack"
|
13
|
-
"package:test": "tasks/build-package.sh && node tasks/test-package.js"
|
12
|
+
"package:scripts": "webpack"
|
14
13
|
},
|
15
14
|
"repository": {
|
16
15
|
"type": "git",
|
@@ -54,6 +53,7 @@
|
|
54
53
|
"@storybook/jest": "^0.1.0",
|
55
54
|
"@storybook/test-runner": "^0.13.0",
|
56
55
|
"@storybook/testing-library": "^0.2.0",
|
56
|
+
"axe-playwright": "^1.2.3",
|
57
57
|
"babel-loader": "^9.0.1",
|
58
58
|
"chromatic": "^6.21.0",
|
59
59
|
"copy-webpack-plugin": "^11.0.0",
|