Breaking Change T999452
Visible to All Users

DxTabs - The markup of the tab content area has been changed

What Changed

In previous versions, the active tab content was rendered next to DxTabs' <nav> element.

HTML
<nav /> <!-- active tab content -->

In v21.1, the active tab content is wrapped into additional <div> elements.

HTML
<nav /> <div> <div> <!-- active tab content --> </div> </div>

Reasons for Change

In v21.1, we have implemented a new DxTabs.RenderMode property that specifies how the DxTabs component renders tab content. Tab content is now wrapped into additional <div> container. This container is hidden or shown according to CSS rules that depend on the tab's state.

Impact on Existing Apps

This change may affect your applications if you apply a CSS selector that relies on the position of the active tab content in the DOM tree.

CSS
.my-container > .my-content { background-color: red; }
HTML
<div class="my-container"> <DxTabs> <DxTabPage> <div class="my-content" /> </DxTabPage> </DxTabs> </div>

How to Update Existing Apps

Update CSS selectors to take a new position of the active tab content in the DOM tree into account.

CSS
.my-container .my-content { background-color: red; }

If you need to select .my-content as a direct child, modify your code in the following way:

CSS
.my-container > div > div > .my-content { background-color: red; }

Disclaimer: The information provided on DevExpress.com and affiliated web properties (including the DevExpress Support Center) is provided "as is" without warranty of any kind. Developer Express Inc disclaims all warranties, either express or implied, including the warranties of merchantability and fitness for a particular purpose. Please refer to the DevExpress.com Website Terms of Use for more information in this regard.

Confidential Information: Developer Express Inc does not wish to receive, will not act to procure, nor will it solicit, confidential or proprietary materials and information from you through the DevExpress Support Center or its web properties. Any and all materials or information divulged during chats, email communications, online discussions, Support Center tickets, or made available to Developer Express Inc in any manner will be deemed NOT to be confidential by Developer Express Inc. Please refer to the DevExpress.com Website Terms of Use for more information in this regard.