From 15dd2752d9cd73e9652bb57b2e3187685a95cf4b Mon Sep 17 00:00:00 2001 From: Daniel Kantor Date: Wed, 22 Jan 2025 13:24:18 +0100 Subject: [PATCH] fix: make custom icons inherit text color fixes: #156 --- package.json | 2 +- src/components/icons/Continue.tsx | 2 +- src/components/icons/Copilot.tsx | 2 +- src/components/icons/Discord.tsx | 2 +- src/components/icons/Github.tsx | 2 +- src/components/icons/Youtube.tsx | 2 +- 6 files changed, 6 insertions(+), 6 deletions(-) diff --git a/package.json b/package.json index 90f67f4a..be837f3d 100644 --- a/package.json +++ b/package.json @@ -16,7 +16,7 @@ "test": "vitest", "test:coverage": "vitest run --coverage", "type-check": "tsc --noEmit -p ./tsconfig.app.json", - "generate-icons": "npx @svgr/cli --typescript --no-dimensions --jsx-runtime automatic --out-dir ./src/components/icons/ -- icons" + "generate-icons": "npx @svgr/cli --typescript --no-dimensions --replace-attr-values '#2E323A=currentColor' --jsx-runtime automatic --out-dir ./src/components/icons/ -- icons" }, "dependencies": { "@hey-api/client-fetch": "^0.6.0", diff --git a/src/components/icons/Continue.tsx b/src/components/icons/Continue.tsx index 00acb879..cb9cd6fa 100644 --- a/src/components/icons/Continue.tsx +++ b/src/components/icons/Continue.tsx @@ -7,7 +7,7 @@ const SvgContinue = (props: SVGProps) => ( {...props} > diff --git a/src/components/icons/Copilot.tsx b/src/components/icons/Copilot.tsx index 6f20d1eb..9479811e 100644 --- a/src/components/icons/Copilot.tsx +++ b/src/components/icons/Copilot.tsx @@ -7,7 +7,7 @@ const SvgCopilot = (props: SVGProps) => ( {...props} > diff --git a/src/components/icons/Discord.tsx b/src/components/icons/Discord.tsx index 8062dbd1..d040b49f 100644 --- a/src/components/icons/Discord.tsx +++ b/src/components/icons/Discord.tsx @@ -7,7 +7,7 @@ const SvgDiscord = (props: SVGProps) => ( {...props} > diff --git a/src/components/icons/Github.tsx b/src/components/icons/Github.tsx index e6f6d288..da690ebd 100644 --- a/src/components/icons/Github.tsx +++ b/src/components/icons/Github.tsx @@ -7,7 +7,7 @@ const SvgGithub = (props: SVGProps) => ( {...props} > ) => ( {...props} >