Tabstrip shows in foreground when Dialog box is displayed

1 Answer 79 Views
TabStrip
schakravarty
Top achievements
Rank 2
Iron
Iron
schakravarty asked on 04 Nov 2021, 05:13 PM
I have an application with multiple tabs on it. Since upgrading progress packages as well as Angular 12, the tabs display on a higher zindex as the application causing the tabs to bleed into dialog boxes that are shown. Is this a bug?

1 Answer, 1 is accepted

Sort by
0
Ivo
Telerik team
answered on 05 Nov 2021, 08:34 AM

Hi Paul,

This behavior is not a bug. It is caused by some CSS rules that are needed for the overall styling and functionality of the Tabstrip component.

We do not recommend nesting the Dialog component in the Tabstrip component. But if it needs to be done that way the following CSS code can be used as a workaround (it can be seen in action in this Stackblitz example):

.k-tabstrip-items-wrapper {
    z-index: auto;
}

.k-tabstrip-top > .k-content {
    margin-top: 1px;
}

.k-tabstrip-right > .k-content {
    margin-right: 1px !important;
}

.k-tabstrip-bottom > .k-content {
    margin-bottom: 1px;
}

.k-tabstrip-left > .k-content {
    margin-left: 1px !important;
}

It is now working differently than before because we had to make some markup and style changes that were needed for the Scrollable Tabs functionality.

Let us know in case additional information is needed.

Regards,
Ivo
Progress Telerik

Love the Telerik and Kendo UI products and believe more people should try them? Invite a fellow developer to become a Progress customer and each of you can get a $50 Amazon gift voucher.

Tags
TabStrip
Asked by
schakravarty
Top achievements
Rank 2
Iron
Iron
Answers by
Ivo
Telerik team
Share this question
or