feat: expand zIndex handling by giving more control to the consumer #26
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
hey there, long time no see ~
In our project we would like to have a bit more control over the zIndex per Sticky instead of only having control over the zIndex when the element hasn't been reached yet (defaultZIndex)
In order to facilitate this, I made the following adjustment:
for example, we would like to do this:
This way, we don't have to up the zIndices for our design system just to ensure that some things stay on top of the elements (for example: modal overlays need to go over the sticky elements, but in our theme they are defined as sub 1000)
Lmk if you have different ideas on the subject, we currently applied a patch using
patch-package
in order to get things behave as we want but that will do just fine for now