Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix p-tooltip displaying behind popovers #1378

Merged
merged 1 commit into from
Jul 9, 2024
Merged

Conversation

pleek91
Copy link
Collaborator

@pleek91 pleek91 commented Jul 9, 2024

Description

PPopOver has a z-index of 100 for its content. PTooltip use to be built on top of PPopOver so it had the same z-index. But once it was converted over to using radix the z-index changed. Radix uses a z-index of 50 and also uses inline styles and has no useful classes to target.

Targeting the data attribute that gets applied to the tooltip content and using !important to override the inline style...

Before
image

After
image

@pleek91 pleek91 requested a review from a team as a code owner July 9, 2024 14:37
Copy link

netlify bot commented Jul 9, 2024

Deploy Preview for prefect-design ready!

Name Link
🔨 Latest commit 5ed1a28
🔍 Latest deploy log https://app.netlify.com/sites/prefect-design/deploys/668d4b465dd341000826bf48
😎 Deploy Preview https://deploy-preview-1378--prefect-design.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@pleek91 pleek91 merged commit d7dfebe into main Jul 9, 2024
6 checks passed
@pleek91 pleek91 deleted the p-tooltip-z-index-fix branch July 9, 2024 14:41
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.

2 participants