Feature/tweaks (#8)

* show copy button on focs

* change base link styling

* text-decoration underline on basic links

* basic hover and focus styles on button and tabs

* add links in footer

* change breakpoints vars

* medium breakpoint on footer
This commit is contained in:
August Skare
2018-10-25 10:54:53 +01:00
committed by GitHub
parent 1c8ea1336e
commit e5d3e3b33a
7 changed files with 53 additions and 22 deletions

View File

@@ -24,23 +24,25 @@ const StyledTab = styled(Tab)`
&:not(:first-of-type) {
margin-left: 0.25rem;
}
&:focus,
&:hover {
color: red;
outline: 0;
}
`;
const Root =
styled.div <
{ primaryColor: string } >
{ colors: any } >
`
${StyledTab} {
background-color: ${props => props.primaryColor};
}
${StyledTab}[aria-selected="true"] {
background-color: ${colors.gray};
}
${StyledTab} {
background-color: ${props => props.colors.secondary};
&[aria-selected="true"] {
background-color: ${colors.gray};
}
&[aria-selected="false"]:focus,
&[aria-selected="false"]:hover {
color: ${props => props.colors.main};
cursor: pointer;
}
}
`;
interface TabsProps extends Props {
@@ -50,7 +52,7 @@ interface TabsProps extends Props {
function Tabs(props: TabsProps) {
return (
<Breakout>
<Root primaryColor={props.colors.secondary}>
<Root colors={props.colors}>
<ReactTabs>
<StyledTabList>
{React.Children.map(props.children, child => {