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
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