TabContainer style customization for content padding is missing
See original GitHub issueVersions:
“@ui5/webcomponents”: “^1.0.0-rc.11”, “@ui5/webcomponents-base”: “^0.28.0”, “@ui5/webcomponents-theme-base”: “^1.0.0-rc.11”,
There is no way to customize padding on Content for TabContainer content.
Check this file: https://github.com/SAP/ui5-webcomponents/blob/master/packages/main/src/themes/TabContainer.css
.ui5-tc__content {
position: relative;
display: flex;
height: calc(100% - var(--_ui5_tc_header_height)); /* the header height (tabs with icons and text) */
padding: 1rem;
background-color: var(--sapGroup_ContentBackground);
border-bottom: var(--_ui5_tc_content_border_bottom);
box-sizing: border-box;
}
Expected at least one of this solutions: padding should be configurable over variable:
padding: var(--_ui5_tc_content_padding);
or please support ::part css selectors for shadow dom or provide other way to customize padding
Issue Analytics
- State:
- Created 3 years ago
- Comments:5 (4 by maintainers)
Top Results From Across the Web
css not working in asp tabcontainer - Stack Overflow
I m using the below css code for asp tab container in visual studio 2012 <style type="text/css"> .MyTabStyle .ajax__tab_header ...
Read more >AJAX Tab Container/Panel Styles - MSDN - Microsoft
When I attempt to create custom styles for the tab container or tabs ... It generate a problem in tabs with the margin...
Read more >How to resize the Tabs themselves, inside a TabContainer?
Update: using a custom theme/Font, etc, (and adding spacing-chars to the tab-name), was able to add more padding around the text, and make...
Read more >How to: styling the ASP.NET AJAX TabContainer control
The method for changing the style of the tab control, aka the TabContainer, that actually works is as follows: For Visual Studio 2005/ASP....
Read more >ASP.NET AJAX TabContainer – Tips and Tricks | DotNetCurry
<asp:Button ID="Button1" runat="server" Text="Button" />. </ContentTemplate> ... NET AJAX TabContainer/ TabPanel or How to Style an ASP.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Hi @schamane,
We already implemented TabContainer responsive padding, so depending on the width of the TabConainer the paddings might change: https://sap.github.io/ui5-webcomponents/master/playground/components/TabContainer/
Usually you shouldn’t change the paddings of the content of the TabContainer, because it should be aligned with the tabs. The only exception is when the content has its own paddings. In that case you can add negative margins to the control inside the content.
Best, Teo
Hello colleagues,
Could you please have a look at the proposed component enhancement. There is a need to customize the TabContainer component padding as @schamane described in details.
Best Regards, Boyan