Paint the ApexCharts tooltip arrow like the tooltip (#2949)

This commit is contained in:
Paweł Kuna authored and GitHub committed 2026-09-04 17:16:54 +02:00
1 parent 4afc2ea871
commit 080d3aae76
3 files changed
+14 -1

No files matched your search

+5
View File
@@ -0,0 +1,5 @@
---
"@tabler/core": patch
---
Fixed the ApexCharts tooltip arrow staying white on the dark tooltip by setting the `--apx-tt-bg` and `--apx-tt-border` tokens.
@@ -10,6 +10,8 @@ exports[`css custom-property prefixing > leaves vendor-owned names alone and pre
"--apx-series-3",
"--apx-series-4",
"--apx-series-5",
"--apx-tt-bg",
"--apx-tt-border",
"--apx-tt-color-muted",
"--fc-border-color",
"--fc-daygrid-event-dot-width",
+7 -1
View File
@@ -30,12 +30,18 @@
// !important because ApexCharts injects its own stylesheet at runtime, after this one,
// and its default lands on the same selector.
--apx-tt-color-muted: #{$tooltip-color} !important;
// The arrow connector is a separate element painted from these two tokens, not
// from the box's background: without them it stays white on the dark tooltip.
// The border token keeps the tooltip color rather than going transparent, and
// the box keeps its 1px border: ApexCharts parks the arrow's centre on that
// border line, so removing it leaves a 1px seam between box and arrow.
--apx-tt-bg: #{$tooltip-bg} !important;
--apx-tt-border: #{$tooltip-bg} !important;
padding: 0.25rem !important;
font-size: $tooltip-font-size !important;
color: $tooltip-color !important;
background: $tooltip-bg !important;
border: 0 !important;
box-shadow: none !important;
}