diff --git a/crowdsec-docs/src/components/remediation-support-badge.tsx b/crowdsec-docs/src/components/remediation-support-badge.tsx index 434041fb..e3f12261 100644 --- a/crowdsec-docs/src/components/remediation-support-badge.tsx +++ b/crowdsec-docs/src/components/remediation-support-badge.tsx @@ -11,15 +11,16 @@ type RemediationSupportBadgesProps = { }; const RemediationSupportBadge = ({ title, description, support }: { title: string; description: string; support: string }) => { - //ugly, for test - const colorClass = support === "Unsupported" ? "bg-red-400" : "bg-green-400"; + const isSupported = support !== "Unsupported"; + const statusClasses = isSupported ? "bg-emerald-700 dark:bg-emerald-600 text-white" : "bg-red-700 dark:bg-red-500 text-white"; + return ( -
- {title} - {support} +
+ {title} + {support}
@@ -45,7 +46,7 @@ export default function RemediationSupportBadges({ const appsecSupport = Appsec !== undefined && Appsec ? "Supported" : "Unsupported"; return ( -
+
{Appsec !== undefined && (