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

zIndex for Toaster #1660

Open
len0xx opened this issue Aug 17, 2023 · 1 comment
Open

zIndex for Toaster #1660

len0xx opened this issue Aug 17, 2023 · 1 comment

Comments

@len0xx
Copy link

len0xx commented Aug 17, 2023

Currently for some reason it's not possible to change zIndex for Toaster component. But it's very likely to be possible.
The documentation says that this component has a property called zIndex, but as I said it's impossible to use it:

image

One of possible solutions:

import Toaster from 'evergreen-ui/src/toaster/src'
const toaster = new Toaster({ zIndex: 40 })
toaster.danger('Error occurred!')

Another solution:

import { toaster } from 'evergreen-ui'
toaster.danger('Error occurred', { zIndex: 40 })
@Kamal0078k
Copy link

PR #1662 solves the toaster zIndex issue

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

No branches or pull requests

2 participants