From 989869ff78e7482ac83ee507435b0968cc42c604 Mon Sep 17 00:00:00 2001 From: Andrew Hosgood Date: Mon, 20 Nov 2023 14:55:41 +0000 Subject: [PATCH] Chip list updates (#53) * Fix and tweak chips and chip lists * Lint * Lint * Update card fixtures --- CHANGELOG.md | 8 ++ .../components/card/card.scss | 43 ++----- .../components/card/fixtures.json | 2 +- .../components/card/template.njk | 14 ++- src/nationalarchives/tools/_colour.scss | 10 +- .../utilities/_typography.scss | 115 +++++++++--------- src/nationalarchives/variables/_colour.scss | 2 +- 7 files changed, 95 insertions(+), 99 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 69f87d54..3cdd3793 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -9,15 +9,23 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ### Added +- High contrast support for chip lists with icons - Allow custom cookie path to be passed to cookie banner ### Changed +- Card meta information changed to chip list - Improvements to high contrast modes ### Deprecated ### Removed + +- Removed generic `accent` CSS variable + ### Fixed + +- Multiple line spacing for chip lists fixed + ### Security ## [0.1.25-prerelease](https://github.com/nationalarchives/tna-frontend/compare/v0.1.24-prerelease...v0.1.25-prerelease) - 2023-11-16 diff --git a/src/nationalarchives/components/card/card.scss b/src/nationalarchives/components/card/card.scss index e095eced..c37092a9 100644 --- a/src/nationalarchives/components/card/card.scss +++ b/src/nationalarchives/components/card/card.scss @@ -61,8 +61,8 @@ } &__meta { - margin: 0; - padding: 0; + // margin: 0; + // padding: 0; display: flex; flex-wrap: wrap; @@ -72,19 +72,19 @@ list-style: none; - &-item { - display: flex; - align-items: center; + // &-item { + // display: flex; + // align-items: center; - @include colour.colour-font("font-dark"); - @include typography.detail-font-small; + // @include colour.colour-font("font-dark"); + // @include typography.detail-font-small; - .fa-solid { - margin-right: 0.75rem; + // .fa-solid { + // margin-right: 0.75rem; - @include colour.colour-font("icon-light"); - } - } + // @include colour.colour-font("icon-light"); + // } + // } + p { margin-top: 1rem; @@ -201,23 +201,6 @@ } @include colour.on-high-contrast { - &__meta { - &-item { - padding-right: 0.5rem; - - @include colour.colour-border("keyline-dark", 1px, solid); - - .fa-solid { - margin-right: 0.5rem; - padding: 0.5rem; - - @include colour.colour-font("contrast-font-base"); - - @include colour.colour-background("contrast-background"); - - @include colour.colour-border("keyline-dark", 1px, solid, right); - } - } - } + @include colour.colour-border("keyline-dark", 1px); } } diff --git a/src/nationalarchives/components/card/fixtures.json b/src/nationalarchives/components/card/fixtures.json index 1c4aa0fc..16647dd0 100644 --- a/src/nationalarchives/components/card/fixtures.json +++ b/src/nationalarchives/components/card/fixtures.json @@ -75,7 +75,7 @@ ], "body": "

Card body

" }, - "html": "

Card title

  • 24th September 2023
  • From £16
  • Online

Card body

", + "html": "

Card title

  • 24th September 2023
  • From £16
  • Online

Card body

", "hidden": false }, { diff --git a/src/nationalarchives/components/card/template.njk b/src/nationalarchives/components/card/template.njk index 2284b24e..c5a20a08 100644 --- a/src/nationalarchives/components/card/template.njk +++ b/src/nationalarchives/components/card/template.njk @@ -59,13 +59,15 @@ {%- endif %}
{%- if params.meta %} -