Skip to content

Commit 2d43940

Browse files
authored
Merge pull request #1820 from dxc-technology/Mil4n0r/navtab_width-fix
Fixing problems with NavTab inside website
2 parents 92fa0e1 + ccdf1ad commit 2d43940

File tree

3 files changed

+1
-14
lines changed

3 files changed

+1
-14
lines changed

lib/src/nav-tabs/NavTabs.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,6 @@ const Underline = styled.div`
9090
width: 100%;
9191
height: 2px;
9292
background-color: ${(props) => props.theme.dividerColor};
93-
z-index: -1;
9493
`;
9594

9695
DxcNavTabs.Tab = DxcTab;

lib/src/nav-tabs/Tab.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ const TabContainer = styled.div<{ active: TabProps["active"] }>`
9393
align-items: stretch;
9494
border-bottom: 2px solid ${(props) => (props.active ? props.theme.selectedUnderlineColor : 'transparent')};
9595
padding: 0.5rem;
96-
96+
z-index: 1;
9797
svg {
9898
color: ${(props) => props.theme.unselectedIconColor};
9999
}

website/screens/common/TabsPageLayout.tsx

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@ const TabsPageLayout = ({ tabs }: TabsPageLayoutProps) => {
1212
const router = useRouter();
1313

1414
return (
15-
<TabsContainer>
1615
<DxcNavTabs>
1716
{tabs.map((tab, index) => (
1817
<Link key={index} href={tab.path} passHref legacyBehavior>
@@ -22,18 +21,7 @@ const TabsPageLayout = ({ tabs }: TabsPageLayoutProps) => {
2221
</Link>
2322
))}
2423
</DxcNavTabs>
25-
</TabsContainer>
2624
);
2725
};
2826

29-
const TabsContainer = styled.div`
30-
display: grid;
31-
grid-template-columns: minmax(0, min-content) 1fr;
32-
overflow-x: auto;
33-
`;
34-
35-
const Divider = styled.span`
36-
border-bottom: 2px solid #bfbfbf;
37-
`;
38-
3927
export default TabsPageLayout;

0 commit comments

Comments
 (0)