@nationalarchives/frontend 0.7.1 → 0.7.2

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 (87) hide show
  1. package/config/.htmlvalidate.json +1 -5
  2. package/nationalarchives/all+analytics.js +1 -1
  3. package/nationalarchives/all+analytics.js.map +1 -1
  4. package/nationalarchives/all.css +1 -1
  5. package/nationalarchives/all.css.map +1 -1
  6. package/nationalarchives/all.js +1 -1
  7. package/nationalarchives/all.js.map +1 -1
  8. package/nationalarchives/all.mjs +2 -2
  9. package/nationalarchives/analytics.js +1 -1
  10. package/nationalarchives/analytics.js.map +1 -1
  11. package/nationalarchives/analytics.mjs +1 -1
  12. package/nationalarchives/components/accordion/accordion.css.map +1 -1
  13. package/nationalarchives/components/accordion/accordion.js +1 -1
  14. package/nationalarchives/components/accordion/accordion.js.map +1 -1
  15. package/nationalarchives/components/accordion/accordion.mjs +2 -2
  16. package/nationalarchives/components/breadcrumbs/breadcrumbs.css.map +1 -1
  17. package/nationalarchives/components/breadcrumbs/breadcrumbs.js +1 -1
  18. package/nationalarchives/components/breadcrumbs/breadcrumbs.js.map +1 -1
  19. package/nationalarchives/components/breadcrumbs/breadcrumbs.mjs +1 -0
  20. package/nationalarchives/components/button/button.css.map +1 -1
  21. package/nationalarchives/components/card/card.css +1 -1
  22. package/nationalarchives/components/card/card.css.map +1 -1
  23. package/nationalarchives/components/card/card.scss +11 -1
  24. package/nationalarchives/components/checkboxes/checkboxes.css +1 -1
  25. package/nationalarchives/components/checkboxes/checkboxes.css.map +1 -1
  26. package/nationalarchives/components/compound-filters/compound-filters.css +1 -1
  27. package/nationalarchives/components/compound-filters/compound-filters.css.map +1 -1
  28. package/nationalarchives/components/date-input/date-input.css +1 -1
  29. package/nationalarchives/components/date-input/date-input.css.map +1 -1
  30. package/nationalarchives/components/date-search/date-search.css +1 -1
  31. package/nationalarchives/components/date-search/date-search.css.map +1 -1
  32. package/nationalarchives/components/details/details.css.map +1 -1
  33. package/nationalarchives/components/error-summary/error-summary.css +1 -1
  34. package/nationalarchives/components/error-summary/error-summary.css.map +1 -1
  35. package/nationalarchives/components/files-list/files-list.css.map +1 -1
  36. package/nationalarchives/components/footer/footer.css +1 -1
  37. package/nationalarchives/components/footer/footer.css.map +1 -1
  38. package/nationalarchives/components/gallery/gallery.css +1 -1
  39. package/nationalarchives/components/gallery/gallery.css.map +1 -1
  40. package/nationalarchives/components/gallery/gallery.js +1 -1
  41. package/nationalarchives/components/gallery/gallery.js.map +1 -1
  42. package/nationalarchives/components/gallery/gallery.mjs +2 -2
  43. package/nationalarchives/components/global-header/global-header.css +1 -1
  44. package/nationalarchives/components/global-header/global-header.css.map +1 -1
  45. package/nationalarchives/components/header/header.css +1 -1
  46. package/nationalarchives/components/header/header.css.map +1 -1
  47. package/nationalarchives/components/hero/hero.css +1 -1
  48. package/nationalarchives/components/hero/hero.css.map +1 -1
  49. package/nationalarchives/components/hero/hero.scss +0 -18
  50. package/nationalarchives/components/index-grid/index-grid.css +1 -1
  51. package/nationalarchives/components/index-grid/index-grid.css.map +1 -1
  52. package/nationalarchives/components/phase-banner/phase-banner.css +1 -1
  53. package/nationalarchives/components/phase-banner/phase-banner.css.map +1 -1
  54. package/nationalarchives/components/picture/picture.css +1 -1
  55. package/nationalarchives/components/picture/picture.css.map +1 -1
  56. package/nationalarchives/components/picture/picture.js +1 -1
  57. package/nationalarchives/components/picture/picture.js.map +1 -1
  58. package/nationalarchives/components/picture/picture.mjs +2 -2
  59. package/nationalarchives/components/quick-filters/quick-filters.css +1 -1
  60. package/nationalarchives/components/quick-filters/quick-filters.css.map +1 -1
  61. package/nationalarchives/components/radios/radios.css +1 -1
  62. package/nationalarchives/components/radios/radios.css.map +1 -1
  63. package/nationalarchives/components/search-field/search-field.css +1 -1
  64. package/nationalarchives/components/search-field/search-field.css.map +1 -1
  65. package/nationalarchives/components/select/select.css +1 -1
  66. package/nationalarchives/components/select/select.css.map +1 -1
  67. package/nationalarchives/components/sidebar/sidebar.css +1 -1
  68. package/nationalarchives/components/sidebar/sidebar.css.map +1 -1
  69. package/nationalarchives/components/skip-link/skip-link.css.map +1 -1
  70. package/nationalarchives/components/tabs/tabs.css.map +1 -1
  71. package/nationalarchives/components/tabs/tabs.js +1 -1
  72. package/nationalarchives/components/tabs/tabs.js.map +1 -1
  73. package/nationalarchives/components/tabs/tabs.mjs +1 -1
  74. package/nationalarchives/components/text-input/text-input.css +1 -1
  75. package/nationalarchives/components/text-input/text-input.css.map +1 -1
  76. package/nationalarchives/components/textarea/textarea.css +1 -1
  77. package/nationalarchives/components/textarea/textarea.css.map +1 -1
  78. package/nationalarchives/components/warning/warning.css +1 -1
  79. package/nationalarchives/components/warning/warning.css.map +1 -1
  80. package/nationalarchives/print.css +1 -1
  81. package/nationalarchives/print.css.map +1 -1
  82. package/nationalarchives/prototype-kit.css +1 -1
  83. package/nationalarchives/prototype-kit.css.map +1 -1
  84. package/nationalarchives/tools/_colour.scss +0 -14
  85. package/nationalarchives/utilities/lists/_index.scss +31 -3
  86. package/nationalarchives/variables/_colour.scss +0 -2
  87. package/package.json +3 -3
