mirror of
https://github.com/MBombeck/HealthLog.git
synced 2026-11-08 12:32:43 +00:00
fix(import): use the success token for import success ticks
The three import success check-icons hardcoded text-emerald-500, bypassing the semantic text-success token every other surface uses. The token is AA-tuned per theme (a darker green in light mode) where emerald-500 is a single fixed value, so the import ticks sat off-tone in light mode and could fall short of the AA bar the light tokens are tuned for. Swap to text-success to match the integration-card family.
This commit is contained in:
1 parent
7a96a934bf
commit
5a62d04651
1 file changed
+3
-3
@@ -322,7 +322,7 @@ function AppleHealthImportCard() {
|
||||
className="text-foreground flex items-start gap-2 text-xs"
|
||||
>
|
||||
<CheckCircle2
|
||||
className="mt-0.5 h-3.5 w-3.5 shrink-0 text-emerald-500"
|
||||
className="text-success mt-0.5 h-3.5 w-3.5 shrink-0"
|
||||
aria-hidden="true"
|
||||
/>
|
||||
<span>
|
||||
@@ -568,7 +568,7 @@ function JsonImportCard() {
|
||||
className="text-foreground flex items-start gap-2 text-xs"
|
||||
>
|
||||
<CheckCircle2
|
||||
className="mt-0.5 h-3.5 w-3.5 shrink-0 text-emerald-500"
|
||||
className="text-success mt-0.5 h-3.5 w-3.5 shrink-0"
|
||||
aria-hidden="true"
|
||||
/>
|
||||
<span>
|
||||
@@ -791,7 +791,7 @@ function CsvImportCard() {
|
||||
<div data-testid="import-csv-result" className="space-y-1.5">
|
||||
<p className="text-foreground flex items-start gap-2 text-xs">
|
||||
<CheckCircle2
|
||||
className="mt-0.5 h-3.5 w-3.5 shrink-0 text-emerald-500"
|
||||
className="text-success mt-0.5 h-3.5 w-3.5 shrink-0"
|
||||
aria-hidden="true"
|
||||
/>
|
||||
<span>
|
||||
|
||||
Reference in new issue
Block a user