Forem Creators and Builders 🌱

Discussion on: Forem's CSS Utility Classes

Collapse
 
link2twenty profile image
Andrew Bone • Edited

Specifically it's this section.

github.com/forem/forem/blob/879e0a...

Is it worth having some z-index levels in crayons?

$appBar: 100;
$drawer: 200;
$modal: 300;
$notification: 400;
$tooltip: 500;
Enter fullscreen mode Exit fullscreen mode
Thread Thread
 
pp profile image
Paweł Ludwiczak

Definitely, that's our goal. But it's more tricky than it sounds: we have lots of legacy code from "pre-crayons" era when z-indexes were pretty random :D Most of the new (crayons) stuff is pretty much in good place in terms of handling z-indexes but you know - as long as we have some legacy code in the codebase the z-index conflicts are unavoidable. And we can just keep fixing them slowly, one by one.