diff --git a/src/panelWebView/components/SeoKeywordInfo.tsx b/src/panelWebView/components/SeoKeywordInfo.tsx index 871a5e01..e4d5c877 100644 --- a/src/panelWebView/components/SeoKeywordInfo.tsx +++ b/src/panelWebView/components/SeoKeywordInfo.tsx @@ -40,14 +40,8 @@ const SeoKeywordInfo: React.FunctionComponent = ({ const count = (content.match(pattern) || []).length; const density = (count / wordCount) * 100; const densityTitle = `${density.toFixed(2)}* %`; - - if (density < 0.75) { - return {densityTitle}; - } else if (density >= 0.75 && density < 1.5) { - return {densityTitle}; - } else { - return {densityTitle}; - } + const color = (density >= 0.75 && density < 1.5) ? "--vscode-charts-green" : "--vscode-charts-yellow"; + return {densityTitle}; }; const validateKeywords = (heading: string, keyword: string) => { @@ -98,7 +92,7 @@ const SeoKeywordInfo: React.FunctionComponent = ({ const tooltipContent = React.useMemo(() => { return ( <> - Keyword present in:
+

Keyword present in:

{localize(LocalizationKey.commonTitle)}
{localize(LocalizationKey.commonDescription)}
{localize(LocalizationKey.commonSlug)}
@@ -116,7 +110,10 @@ const SeoKeywordInfo: React.FunctionComponent = ({ return (
@@ -137,7 +134,7 @@ const SeoKeywordInfo: React.FunctionComponent = ({
void 0} title={localize(LocalizationKey.panelTagsTagWarning, keyword)} diff --git a/src/panelWebView/components/ValidInfo.tsx b/src/panelWebView/components/ValidInfo.tsx index 8120aada..6b4cde6c 100644 --- a/src/panelWebView/components/ValidInfo.tsx +++ b/src/panelWebView/components/ValidInfo.tsx @@ -15,11 +15,11 @@ const ValidInfo: React.FunctionComponent = ({ return (
{isValid ? ( - + ) : ( - + )} - {label && {label}} + {label && {label}}
); }; diff --git a/src/panelWebView/styles.css b/src/panelWebView/styles.css index 355be5f5..137ebee8 100644 --- a/src/panelWebView/styles.css +++ b/src/panelWebView/styles.css @@ -895,14 +895,29 @@ vscode-divider { color: var(--vscode-inputValidation-infoForeground, #fff); } +.tag { + transition: all 100ms; +} + +.tag:has(.tag__delete:hover) { + background-color: var(--vscode-inputValidation-errorBackground); + color: var(--vscode-inputValidation-errorForeground); +} + .tag .tag__delete { margin-left: 0.25rem; + + & svg { + stroke-width: 3; + } } .tag .tag__delete:hover { - background-color: var(--vscode-inputValidation-errorBackground); color: var(--vscode-inputValidation-errorForeground, #000); - border-radius: 2px; + + & svg { + color: var(--vscode-charts-red); + } } .vscode-dark .tag .tag__delete:hover { @@ -911,7 +926,8 @@ vscode-divider { .tag .tag__value { flex-grow: 1; - white-space: nowrap; + white-space: pre-wrap; + font-weight: 600; } /* Slug field */