Skip to content

Commit

Permalink
Merge pull request #33 from primer/fix-links
Browse files Browse the repository at this point in the history
Link cleanup
  • Loading branch information
Emily authored Oct 3, 2018
2 parents 4fa9488 + 63bf857 commit 5c78c92
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 19 deletions.
24 changes: 12 additions & 12 deletions src/Hero.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,18 +16,18 @@ const Hero = props => (
<Heading color="blue.4" mb={2} fontSize={[48, 56, 84]} fontWeight='bold'>Primer</Heading>
<Text color="blue.2" fontSize={[4,5,5,7]} lineHeight={1.25}>Resources, tooling, and design guidelines for building interfaces with GitHub’s design system</Text>
<Text is="p" color="blue.3" mt={4} className="text-mono">
<LinkLight fontSize={[0,1,2]}
href='https://styleguide.github.com/primer/'>
Style guide
</LinkLight>
<LinkLight ml={2} fontSize={[0,1,2]}
href='https://spectrum.chat/primer'>
Community
</LinkLight>
<LinkLight ml={2} fontSize={[0,1,2]}
href='https://github.com/primer/'>
Open-source
</LinkLight>
<LinkLight fontSize={[0,1,2]}
href='https://styleguide.github.com/primer/'>
Style guide
</LinkLight>
<LinkLight ml={2} fontSize={[0,1,2]}
href='https://spectrum.chat/primer'>
Community
</LinkLight>
<LinkLight ml={2} fontSize={[0,1,2]}
href='https://github.com/primer/'>
Open-source
</LinkLight>
</Text>
</Box>
</Box>
Expand Down
4 changes: 1 addition & 3 deletions src/LinkDark.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Extends Link from primer/components to make color primitives available, as well as fontSize and space which should be added in primer/components. Ideally I'd use defaultProps here but because we use !important on utilities the theme colors won't override. We could probably add a function to handle this.
// Extends Link from primer/components to make color primitives available. Ideally I'd use defaultProps here but because we use !important on utilities the theme colors won't override. We could probably add a function to handle this.

import {Link} from '@primer/components'
import {
Expand All @@ -13,8 +13,6 @@ const LinkDark = styled(Link)`
&:hover {
color: ${props => props.theme.colors.gray[8]};
}
${fontSize}
${fontWeight}
`

export default LinkDark
3 changes: 1 addition & 2 deletions src/LinkLight.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Extends Link from primer/components to make color primitives available, as well as fontSize and space which should be added in primer/components. Ideally I'd use defaultProps here but because we use !important on utilities the theme colors won't override. We could probably add a function to handle this.
// Extends Link from primer/components to make color primitives available. Ideally I'd use defaultProps here but because we use !important on utilities the theme colors won't override. We could probably add a function to handle this.

import {Link} from '@primer/components'
import {
Expand All @@ -9,7 +9,6 @@ import styled from 'react-emotion'

const LinkLight = styled(Link)`
color: ${props => props.theme.colors.blue[3]} !important;
${fontSize}
`

LinkLight.defaultProps = {
Expand Down
3 changes: 1 addition & 2 deletions src/LinkPromo.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Extends Link from primer/components to make color primitives available, as well as fontSize and space which should be added in primer/components. Ideally I'd use defaultProps here but because we use !important on utilities the theme colors won't override. We could probably add a function to handle this.
// Extends Link from primer/components to make color primitives available. Ideally I'd use defaultProps here but because we use !important on utilities the theme colors won't override. We could probably add a function to handle this.

import {Link} from '@primer/components'
import {
Expand All @@ -9,7 +9,6 @@ import styled from 'react-emotion'

const LinkPromo = styled(Link)`
color: ${props => props.theme.colors.orange[3]} !important;
${fontSize}
`

export default LinkPromo

0 comments on commit 5c78c92

Please sign in to comment.