Skip to content

Commit d3e2ed1

Browse files
authored
refactor(ui5-tabcontainer): remove TabContainerBackgroundDesign enume… (#8570)
Removes `TabContainerBackgroundDesign` enum in favour of `BackgroundDesign` enum. BREAKING CHANGE: If you previously imported `TabContainerBackgroundDesign`, use `BackgroundDesign` instead. Relates to #8461
1 parent 3da1e47 commit d3e2ed1

File tree

2 files changed

+5
-30
lines changed

2 files changed

+5
-30
lines changed

packages/main/src/TabContainer.ts

+5-5
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ import type CustomListItem from "./CustomListItem.js";
5252
import ResponsivePopover from "./ResponsivePopover.js";
5353
import TabContainerTabsPlacement from "./types/TabContainerTabsPlacement.js";
5454
import SemanticColor from "./types/SemanticColor.js";
55-
import TabContainerBackgroundDesign from "./types/TabContainerBackgroundDesign.js";
55+
import BackgroundDesign from "./types/BackgroundDesign.js";
5656
import TabLayout from "./types/TabLayout.js";
5757
import OverflowMode from "./types/OverflowMode.js";
5858
import type { IButton } from "./Button.js";
@@ -264,17 +264,17 @@ class TabContainer extends UI5Element {
264264
* @since 1.10.0
265265
* @public
266266
*/
267-
@property({ type: TabContainerBackgroundDesign, defaultValue: TabContainerBackgroundDesign.Solid })
268-
headerBackgroundDesign!: `${TabContainerBackgroundDesign}`;
267+
@property({ type: BackgroundDesign, defaultValue: BackgroundDesign.Solid })
268+
headerBackgroundDesign!: `${BackgroundDesign}`;
269269

270270
/**
271271
* Sets the background color of the Tab Container's content as `Solid`, `Transparent`, or `Translucent`.
272272
* @default "Solid"
273273
* @since 1.10.0
274274
* @public
275275
*/
276-
@property({ type: TabContainerBackgroundDesign, defaultValue: TabContainerBackgroundDesign.Solid })
277-
contentBackgroundDesign!: `${TabContainerBackgroundDesign}`;
276+
@property({ type: BackgroundDesign, defaultValue: BackgroundDesign.Solid })
277+
contentBackgroundDesign!: `${BackgroundDesign}`;
278278

279279
/**
280280
* Defines the placement of the tab strip relative to the actual tabs' content.

packages/main/src/types/TabContainerBackgroundDesign.ts

-25
This file was deleted.

0 commit comments

Comments
 (0)