Skip to content

Commit ae030c9

Browse files
authored
fix: use CSS variable for tooltip z-index instead of hardcoded value (#117)
* fix: use calc(var(--z-modal) + 10) for tooltip z-index instead of hardcoded value The tooltip pseudo-elements used a hardcoded z-index: 1000, inconsistent with the theme's CSS variable pattern for layering. Instead of adding a new variable, this uses calc(var(--z-modal) + 10) so the tooltip z-index is always relative to the modal layer. * retained new lines
1 parent c8eb2cc commit ae030c9

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/css/tooltip.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
visibility: hidden;
1212
transition: opacity var(--transition-fast), transform var(--transition-fast), visibility var(--transition-fast);
1313
pointer-events: none;
14-
z-index: 1000;
14+
z-index: calc(var(--z-modal) + 10);
1515
}
1616

1717
/* Text */

0 commit comments

Comments
 (0)