From 94df672f4cd54e39ae99f226dae04b7fd45da0b3 Mon Sep 17 00:00:00 2001 From: Elio Struyf Date: Thu, 28 Nov 2024 18:18:55 +0100 Subject: [PATCH] Updated yellow to warning --- src/panelWebView/components/SeoKeywordInfo.tsx | 4 ++-- src/panelWebView/components/ValidInfo.tsx | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/panelWebView/components/SeoKeywordInfo.tsx b/src/panelWebView/components/SeoKeywordInfo.tsx index 9434ab55..bb3b78d1 100644 --- a/src/panelWebView/components/SeoKeywordInfo.tsx +++ b/src/panelWebView/components/SeoKeywordInfo.tsx @@ -38,7 +38,7 @@ const SeoKeywordInfo: React.FunctionComponent = ({ const count = (content.match(pattern) || []).length; const density = (count / wordCount) * 100; const densityTitle = `${density.toFixed(2)}* %`; - const color = (density >= 0.75 && density < 1.5) ? "--vscode-charts-green" : "--vscode-charts-yellow"; + const color = (density >= 0.75 && density < 1.5) ? "--vscode-charts-green" : "--vscode-notificationsWarningIcon-foreground"; return ( = ({ className={`inline-flex py-0.5 px-2 my-1 rounded-[3px] justify-center items-center text-[12px] leading-[16px] border border-solid cursor-default ${isValid ? "text-[var(--vscode-charts-green)] border-[var(--vscode-charts-green)] bg-[var(--frontmatter-success-background)]" - : "text-[var(--vscode-charts-yellow)] border-[var(--vscode-charts-yellow)] bg-[var(--frontmatter-warning-background)]"}`} + : "text-[var(--vscode-notificationsWarningIcon-foreground)] border-[var(--vscode-notificationsWarningIcon-foreground)] bg-[var(--frontmatter-warning-background)]"}`} data-tooltip-id={`tooltip-checks-${keyword}`} > diff --git a/src/panelWebView/components/ValidInfo.tsx b/src/panelWebView/components/ValidInfo.tsx index 6b4cde6c..79a012d7 100644 --- a/src/panelWebView/components/ValidInfo.tsx +++ b/src/panelWebView/components/ValidInfo.tsx @@ -17,7 +17,7 @@ const ValidInfo: React.FunctionComponent = ({ {isValid ? ( ) : ( - + )} {label && {label}}