Skip to content

Commit

Permalink
OC-12122 - Adding Icon Tokens to NavTabs
Browse files Browse the repository at this point in the history
  • Loading branch information
Aitor Echevarría committed Feb 21, 2023
1 parent f6a1df6 commit 0e4163c
Showing 1 changed file with 16 additions and 17 deletions.
33 changes: 16 additions & 17 deletions lib/src/tabs-nav/Tab.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,21 @@ type TabContainerProps = {
};
const TabContainer = styled.div<TabContainerProps>`
border-bottom: 2px solid ${(props) => (props.active ? props.theme.selectedUnderlineColor : props.theme.dividerColor)};
svg {
color: ${(props) => props.theme.unselectedIconColor};
}
&[aria-selected="true"] {
svg {
color: ${(props) => props.theme.selectedIconColor};
}
}
&[aria-disabled="true"] {
svg {
color: ${(props) => props.theme.disabledIconColor};
}
}
`;

type TabStyleProps = {
Expand All @@ -116,23 +131,7 @@ const Tab = styled.a<TabStyleProps>`
padding: 0.375rem;
border-radius: 4px;
svg {
height: 24px;
width: 24px;
color: ${(props) => props.theme.unselectedIconColor};
}
&[aria-selected="true"] {
svg {
color: ${(props) => props.theme.selectedIconColor};
}
}
&[aria-disabled="true"] {
svg {
color: ${(props) => props.theme.disabledIconColor};
}
}
${(props) =>
!props.disabled &&
Expand Down

0 comments on commit 0e4163c

Please sign in to comment.