set z index
See original GitHub issueI am currently using the modals provided by react semantic ui
. There is a prop for a modal which makes the blurred. (https://react.semantic-ui.com/modules/modal/).
When I use it, my toasts won’t appear, they are “behind” the blurred content. Is there a way to set the z index on the toasts or make them available up front?
Issue Analytics
- State:
- Created 2 years ago
- Reactions:1
- Comments:8 (2 by maintainers)
Top Results From Across the Web
Using z-index - CSS: Cascading Style Sheets - MDN Web Docs
Using z-index · When no z-index property is specified, elements are rendered on the default rendering layer (Layer 0). · If several elements...
Read more >CSS z-index property - W3Schools
The z-index property specifies the stack order of an element. An element with greater stack order is always in front of an element...
Read more >z-index - CSS-Tricks
The z-index property in CSS controls the vertical stacking order of elements that overlap. As in, which one appears as if it is...
Read more >Understanding Z-Index in CSS - Ahmad Shadeed
The z-index property defines the order of the elements on the z-axis. Basically, it works on elements with a position value other than...
Read more >Z-index and stacking contexts - web.dev
The z-index property explicitly sets a layer order for HTML based on the 3D space of the browser—the Z axis. This is the...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Yes, you can change the
z-index
, for both the container or the toasts.However
toast.custom()
's second parameter does not accept acontainerStyle
property:The styles that I apply myself to the top-level DOM node that my
<Notification />
component produces, does not help, as the container produced one level above, byreact-hot-toast
, sets az-index: 9999
, which I can’t seem to override.Even this doesn’t work for me:
… The top level container of
react-hot-toast
keepsz-index: 9999
.