@nationalarchives/frontend 0.2.10 → 0.2.11

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 (27) hide show
  1. package/nationalarchives/all.css +1 -1
  2. package/nationalarchives/all.css.map +1 -1
  3. package/nationalarchives/components/accordion/accordion.css +1 -1
  4. package/nationalarchives/components/accordion/accordion.css.map +1 -1
  5. package/nationalarchives/components/accordion/accordion.scss +4 -0
  6. package/nationalarchives/components/breadcrumbs/breadcrumbs.css.map +1 -1
  7. package/nationalarchives/components/button/button.css.map +1 -1
  8. package/nationalarchives/components/card/card.css.map +1 -1
  9. package/nationalarchives/components/details/details.css.map +1 -1
  10. package/nationalarchives/components/error-summary/error-summary.css.map +1 -1
  11. package/nationalarchives/components/footer/footer.css.map +1 -1
  12. package/nationalarchives/components/gallery/gallery.css.map +1 -1
  13. package/nationalarchives/components/global-header/global-header.css.map +1 -1
  14. package/nationalarchives/components/header/header.css.map +1 -1
  15. package/nationalarchives/components/index-grid/index-grid.css.map +1 -1
  16. package/nationalarchives/components/pagination/pagination.css.map +1 -1
  17. package/nationalarchives/components/phase-banner/phase-banner.css.map +1 -1
  18. package/nationalarchives/components/records-list/records-list.css.map +1 -1
  19. package/nationalarchives/components/sidebar/sidebar.css.map +1 -1
  20. package/nationalarchives/components/tabs/tabs.css.map +1 -1
  21. package/nationalarchives/components/warning/warning.css.map +1 -1
  22. package/nationalarchives/global-header-package.css.map +1 -1
  23. package/nationalarchives/prototype-kit.css +1 -1
  24. package/nationalarchives/prototype-kit.css.map +1 -1
  25. package/nationalarchives/utilities/_imports.scss +4 -8
  26. package/nationalarchives/variables/_typography.scss +0 -11
  27. package/package.json +1 -1
@@ -53,12 +53,8 @@
53
53
  " ",
54
54
  "+"
55
55
  );
56
- @if typography.$import-google-fonts {
57
- @import url("https://fonts.googleapis.com/css2?family=#{$main-font-family-name}:wght@#{typography.$main-font-weight}..#{typography.$main-font-weight-bold}&family=#{$detail-font-family-name}:wght@#{typography.$detail-font-weight}..#{typography.$detail-font-weight-bold}&display=swap"); /* stylelint-disable-line */
58
- } @else {
59
- @warn "Remember to import the Google Fonts CSS into your application";
60
- @debug '<link rel="preconnect" href="https://fonts.googleapis.com">' +
61
- '<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>' +
62
- '<link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=#{$main-font-family-name}:wght@#{typography.$main-font-weight}..#{typography.$main-font-weight-bold}&family=#{$detail-font-family-name}:wght@#{typography.$detail-font-weight}..#{typography.$detail-font-weight-bold}&display=swap">'; /* stylelint-disable-line */
63
- }
56
+ @warn "Remember to import the Google Fonts CSS into your application";
57
+ @debug '<link rel="preconnect" href="https://fonts.googleapis.com">';
58
+ @debug '<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>';
59
+ @debug '<link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=#{$main-font-family-name}:wght@#{typography.$main-font-weight}..#{typography.$main-font-weight-bold}&family=#{$detail-font-family-name}:wght@#{typography.$detail-font-weight}..#{typography.$detail-font-weight-bold}&display=swap">'; /* stylelint-disable-line */
64
60
  }
@@ -21,17 +21,6 @@ $relative-1rem-px: 16; // 16px = 1rem
21
21
  */
22
22
  $use-local-fonts: false !default;
23
23
 
24
- /*
25
- * ------------------------------------------
26
- * When the $use-local-fonts var and this are
27
- * both set to true import the required fonts
28
- * from Google with an @import; if false then
29
- * a separate <link> element for the font CSS
30
- * is required in your app
31
- * ------------------------------------------
32
- */
33
- $import-google-fonts: true !default;
34
-
35
24
  $body-font-size-px: 18 !default;
36
25
  $body-font-size-px-mobile: 17 !default;
37
26
  $body-line-height: 1.75 !default;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nationalarchives/frontend",
3
- "version": "0.2.10",
3
+ "version": "0.2.11",
4
4
  "description": "The National Archives frontend styles",
5
5
  "scripts": {
6
6
  "start": "storybook dev -p 6006",