Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion lib/src/nav-tabs/NavTabs.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,6 @@ const Underline = styled.div`
width: 100%;
height: 2px;
background-color: ${(props) => props.theme.dividerColor};
z-index: -1;
`;

DxcNavTabs.Tab = DxcTab;
Expand Down
2 changes: 1 addition & 1 deletion lib/src/nav-tabs/Tab.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ const TabContainer = styled.div<{ active: TabProps["active"] }>`
align-items: stretch;
border-bottom: 2px solid ${(props) => (props.active ? props.theme.selectedUnderlineColor : 'transparent')};
padding: 0.5rem;

z-index: 1;
svg {
color: ${(props) => props.theme.unselectedIconColor};
}
Expand Down
12 changes: 0 additions & 12 deletions website/screens/common/TabsPageLayout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ const TabsPageLayout = ({ tabs }: TabsPageLayoutProps) => {
const router = useRouter();

return (
<TabsContainer>
<DxcNavTabs>
{tabs.map((tab, index) => (
<Link key={index} href={tab.path} passHref legacyBehavior>
Expand All @@ -22,18 +21,7 @@ const TabsPageLayout = ({ tabs }: TabsPageLayoutProps) => {
</Link>
))}
</DxcNavTabs>
</TabsContainer>
);
};

const TabsContainer = styled.div`
display: grid;
grid-template-columns: minmax(0, min-content) 1fr;
overflow-x: auto;
`;

const Divider = styled.span`
border-bottom: 2px solid #bfbfbf;
`;

export default TabsPageLayout;