mirror of
https://github.com/tabler/tabler.git
synced 2026-10-12 05:06:55 +04:00
Paint the ApexCharts tooltip arrow like the tooltip (#2949)
This commit is contained in:
1 parent
4afc2ea871
commit
080d3aae76
3 files changed
+14
-1
No files matched your search
@@ -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",
|
||||
|
||||
Vendored
+7
-1
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user