Skip to content
This repository has been archived by the owner on Nov 4, 2024. It is now read-only.

Commit

Permalink
feat: flip h1 with h2 and keep styling as it is (#4244)
Browse files Browse the repository at this point in the history
  • Loading branch information
hasan-ozaynaci authored May 13, 2022
1 parent 5ed7424 commit 83dff18
Showing 1 changed file with 2 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ export function Header({
{icon && !isMediumScreen && <Icon gridArea="topIcon">{icon}</Icon>}
{category && (
<Box gridArea="category">
<Heading level={1} variant="subtitle2">
<Heading level={2} variant="subtitle2">
{category}
{screenReaderCategory && (
<VisuallyHidden>{`- ${screenReaderCategory}`}</VisuallyHidden>
Expand All @@ -41,12 +41,7 @@ export function Header({
</Box>
)}
{icon && isMediumScreen && <Icon gridArea="sideIcon">{icon}</Icon>}
<Heading
level={1}
as="h2"
hyphens="auto"
css={css({ gridArea: 'title' })}
>
<Heading level={1} hyphens="auto" css={css({ gridArea: 'title' })}>
{title}
</Heading>
</GridLayout>
Expand Down

0 comments on commit 83dff18

Please sign in to comment.