Skip to content

Commit badf87f

Browse files
committed
set background-color of the tabs
Setting the background-color on the TabsetPanel had no effect on the tabs. ```java UITabsetPanel tp = new UITabsetPanel(); tp.setBackground(UIColor.red); ```
1 parent d28e68c commit badf87f

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/main/components/panels/tabsetpanel/TabsetPanelImpl.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,7 @@ const TabsetPanelImpl: FC<ITabsetImpl & IComponentConstants> = (props) => {
186186
style={props.screen_modal_ || props.content_modal_ ? { height: (prefSize?.height as number), width: prefSize?.width } : { ...props.layoutStyle, ...props.compStyle }}>
187187
<TabView
188188
ref={panelRef}
189-
style={{"--nav-background": props.compStyle.background} as CSSProperties}
189+
style={{"--nav-background": props.compStyle.background, "--tab-navbar-background": props.compStyle.background} as CSSProperties}
190190
activeIndex={props.selectedIndex}
191191
onTabChange={event => props.onTabChange(event.index)}
192192
onBeforeTabClose={event => props.onTabClose(event.index)}

0 commit comments

Comments
 (0)