From dc7a2cde0b6870b9e221162119db3252f72ad5cf Mon Sep 17 00:00:00 2001 From: Andrew Hosgood Date: Wed, 17 Jul 2024 16:23:44 +0100 Subject: [PATCH] Add width to files list icon (#146) --- CHANGELOG.md | 1 + src/nationalarchives/components/files-list/fixtures.json | 6 +++--- src/nationalarchives/components/files-list/template.njk | 2 +- 3 files changed, 5 insertions(+), 4 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 1e654d74..c2916c95 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -26,6 +26,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ### Fixed - Fixed spacing in nested lists +- Set icon size for file list component for better viewing without CSS ### Security diff --git a/src/nationalarchives/components/files-list/fixtures.json b/src/nationalarchives/components/files-list/fixtures.json index 0d51c85b..bb3a72a2 100644 --- a/src/nationalarchives/components/files-list/fixtures.json +++ b/src/nationalarchives/components/files-list/fixtures.json @@ -30,7 +30,7 @@ } ] }, - "html": "
" + "html": "
" }, { "name": "with classes", @@ -48,7 +48,7 @@ ], "classes": "files__test-class" }, - "html": "
" + "html": "
" }, { "name": "with attributes", @@ -68,7 +68,7 @@ "data-testattribute": "foobar" } }, - "html": "
" + "html": "
" } ] } diff --git a/src/nationalarchives/components/files-list/template.njk b/src/nationalarchives/components/files-list/template.njk index 5b189838..1ef1edd2 100644 --- a/src/nationalarchives/components/files-list/template.njk +++ b/src/nationalarchives/components/files-list/template.njk @@ -1,7 +1,7 @@ {%- set containerClasses = [params.classes] if params.classes else [] -%} {%- set classes = containerClasses | join(' ') -%}
- +