Updated yellow to warning

This commit is contained in:
Elio Struyf
2024-11-28 18:18:55 +01:00
parent 98c5b56310
commit 94df672f4c
2 changed files with 3 additions and 3 deletions
@@ -38,7 +38,7 @@ const SeoKeywordInfo: React.FunctionComponent<ISeoKeywordInfoProps> = ({
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 (
<span
className={`text-[12px] text-[var(${color})] cursor-default`}
@@ -118,7 +118,7 @@ const SeoKeywordInfo: React.FunctionComponent<ISeoKeywordInfoProps> = ({
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}`}
>
<ValidInfo isValid={isValid} />
+1 -1
View File
@@ -17,7 +17,7 @@ const ValidInfo: React.FunctionComponent<IValidInfoProps> = ({
{isValid ? (
<CheckIcon className={`h-6 w-6 text-[var(--vscode-charts-green)] mr-2`} />
) : (
<ExclamationTriangleIcon className={`h-6 w-6 text-[var(--vscode-charts-yellow)] mr-2`} />
<ExclamationTriangleIcon className={`h-6 w-6 text-[var(--vscode-notificationsWarningIcon-foreground)] mr-2`} />
)}
{label && <span className={className || ""}><b>{label}</b></span>}
</div>