Skip to content

Commit

Permalink
Secondary heading should be less h2, primary is h1
Browse files Browse the repository at this point in the history
  • Loading branch information
SmileyJames committed Jul 6, 2021
1 parent 7372ae1 commit 8fcb813
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/src/components/heading/Heading.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,10 @@ const withPrimary = (Component) => (props) => (
)

const withSecondary = (Component) => (props) => (
<Component as="h1" fontSize={[3,4,5]} {...props}/>
<Component as="h2" fontSize={[3,4,5]} {...props}/>
)

const PrimaryHeader = withPrimary(Header);
const SecondaryHeader = withSecondary(Header);

export { PrimaryHeader, SecondaryHeader };
export { PrimaryHeader, SecondaryHeader };

0 comments on commit 8fcb813

Please sign in to comment.