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

Enhancement: Add a z-index to toasts #1211

Merged
merged 1 commit into from
Apr 18, 2024
Merged

Enhancement: Add a z-index to toasts #1211

merged 1 commit into from
Apr 18, 2024

Conversation

pleek91
Copy link
Collaborator

@pleek91 pleek91 commented Apr 17, 2024

Description

toasts currently do not have a z-index assigned to them. They rely on being the last child on the body. But this means if something is visible that does have a z-index (like a p-modal) then the toast will appear behind it.

Toasts should always be visible. So assigning z-50 (the highest preset z-index tailwind provides) to the toast container that way toasts should always be visible on top of anything else.

@pleek91 pleek91 requested a review from a team as a code owner April 17, 2024 16:26
Copy link

netlify bot commented Apr 17, 2024

Deploy Preview for prefect-design ready!

Name Link
🔨 Latest commit 373cea0
🔍 Latest deploy log https://app.netlify.com/sites/prefect-design/deploys/661ff82f4e9d7e0008babf2c
😎 Deploy Preview https://deploy-preview-1211--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 d46d884 into main Apr 18, 2024
6 checks passed
@pleek91 pleek91 deleted the toast-container-z-index branch April 18, 2024 15:38
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.

3 participants