Skip to content

Open-source personal finance manager. Self-hosted, privacy-first.

fix: dark mode tooltip text color in composition chart (#75) (#87)

Leonardo Dias1e729e10c41f
diff --git a/frontend/src/pages/reports.tsx b/frontend/src/pages/reports.tsx
index cf21332c..e6225fd9 100644
--- a/frontend/src/pages/reports.tsx
+++ b/frontend/src/pages/reports.tsx
@@ -129,6 +129,8 @@ export default function ReportsPage() {
fontSize: '12px',
}
+ const tooltipItemStyle = { color: 'var(--foreground)' }
+
// Composition view options per report type
const compositionOptions = meta?.type === 'income_expenses'
? ['summary', 'byIncome', 'byExpenses'] as const
@@ -508,6 +510,7 @@ export default function ReportsPage() {
]
}}
contentStyle={{ ...tooltipStyle, zIndex: 10 }}
+ itemStyle={tooltipItemStyle}
wrapperStyle={{ zIndex: 10 }}
offset={20}
/>