2 Commits

Author SHA1 Message Date
3fabc762fd Merge pull request 'fix: improve purchased items visibility on dark theme' (#9) from bugfix/darktheme into master
All checks were successful
Build and Publish Images / build-and-push (push) Successful in 12s
Reviewed-on: http://192.168.31.100:3847/Arrelin/family_budget/pulls/9
2026-01-23 17:47:10 +00:00
arrelin
4ec3b12d03 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>
2026-01-23 20:46:01 +03:00
2 changed files with 11 additions and 1 deletions

View File

@@ -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">

View File

@@ -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;
} }