Skip to content

Commit

Permalink
have to use containerType
Browse files Browse the repository at this point in the history
  • Loading branch information
JeanMarcMilletScality committed Sep 24, 2024
1 parent eb0b871 commit 08ba839
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib/components/tabsv2/StyledTabs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ export const TabsContainer = styled.div<{
}>`
height: 100%;
width: 100%;
contain: 'size layout';
contain: 'layout';
display: flex;
flex-direction: column;
background-color: ${(props) =>
Expand Down
2 changes: 2 additions & 0 deletions src/lib/components/tabsv2/Tabsv2.component.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -186,6 +186,8 @@ function Tabs({
return (
<TabsContext.Provider value={true}>
<TabsContainer
// @ts-expect-error containerType is not yet a valid prop for react
style={{ containerType: 'size' }}
className={['sc-tabs', className].join(' ')}
tabLineColor={tabLineColor}
separatorColor={separatorColor}
Expand Down

0 comments on commit 08ba839

Please sign in to comment.