lumapps / lumX

The first responsive front-end framework based on Angular & Google Material Design specifications

Home Page:https://ui.lumapps.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

LxDepthService (z-index)

Ikkyusan1 opened this issue · comments

The depth service in its current state is pretty useless, and can in fact be troublesome.
The base depth is set to 1000, which is a completely arbitrary value. Plus, everytime a directive registers itself on this service, the depth is incremented by 1. (ex: everytime the DatePicker or LxSelect dropdown is shown, the value get +1). This value is shared with every directives that use the service...

I would have thought the base value to be based on a parent element's depth (but it's hard to determine which one, if that's even possible), and to stay the same afterwards for a particular directive.

Wouldn't it be better to set the depths exclusively with css rules ? Or set the depth of the directives when they're instanciated ?