Skip to content

Commit c06a917

Browse files
committed
fix(Card): bgとborderが上書きされてしまう問題を修正
1 parent e0f03f6 commit c06a917

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

2025/src/components/Card.astro

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,9 @@ const { class: className } = Astro.props;
99
<div
1010
class:list={[
1111
className,
12-
"rounded-lg border border-emerald-100 bg-card text-card-foreground",
12+
"rounded-lg border text-card-foreground",
13+
[(className ?? '').search('border-') === -1 && 'border-emerald-100'],
14+
[(className ?? '').search('bg-') === -1 && 'bg-card'],
1315
]}
1416
>
1517
<slot />

0 commit comments

Comments
 (0)