@@ -210,8 +210,6 @@
210
210
  --button-background: var(--contrast-button-background);
211
211
  --button-hover-text: var(--contrast-button-hover-text);
212
212
  --button-hover-background: var(--contrast-button-hover-background);
213
- --accent-list-marker: var(--accent-border);
214
- // --accent-list-marker: var(--font-base);
215
213
 
216
214
  @include colour-background("background");
217
215
 
@@ -237,8 +235,6 @@
237
235
  --button-background: var(--contrast-button-background);
238
236
  --button-hover-text: var(--contrast-button-hover-text);
239
237
  --button-hover-background: var(--contrast-button-hover-background);
240
- --accent-list-marker: var(--accent-border);
241
- // --accent-list-marker: var(--font-base);
242
238
 
243
239
  @include colour-background("background");
244
240
 
@@ -272,7 +268,6 @@
272
268
  --link-visited: var(--accent-link);
273
269
  --keyline: var(--accent-keyline);
274
270
  --keyline-dark: var(--accent-keyline-dark);
275
- --accent-list-marker: var(--accent-font-base);
276
271
  --accent-border: var(--accent-font-dark);
277
272
  --button-text: var(--accent-button-text);
278
273
  --button-background: var(--accent-button-background);
@@ -309,7 +304,6 @@
309
304
  colour.$colour-palette-default,
310
305
  "button-hover-background"
311
306
  )};
312
- --accent-list-marker: var(--font-base);
313
307
  --accent-border: var(--accent-background);
314
308
 
315
309
  @include colour-background("background");
@@ -329,7 +323,6 @@
329
323
  --link-visited: var(--accent-link);
330
324
  --keyline: var(--accent-keyline);
331
325
  --keyline-dark: var(--accent-keyline-dark);
