From 0cbbd160ba5b578795259e59aa187359385dc4b2 Mon Sep 17 00:00:00 2001 From: ilhan orhan Date: Tue, 12 Dec 2023 15:00:07 +0200 Subject: [PATCH] feat(ui5-tabcontainer): add `tabstrip` Shadow Part (#7989) adds tabstrip CSS Shadow Part to allow styling of the respective element - mostly its padding. Fixes: #6035 --- packages/main/src/TabContainer.hbs | 1 + packages/main/src/TabContainer.ts | 1 + packages/main/test/pages/TabContainer.html | 31 ++++++++++++++++++++++ 3 files changed, 33 insertions(+) diff --git a/packages/main/src/TabContainer.hbs b/packages/main/src/TabContainer.hbs index c1b57406629d..7e664e0c752d 100644 --- a/packages/main/src/TabContainer.hbs +++ b/packages/main/src/TabContainer.hbs @@ -6,6 +6,7 @@ class="{{classes.header}}" id="{{_id}}-header" @focusin="{{_onHeaderFocusin}}" + part="tabstrip" >
* The ui5-tabcontainer exposes the following CSS Shadow Parts: * * diff --git a/packages/main/test/pages/TabContainer.html b/packages/main/test/pages/TabContainer.html index 627d3d5a7ef7..fcf42d63cbcd 100644 --- a/packages/main/test/pages/TabContainer.html +++ b/packages/main/test/pages/TabContainer.html @@ -807,6 +807,37 @@

Add new selected tab programmatically

+ +
+

Custom padding

+ + + + Button 1 + + + Button 2 + + + Button 3 + + + Button 4 + + + Button 5 + + Tab Content + +
+