From 97898b02d0f44622a931dd0df6ee6fddd2e86d48 Mon Sep 17 00:00:00 2001 From: Mathias Schopmans Date: Wed, 21 Feb 2024 14:49:59 +0100 Subject: [PATCH] chore: Refactor icons and set fill via CSS --- package.json | 2 +- src/components/Navigation/Navigation.module.css | 1 + src/icons/close.svg | 2 +- src/icons/filter.svg | 2 +- src/icons/overview.svg | 2 +- src/icons/pie.svg | 2 +- src/icons/question.svg | 2 +- src/icons/search.svg | 2 +- 8 files changed, 8 insertions(+), 7 deletions(-) diff --git a/package.json b/package.json index 1293554..ed7eb44 100644 --- a/package.json +++ b/package.json @@ -4,7 +4,7 @@ "private": true, "scripts": { "dev": "next dev --turbo", - "build:icons": "npx @svgr/cli --typescript --no-prettier --out-dir src/components/Icons -- src/icons", + "build:icons": "npx @svgr/cli --typescript --no-dimensions --no-prettier --out-dir src/components/Icons -- src/icons", "build:data": "tsx scripts/buildData.ts", "build": "next build", "start": "next start", diff --git a/src/components/Navigation/Navigation.module.css b/src/components/Navigation/Navigation.module.css index b4816ba..f9c051d 100644 --- a/src/components/Navigation/Navigation.module.css +++ b/src/components/Navigation/Navigation.module.css @@ -10,6 +10,7 @@ vertical-align: middle; width: 22px; margin: 0 6px 0 0; + fill: var(--highlight); } @media (max-width: 900px) { diff --git a/src/icons/close.svg b/src/icons/close.svg index a0947af..2399c11 100644 --- a/src/icons/close.svg +++ b/src/icons/close.svg @@ -1 +1 @@ - \ No newline at end of file + \ No newline at end of file diff --git a/src/icons/filter.svg b/src/icons/filter.svg index e3caec5..e13c941 100644 --- a/src/icons/filter.svg +++ b/src/icons/filter.svg @@ -1 +1 @@ - \ No newline at end of file + \ No newline at end of file diff --git a/src/icons/overview.svg b/src/icons/overview.svg index 4112a51..6e0c1bb 100644 --- a/src/icons/overview.svg +++ b/src/icons/overview.svg @@ -1 +1 @@ - \ No newline at end of file + \ No newline at end of file diff --git a/src/icons/pie.svg b/src/icons/pie.svg index 42a0124..2a83296 100644 --- a/src/icons/pie.svg +++ b/src/icons/pie.svg @@ -1 +1 @@ - \ No newline at end of file + \ No newline at end of file diff --git a/src/icons/question.svg b/src/icons/question.svg index eb8eb09..5a6c229 100644 --- a/src/icons/question.svg +++ b/src/icons/question.svg @@ -1 +1 @@ - \ No newline at end of file + \ No newline at end of file diff --git a/src/icons/search.svg b/src/icons/search.svg index e515fcf..36a909c 100644 --- a/src/icons/search.svg +++ b/src/icons/search.svg @@ -1 +1 @@ - \ No newline at end of file + \ No newline at end of file