Skip to content

LxDepthService (z-index) #472

Open
Open
@Ikkyusan1

Description

@Ikkyusan1

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 ?

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