Make z-index relation between sketch scene items explicit and colocated (#5435)

* Set up start of semantic z-index layers in tailwind.config.js

* Use first two active semantic z-index layers to fix just this issue
This commit is contained in:
Frank Noirot
2025-02-20 13:53:35 -05:00
committed by GitHub
parent 5232e1d40a
commit 9f5003cafc
3 changed files with 17 additions and 4 deletions

View File

@ -43,6 +43,21 @@ module.exports = {
'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue',
sans-serif`,
},
/**
* We want the z-index of major UI areas
* to be consolidated in this one spot,
* so we can make sure they coordinate.
*/
zIndex: {
// TODO change use of `z-<number>` to use these instead
// underlay: '-1',
// tooltip: '1',
// commandBar: '2',
// modal: '3',
sketchSegmentIndicators: '5',
sketchOverlayDropdown: '6',
// top: '99',
},
},
},
darkMode: 'class',