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

Flip h1 with h2 and keep styling as it is #4244

Merged
merged 1 commit into from
May 13, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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