fix: improve purchased items visibility on dark theme
Use custom .shopping-purchased class for purchased items in shopping list. Now purchased items have proper background on both light and dark themes. Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
This commit is contained in:
@@ -302,7 +302,7 @@ export default function ShoppingListModal({ familyId, onClose }: ShoppingListMod
|
|||||||
{purchasedItems.map((item) => (
|
{purchasedItems.map((item) => (
|
||||||
<div
|
<div
|
||||||
key={item.id}
|
key={item.id}
|
||||||
className="bg-green-50 p-4 rounded-2xl border-2 border-green-200"
|
className="shopping-purchased p-4 rounded-2xl border-2"
|
||||||
>
|
>
|
||||||
<div className="flex items-center justify-between">
|
<div className="flex items-center justify-between">
|
||||||
<div className="flex items-center gap-3">
|
<div className="flex items-center gap-3">
|
||||||
|
|||||||
@@ -191,6 +191,16 @@
|
|||||||
border-color: rgba(139, 92, 246, 0.5);
|
border-color: rgba(139, 92, 246, 0.5);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.shopping-purchased {
|
||||||
|
background-color: rgb(240, 253, 244);
|
||||||
|
border-color: rgb(187, 247, 208);
|
||||||
|
}
|
||||||
|
|
||||||
|
[data-theme="dark"] .shopping-purchased {
|
||||||
|
background-color: rgba(34, 197, 94, 0.15);
|
||||||
|
border-color: rgba(34, 197, 94, 0.4);
|
||||||
|
}
|
||||||
|
|
||||||
.animate-fadeIn {
|
.animate-fadeIn {
|
||||||
animation: fadeIn 0.2s ease-in-out;
|
animation: fadeIn 0.2s ease-in-out;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user