mirror of
https://github.com/chillpadclub/bedolaga-cabinet.git
synced 2026-07-28 09:33:46 +00:00
fix: add tooltip text color for dark theme in landing stats charts
This commit is contained in:
@@ -477,8 +477,10 @@ export default function AdminLandingStats() {
|
|||||||
border: `1px solid ${colors.tooltipBorder}`,
|
border: `1px solid ${colors.tooltipBorder}`,
|
||||||
borderRadius: CHART_COMMON.TOOLTIP.BORDER_RADIUS,
|
borderRadius: CHART_COMMON.TOOLTIP.BORDER_RADIUS,
|
||||||
fontSize: CHART_COMMON.TOOLTIP.FONT_SIZE,
|
fontSize: CHART_COMMON.TOOLTIP.FONT_SIZE,
|
||||||
|
color: colors.label,
|
||||||
}}
|
}}
|
||||||
labelStyle={{ color: colors.label }}
|
labelStyle={{ color: colors.label }}
|
||||||
|
itemStyle={{ color: colors.label }}
|
||||||
/>
|
/>
|
||||||
<Area
|
<Area
|
||||||
yAxisId="left"
|
yAxisId="left"
|
||||||
@@ -539,8 +541,10 @@ export default function AdminLandingStats() {
|
|||||||
border: `1px solid ${colors.tooltipBorder}`,
|
border: `1px solid ${colors.tooltipBorder}`,
|
||||||
borderRadius: CHART_COMMON.TOOLTIP.BORDER_RADIUS,
|
borderRadius: CHART_COMMON.TOOLTIP.BORDER_RADIUS,
|
||||||
fontSize: CHART_COMMON.TOOLTIP.FONT_SIZE,
|
fontSize: CHART_COMMON.TOOLTIP.FONT_SIZE,
|
||||||
|
color: colors.label,
|
||||||
}}
|
}}
|
||||||
labelStyle={{ color: colors.label }}
|
labelStyle={{ color: colors.label }}
|
||||||
|
itemStyle={{ color: colors.label }}
|
||||||
formatter={(value: number | undefined) => {
|
formatter={(value: number | undefined) => {
|
||||||
return [value ?? 0, t('admin.landings.stats.purchases')];
|
return [value ?? 0, t('admin.landings.stats.purchases')];
|
||||||
}}
|
}}
|
||||||
@@ -617,7 +621,9 @@ export default function AdminLandingStats() {
|
|||||||
border: `1px solid ${colors.tooltipBorder}`,
|
border: `1px solid ${colors.tooltipBorder}`,
|
||||||
borderRadius: CHART_COMMON.TOOLTIP.BORDER_RADIUS,
|
borderRadius: CHART_COMMON.TOOLTIP.BORDER_RADIUS,
|
||||||
fontSize: CHART_COMMON.TOOLTIP.FONT_SIZE,
|
fontSize: CHART_COMMON.TOOLTIP.FONT_SIZE,
|
||||||
|
color: colors.label,
|
||||||
}}
|
}}
|
||||||
|
itemStyle={{ color: colors.label }}
|
||||||
/>
|
/>
|
||||||
</PieChart>
|
</PieChart>
|
||||||
</ResponsiveContainer>
|
</ResponsiveContainer>
|
||||||
|
|||||||
Reference in New Issue
Block a user