332
- --accent-list-marker: var(--accent-font-base);
333
326
  --accent-border: var(--accent-font-dark);
334
327
  --button-text: var(--accent-button-text);
335
328
  --button-background: var(--accent-button-background);
@@ -351,7 +344,6 @@
351
344
  --link-visited: var(--accent-link);
352
345
  --keyline: var(--accent-keyline);
353
346
  --keyline-dark: var(--accent-keyline-dark);
354
- --accent-list-marker: var(--accent-font-base);
355
347
  --accent-border: var(--accent-font-dark);
356
348
  --button-text: var(--accent-button-text);
357
349
  --button-background: var(--accent-button-background);
@@ -368,7 +360,6 @@
368
360
  --accent-background: #{colour.brand-colour("yellow")} !important;
369
361
  --accent-background-light: #{colour.brand-colour("cream")} !important;
370
362
  --accent-border: #{colour.brand-colour("yellow")} !important;
371
- // --accent-list-marker: #{colour.brand-colour("brown")} !important;
372
363
  --accent-font-base: #{colour.brand-colour("black")} !important;
373
364
  --accent-font-dark: #{colour.brand-colour("black")} !important;
374
365
  --accent-font-light: #{colour.brand-colour("black", 0.7)} !important;
@@ -401,7 +392,6 @@
401
392
  --accent-background: #{colour.brand-colour("black")} !important;
402
393
  --accent-background-light: #{colour.brand-colour("light-grey")} !important;
403
394
  --accent-border: #{colour.brand-colour("black")} !important;
404
- --accent-list-marker: #{colour.brand-colour("grey")} !important;
405
395
  --button-accented-text: #{colour.brand-colour("black")} !important;
406
396
  --button-accented-background: #{colour.brand-colour("grey")} !important;
407
397
  }
@@ -415,7 +405,6 @@
415
405
  --accent-background: #{colour.brand-colour("maroon")} !important;
416
406
  --accent-background-light: #{colour.brand-colour("pastel-pink")} !important;
417
407
  --accent-border: #{colour.brand-colour("pink")} !important;
418
- --accent-list-marker: #{colour.brand-colour("pink")} !important;
419
408
  --button-accented-background: #{colour.brand-colour("maroon")} !important;
420
409
  }
421
410
 
@@ -428,7 +417,6 @@
428
417
  --accent-background: #{colour.brand-colour("chestnut")} !important;
429
418
  --accent-background-light: #{colour.brand-colour("pastel-orange")} !important;
430
419
  --accent-border: #{colour.brand-colour("orange")} !important;
431
- --accent-list-marker: #{colour.brand-colour("orange")} !important;
432
420
  --button-accented-background: #{colour.brand-colour("chestnut")} !important;
433
421
  }
434
422
 
@@ -441,7 +429,6 @@
441
429
  --accent-background: #{colour.brand-colour("forest")} !important;
442
430
  --accent-background-light: #{colour.brand-colour("pastel-green")} !important;
443
431
  --accent-border: #{colour.brand-colour("green")} !important;
444
- --accent-list-marker: #{colour.brand-colour("green")} !important;
445
432
  --button-accented-background: #{colour.brand-colour("forest")} !important;
446
433
  }
447
434
 
@@ -454,7 +441,6 @@
454
441
  --accent-background: #{colour.brand-colour("navy")} !important;
455
442
  --accent-background-light: #{colour.brand-colour("pastel-blue")} !important;
456
443
  --accent-border: #{colour.brand-colour("blue")} !important;
457
- --accent-list-marker: #{colour.brand-colour("blue")} !important;
458
444
  --button-accented-background: #{colour.brand-colour("navy")} !important;
459
445
  }
460
446
 
