Skip to content

Commit 47fec1d

Browse files
committed
fix: add SCSS styles for PieChart component to improve text color handling
1 parent 722c072 commit 47fec1d

File tree

1 file changed

+20
-1
lines changed

1 file changed

+20
-1
lines changed

adminforth/spa/src/afcl/PieChart.vue

Lines changed: 20 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -172,4 +172,23 @@ onUnmounted(() => {
172172
apexChart.destroy();
173173
}
174174
});
175-
</script>
175+
</script>
176+
177+
<style lang="scss">
178+
:root {
179+
--tw-text-gray: #6B7280;
180+
181+
}
182+
[data-theme='dark'] {
183+
--tw-text-gray: #9CA3AF;
184+
}
185+
186+
.apexcharts-datalabel-label,
187+
.apexcharts-datalabel-value{
188+
fill: var(--tw-text-gray);
189+
}
190+
.apexcharts-legend-text {
191+
color: var(--tw-text-gray) !important;
192+
}
193+
194+
</style>

0 commit comments

Comments
 (0)