From 64af0391bd0fb3bc24c2398d4933f28b8d453420 Mon Sep 17 00:00:00 2001 From: "Felix T.J. Dietrich" Date: Sat, 19 Oct 2024 01:09:09 +0200 Subject: [PATCH] fix ring offset color --- .../src/lib/hlm-card.directive.ts | 21 +++++++++++-------- 1 file changed, 12 insertions(+), 9 deletions(-) diff --git a/webapp/src/libs/ui/ui-card-helm/src/lib/hlm-card.directive.ts b/webapp/src/libs/ui/ui-card-helm/src/lib/hlm-card.directive.ts index 57e5ad3e..ad2c2edf 100644 --- a/webapp/src/libs/ui/ui-card-helm/src/lib/hlm-card.directive.ts +++ b/webapp/src/libs/ui/ui-card-helm/src/lib/hlm-card.directive.ts @@ -3,15 +3,18 @@ import { hlm } from '@spartan-ng/ui-core'; import { type VariantProps, cva } from 'class-variance-authority'; import type { ClassValue } from 'clsx'; -export const cardVariants = cva('rounded-lg border border-border bg-card focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 text-card-foreground shadow-sm', { - variants: { - variant: { - default: '', - profile: 'shadow-md block p-4' - } - }, - defaultVariants: {} -}); +export const cardVariants = cva( + 'rounded-lg border border-border bg-card focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-background focus:ring-offset-2 text-card-foreground shadow-sm', + { + variants: { + variant: { + default: '', + profile: 'shadow-md block p-4' + } + }, + defaultVariants: {} + } +); export type CardVariants = VariantProps; @Directive({