-
Notifications
You must be signed in to change notification settings - Fork 10
Bug: calcite-fab - issue with z-index #1000
Comments
Can we try setting |
The container of the fab is a flow-item. If I set position:relative and z-index doesn't change anything. http://devext.arcgis.com/apps/mapviewer/index.html?url=https://services1.arcgis.com/4yjifSiIG17X0gW4/arcgis/rest/services/FatalAccidents2017/FeatureServer/0 |
@AdelheidF I'm talking about setting the position of the fab container within the component. We should try setting position relative on that and handling any zIndex issues so we don't have to worry about user zIndexes. |
@driskull Hmm...we're using |
yeah, just make sure that the container it's inside has a position relative |
We handled this same scenario in the scrim component |
Got it. |
Applying position: relative to various things is maybe not working. For now though, Jonathan will be removing z-index from the slider handle for when there's only one handle. This will take care of the specific problem, but we may see other z-index issues in the future. @AdelheidF I'm going to edit the issue to be general to any z-indexed thing. Cool? |
@asangma adding this to the container around the slot should fix it. |
In that case it would be the |
I'll give it a try @driskull . |
That fixed it for my case. |
Thanks @AdelheidF! |
Per the above conversation, closing as verified. |
Summary
z-indexed content inside components can conflict with things like the sticky fab.
Find a generic solution as we'll probably see other widgets that utilize z-index, e.g. a slider with multiple handles.
Actual Behavior
Expected Behavior
No such conflicts.
Reproduction Steps
Relevant Info
The text was updated successfully, but these errors were encountered: