Skip to content

Commit

Permalink
v0.2.11
Browse files Browse the repository at this point in the history
  • Loading branch information
ahosgood committed Aug 30, 2024
1 parent 9168d75 commit 55491bb
Show file tree
Hide file tree
Showing 6 changed files with 23 additions and 23 deletions.
13 changes: 12 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [Unreleased](https://github.com/nationalarchives/tna-frontend/compare/v0.2.10...HEAD)
## [Unreleased](https://github.com/nationalarchives/tna-frontend/compare/v0.2.11...HEAD)

### Added
### Changed
Expand All @@ -14,6 +14,17 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
### Fixed
### Security

## [0.2.11](https://github.com/nationalarchives/tna-frontend/compare/v0.2.10...v0.2.11) - 2024-08-30

### Removed

- Removed `$import-google-fonts` option
- Removed the `@import` rule for Google Fonts

### Fixed

- Increased `z-index` of active summary buttons on accordions

## [0.2.10](https://github.com/nationalarchives/tna-frontend/compare/v0.2.9...v0.2.10) - 2024-08-30

### Added
Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@nationalarchives/frontend",
"version": "0.2.10",
"version": "0.2.11",
"description": "The National Archives frontend styles",
"scripts": {
"start": "storybook dev -p 6006",
Expand Down
4 changes: 4 additions & 0 deletions src/nationalarchives/components/accordion/accordion.scss
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,10 @@
border-width: 0 0.5rem #{math.div(math.sqrt(3), 2)}rem 0.5rem;
}
}

&:active {
z-index: 1;
}
}

&__content {
Expand Down
12 changes: 4 additions & 8 deletions src/nationalarchives/utilities/_imports.scss
Original file line number Diff line number Diff line change
Expand Up @@ -53,12 +53,8 @@
" ",
"+"
);
@if typography.$import-google-fonts {
@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 */
} @else {
@warn "Remember to import the Google Fonts CSS into your application";
@debug '<link rel="preconnect" href="https://fonts.googleapis.com">' +
'<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>' +
'<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 */
}
@warn "Remember to import the Google Fonts CSS into your application";
@debug '<link rel="preconnect" href="https://fonts.googleapis.com">';
@debug '<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>';
@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 */
}
11 changes: 0 additions & 11 deletions src/nationalarchives/variables/_typography.scss
Original file line number Diff line number Diff line change
Expand Up @@ -21,17 +21,6 @@ $relative-1rem-px: 16; // 16px = 1rem
*/
$use-local-fonts: false !default;

/*
* ------------------------------------------
* When the $use-local-fonts var and this are
* both set to true import the required fonts
* from Google with an @import; if false then
* a separate <link> element for the font CSS
* is required in your app
* ------------------------------------------
*/
$import-google-fonts: true !default;

$body-font-size-px: 18 !default;
$body-font-size-px-mobile: 17 !default;
$body-line-height: 1.75 !default;
Expand Down

0 comments on commit 55491bb

Please sign in to comment.