Skip to content

[BUG] Use of z-index in Element within a Layout causes unexpected behaviour? #576

@milesnash

Description

@milesnash

I was playing around with some ideas for a horizontal list of Elements when I stumbled upon this issue.

I wanted to be able to use Layout for all it's, well, layout and gap goodness, whilst at the same time using z-index on a focussed item. I found that z-index is somehow interacting with Layout to cause some weirdness when focus is passed around. Below is a convoluted example, but you can remove the 1st and 3rd rows and still observe unexpected behaviour.

Playground repro

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