@@ -39,8 +39,12 @@ ol {
39
39
 
40
40
  > li {
41
41
  &::marker {
42
- @include colour.colour-font("accent-list-marker");
43
- @include typography.main-font-weight-bold;
42
+ @include colour.colour-font("font-light");
43
+ @include typography.main-font-weight-medium;
44
+
45
+ @include colour.on-high-contrast {
46
+ @include colour.colour-font("font-dark");
47
+ }
44
48
  }
45
49
  }
46
50
 
@@ -56,7 +60,6 @@ ol {
56
60
  &--dashed {
57
61
  > li::marker {
58
62
  content: "— ";
59
- @include colour.colour-font("font-light");
60
63
  @include typography.main-font-weight;
61
64
  }
62
65
  }
@@ -142,6 +145,24 @@ ol {
142
145
  background: transparent !important;
143
146
  }
144
147
  }
148
+
149
+ @include colour.on-high-contrast-and-forced-colours {
150
+ dd {
151
+ border-top: none !important;
152
+ }
153
+
154
+ &.tna-dl--plain {
155
+ dt {
156
+ padding-top: spacing.space(0.5) !important;
157
+ }
158
+ }
159
+
160
+ &.tna-dl--stacked:not(.tna-dl--plain) {
161
+ dt {
162
+ padding-bottom: 0 !important;
163
+ }
164
+ }
165
+ }
145
166
  }
146
167
 
147
168
  .tna-dl {
@@ -274,6 +295,13 @@ ol {
274
295
 
275
296
  @include colour.colour-border("keyline-dark", 1px, solid, top);
276
297
  }
298
+
299
+ &--plain {
300
+ dt,
301
+ dd {
302
+ padding-top: spacing.space(0.5);
303
+ }
304
+ }
277
305
  }
278
306
  }
279
307
 
@@ -84,7 +84,6 @@ $colour-palette-default: (
84
84
  "accent-background": #afb6b5,
85
85
  "accent-background-light": brand-colour("light-grey"),
86
86
  "accent-border": brand-colour("grey"),
87
- "accent-list-marker": brand-colour("black", 0.58),
88
87
  "accent-font-base": brand-colour("black"),
89
88
  "accent-font-dark": brand-colour("black"),
90
89
  "accent-font-light": brand-colour("black", 0.7),
@@ -131,7 +130,6 @@ $colour-palette-dark: map.merge(
131
130
  "button-hover-background": brand-colour("black"),
132
131
  "contrast-background": #101112,
133
132
  "accent-border": brand-colour("white"),
134
- "accent-list-marker": brand-colour("white", 0.51),
135
133
  )
136
134
  ) !default;
137
135
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nationalarchives/frontend",
3
- "version": "0.7.1",
3
+ "version": "0.7.2",
4
4
  "description": "The National Archives frontend styles",
5
5
  "scripts": {
6
6
  "start": "storybook dev -p 6006",
@@ -9,7 +9,7 @@
9
9
  "build:package": "./tasks/build-package.sh",
10
10
  "compile:sass": "sass --style=compressed --embed-sources src/nationalarchives:package/nationalarchives",
11
11
  "compile:scripts": "webpack",
12
- "lint:fix": "prettier --write '{src,.storybook,tasks,.}/**/*.{js,mjs,scss,json,html}' && stylelint --fix 'strict' 'src/**/*.scss' && eslint --fix 'src/**/*.{js,mjs}'",
12
+ "lint:fix": "prettier --write '{src,.storybook,tasks,.}/**/*.{js,mjs,scss,json,html}' && stylelint --fix 'src/**/*.scss' && eslint --fix 'src/**/*.{js,mjs}'",
13
13
  "test:all": "npm run test:lint && npm run test:unit && npm run test:html && npm run test:fixtures && npm run test:storybook && npm run build:package && npm run test:package",
14
14
  "test:fixtures": "node tasks/test-fixtures.js",
15
15
  "test:html": "node tasks/generate-fixture-html.js && html-validate fixtures-html",
@@ -67,7 +67,7 @@
67
67
  "eslint": "^8.57.1",
68
68
  "eslint-plugin-storybook": "^0.11.1",
69
69
  "glob": "^11.0.0",
70
- "html-validate": "^8.24.1",
70
+ "html-validate": "^9.1.3",
71
71
  "jest-environment-jsdom": "^29.7.0",
72
72
  "mdx-mermaid": "^2.0.1",
73
73
  "node-self": "^1.0.2",