Skip to content

Not clear how to add z-index to @theme #2191

Open
@DennisWoering-xs2

Description

@DennisWoering-xs2

I think the documentation for z-index could be improved, I was trying to add a z-index to my theme. But I couldn't find how. I tried doing

@theme {
  --z-toast: 200;
}

But this didn't work, as you have to do --z-index-toast: 200, which is pretty obvious in hindsight, but I didn't realize it. Is it an idea to make a small section for z-index on how to add values to the theme?

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