Skip to content

fix: use CSS variable for tooltip z-index instead of hardcoded value#117

Open
rohitrath0d wants to merge 1 commit intoknadh:masterfrom
rohitrath0d:fix/tooltip-zindex-variable
Open

fix: use CSS variable for tooltip z-index instead of hardcoded value#117
rohitrath0d wants to merge 1 commit intoknadh:masterfrom
rohitrath0d:fix/tooltip-zindex-variable

Conversation

@rohitrath0d
Copy link
Contributor

The tooltip pseudo-elements used a hardcoded z-index: 1000 while the theme defines CSS variables for layering (--z-dropdown: 50, --z-modal: 200). This adds --z-tooltip to the theme and uses var(--z-tooltip) in tooltip.css, making the tooltip layer configurable and consistent with the design system.

Fixes #116

The tooltip pseudo-elements used a hardcoded z-index: 1000 while the theme defines CSS variables for layering (--z-dropdown: 50, --z-modal: 200). This adds --z-tooltip to the theme and uses var(--z-tooltip) in tooltip.css, making the tooltip layer configurable and consistent with the design system.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Tooltip z-index is hardcoded instead of using a CSS variable (--z-tooltip)

1 participant