You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Tabs component buttons have z-20 class applied which can elevate the component above an overlay. Can this be restructured to rely on auto strategy for z-index?
Able to work around it in the app by applying these overrides - as a simple solution it looks like you can bump the z-index values from 10, 20, 30 to 1, 2, 3 to reduce the risk of overlap conflict
CSS Methods that rely heavily on JavaScript and the Framework to work are prone to fail in the future. When we change framework for instance. So I try to avoid them to build tools supposed to be shared.
Therefore, I would prefer not to use anything that calculates the z-index from context.
There is a great workaround to your issue though, it relies on stacking context.
If you place the tabs in an element that has a low level stacking context, it will stay in that stacking context.
before
<divclass="z-10">
content that gets hidden
</div><Tabs:tabs="tabs" />
after
<divclass="z-10">
content that no more gets hidden
</div><divclass="relative z-0"><!-- this line creates a stacking context whose content will always stay under z-10 --><Tabs:tabs="tabs" />
</div>
Tabs
component buttons havez-20
class applied which can elevate the component above an overlay. Can this be restructured to rely onauto
strategy forz-index
?Able to work around it in the app by applying these overrides - as a simple solution it looks like you can bump the
z-index
values from 10, 20, 30 to 1, 2, 3 to reduce the risk of overlap conflictThe text was updated successfully, but these errors were encountered: