Skip to content

Commit

Permalink
Override link styles (#81)
Browse files Browse the repository at this point in the history
  • Loading branch information
chriszarate authored Dec 2, 2020
1 parent fd206f0 commit f599c34
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 4 deletions.
8 changes: 8 additions & 0 deletions src/components/TabNav/TabNav.scss
Original file line number Diff line number Diff line change
Expand Up @@ -66,5 +66,13 @@
&[aria-current="true"] {
border-bottom: 2px solid color-scheme.$accent;
color: color-scheme.$accent;

a {
color: color-scheme.$accent;
}
}

a {
color: inherit;
}
}
8 changes: 4 additions & 4 deletions src/components/TabNav/TabNav.stories.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -37,16 +37,16 @@ A link (`<a>`) or button (`<button>`) element should be passed into each TabNavI
{args => (
<TabNav>
<TabNavItem isActive={true}>
<a style={{color: 'inherit'}} href="#">John</a>
<a href="#">John</a>
</TabNavItem>
<TabNavItem>
<a style={{color: 'inherit'}} href="#">Paul</a>
<a href="#">Paul</a>
</TabNavItem>
<TabNavItem>
<a style={{color: 'inherit'}} href="#">George</a>
<a href="#">George</a>
</TabNavItem>
<TabNavItem>
<a style={{color: 'inherit'}} href="#">Ringo</a>
<a href="#">Ringo</a>
</TabNavItem>
</TabNav>
)}
Expand Down

0 comments on commit f599c34

Please sign in to comment.