@r2digisolutions/components 0.19.1 → 0.19.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -53,14 +53,14 @@
|
|
|
53
53
|
|
|
54
54
|
function tagVariant(tag: StoreProductTag): 'info' | 'warning' | 'default' {
|
|
55
55
|
if (tag === 'new') return 'info';
|
|
56
|
-
|
|
56
|
+
// Featured uses custom amber + white via tagClass (avoid warning’s amber text).
|
|
57
|
+
if (tag === 'featured') return 'default';
|
|
57
58
|
return 'default';
|
|
58
59
|
}
|
|
59
60
|
|
|
60
61
|
function tagClass(tag: StoreProductTag): string {
|
|
61
62
|
if (tag === 'featured') {
|
|
62
|
-
|
|
63
|
-
return 'border-0 bg-amber-500 text-amber-950 dark:bg-amber-500 dark:text-amber-950';
|
|
63
|
+
return '!border-0 !bg-amber-500 !text-white dark:!bg-amber-500 dark:!text-white';
|
|
64
64
|
}
|
|
65
65
|
if (tag === 'popular') {
|
|
66
66
|
return 'border-0 bg-neutral-100 text-neutral-700 dark:bg-neutral-800 dark:text-neutral-200';
|