question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

TabContainer style customization for content padding is missing

See original GitHub issue

Versions:

@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.

image

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:closed
  • Created 3 years ago
  • Comments:5 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
TeodorTaushanovcommented, Mar 29, 2021

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

1reaction
unazkocommented, Feb 6, 2021

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

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found