Skip to content

zIndex for Toaster #1660

Description

@len0xx

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 })

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions