Post

Heads up, #CSS has an `infinity` constant. You can use it to create an unbeatable z-index.

19 reposts109 likes

Unbeatable you say... top-layer would have something to say about that 😜. Jokes aside, top layer is the best part about popover. No more z-index wrangling.

Sometimes, pushing up the z-index doesn’t solves my problem. I also throw an isolation isolate and nothing happens. Then I just give up or bring in a portal

To be fair, I said nothing about guaranteeing it'll always be on top. Stacking contexts, etc. I said the z-index is unbeatable, which is true, there is no value that supersedes `infinity`. 😄