@nationalarchives/frontend 0.1.12-prerelease → 0.1.13-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 (46) hide show
  1. package/README.md +1 -1
  2. package/nationalarchives/_features.scss +1 -1
  3. package/nationalarchives/all.css +1 -1
  4. package/nationalarchives/all.css.map +1 -1
  5. package/nationalarchives/components/_index.scss +2 -0
  6. package/nationalarchives/components/breadcrumbs/_index.scss +30 -26
  7. package/nationalarchives/components/breadcrumbs/breadcrumbs.stories.js +1 -1
  8. package/nationalarchives/components/breadcrumbs/fixtures.json +1 -1
  9. package/nationalarchives/components/breadcrumbs/template.njk +1 -1
  10. package/nationalarchives/components/button/button.stories.js +1 -1
  11. package/nationalarchives/components/card/_index.scss +2 -1
  12. package/nationalarchives/components/card/card.stories.js +1 -1
  13. package/nationalarchives/components/footer/_index.scss +3 -3
  14. package/nationalarchives/components/footer/fixtures.json +1 -1
  15. package/nationalarchives/components/footer/template.njk +1 -1
  16. package/nationalarchives/components/header/_index.scss +36 -7
  17. package/nationalarchives/components/header/header.stories.js +15 -15
  18. package/nationalarchives/components/index-grid/_index.scss +46 -0
  19. package/nationalarchives/components/index-grid/fixtures.json +4 -0
  20. package/nationalarchives/components/index-grid/index-grid.stories.js +77 -0
  21. package/nationalarchives/components/index-grid/macro-options.json +94 -0
  22. package/nationalarchives/components/index-grid/macro.njk +3 -0
  23. package/nationalarchives/components/index-grid/template.njk +56 -0
  24. package/nationalarchives/components/message/_index.scss +27 -0
  25. package/nationalarchives/components/message/fixtures.json +4 -0
  26. package/nationalarchives/components/message/macro-options.json +20 -0
  27. package/nationalarchives/components/message/macro.njk +3 -0
  28. package/nationalarchives/components/message/phase-banner.stories.js +36 -0
  29. package/nationalarchives/components/message/template.njk +9 -0
  30. package/nationalarchives/components/phase-banner/phase-banner.stories.js +1 -1
  31. package/nationalarchives/components/phase-banner/template.njk +1 -1
  32. package/nationalarchives/components/picture/_index.scss +5 -1
  33. package/nationalarchives/components/picture/picture.stories.js +1 -1
  34. package/nationalarchives/components/profile/profile.stories.js +1 -1
  35. package/nationalarchives/components/profile/template.njk +1 -1
  36. package/nationalarchives/components/tabs/tabs.stories.js +1 -1
  37. package/nationalarchives/stories/development/publishing.mdx +1 -12
  38. package/nationalarchives/stories/utilities/heading-groups.stories.js +1 -0
  39. package/nationalarchives/stories/utilities/headings.stories.js +8 -22
  40. package/nationalarchives/stories/utilities/typography.mdx +1 -3
  41. package/nationalarchives/templates/layouts/_generic.njk +42 -50
  42. package/nationalarchives/utilities/_global.scss +9 -2
  43. package/nationalarchives/utilities/_typography.scss +2 -2
  44. package/nationalarchives/variables/_colour.scss +1 -1
  45. package/nationalarchives/variables/_typography.scss +4 -2
  46. package/package.json +3 -3
@@ -112,9 +112,16 @@
112
112
  margin: 0;
113
113
  padding: 0;
114
114
 
115
- // @include colour.colour-background("page-background");
116
-
117
115
  overflow: auto;
116
+
117
+ &:has(.tna-header):has(#main[role="main"]):has(.tna-footer) {
118
+ display: flex;
119
+ flex-direction: column;
120
+
121
+ #main[role="main"] {
122
+ flex: 1;
123
+ }
124
+ }
118
125
  }
119
126
 
120
127
  img,
@@ -3,7 +3,7 @@
3
3
  @use "../tools/typography";
4
4
 
5
5
  // Temporary - will eventually bundle font files into package
6
- @import "https://fonts.googleapis.com/css2?family=Open+Sans:wght@400;700&family=Roboto+Mono:wght@500;700&display=swap";
6
+ @import "https://fonts.googleapis.com/css2?family=Open+Sans:wght@400;700&family=Roboto+Mono:wght@400;700&display=swap";
7
7
  @import "https://use.typekit.net/hkj3kuz.css";
8
8
 
9
9
  .tna-template {
@@ -74,7 +74,7 @@ a {
74
74
  }
75
75
 
76
76
  .tna-heading {
77
- margin-bottom: 1.5rem;
77
+ margin-bottom: 1rem;
78
78
 
79
79
  @include colour.colour-font("font-dark");
80
80
  @include typography.heading-font;
@@ -87,7 +87,7 @@ $colour-palette-dark: map.merge(
87
87
  "page-background": #222,
88
88
  "font-base": rgba($-tna-white, 0.95),
89
89
  "font-dark": $-tna-white,
90
- "font-light": rgba($-tna-white, 0.8),
90
+ "font-light": rgba($-tna-white, 0.5),
91
91
  "link": $-tna-blue,
92
92
  "link-visited": #b9f,
93
93
  "keyline": rgba($-tna-white, 0.5),
@@ -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: 600;
7
+ $font-weight-heading: 400;
8
8
 
9
9
  $font-family-detail: "Roboto Mono", monospace;
10
- $font-weight-detail: 500;
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.12-prerelease",
3
+ "version": "0.1.13-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",