Skip to content

Commit 27b7183

Browse files
committed
feat: Use theme in TabsHeader
1 parent 094f5ac commit 27b7183

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

src/Tabs/TabsHeader.tsx

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ const TitleList = styled.ul`
88
padding-left: 0;
99
list-style: none;
1010
margin: 0;
11-
border-bottom: 1px solid #dfdfdf;
11+
border-bottom: 1px solid ${(props) => props.theme.dividerColor};
1212
`;
1313

1414
interface TabTitleProps {
@@ -22,17 +22,19 @@ const TabTitle = styled.li<TabTitleProps>`
2222
opacity: 0.4;
2323
display: inline-block;
2424
border-bottom: solid 3px transparent;
25+
2526
:hover {
2627
opacity: 1;
27-
border-bottom: solid 3px #50a0d0;
28+
border-bottom: solid 3px ${(props) => props.theme.borderColor};
2829
}
30+
2931
${(props) =>
3032
props.isActiveTab &&
3133
css`
3234
transition: all 300ms cubic-bezier(0.4, 0, 0.2, 1) 0ms;
3335
cursor: default;
3436
opacity: 1;
35-
border-bottom: solid 3px #50a0d0;
37+
border-bottom: solid 3px ${props.theme.borderColor};
3638
`}
3739
`;
3840

0 commit comments

Comments
 (0)