Skip to content

Commit a1fa458

Browse files
committed
style: enhance tooltip styling for light theme in TreeMapChart component
1 parent e697d38 commit a1fa458

1 file changed

Lines changed: 10 additions & 0 deletions

File tree

‎adminforth/spa/src/afcl/TreeMapChart.vue‎

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -125,5 +125,15 @@ onUnmounted(() => {
125125
.apexcharts-legend-text {
126126
color: var(--afcl-treemap-text) !important;
127127
}
128+
129+
// the light apexcharts tooltip has a white background but no text color, so in the dark theme
130+
// it inherits the light page text; the tooltip is an ink layer and takes the Tooltip tokens
131+
.apexcharts-tooltip.apexcharts-theme-light {
132+
@apply border-none rounded-md text-lightTooltipText bg-lightTooltipBackground shadow-popover dark:text-darkTooltipText dark:bg-darkTooltipBackground dark:shadow-darkPopover;
133+
134+
.apexcharts-tooltip-title {
135+
@apply bg-transparent border-b-lightTooltipText/10 dark:border-b-darkTooltipText/10;
136+
}
137+
}
128138
}
129139
</style>

0 commit comments

Comments
 (0)