Skip to content

Commit

Permalink
Merge pull request #1674 from starknet-io/bugfix/h1-titles-missing
Browse files Browse the repository at this point in the history
Add missing h1 titles
  • Loading branch information
rafaelcruzazevedo authored Nov 20, 2023
2 parents a70ba95 + 02baeec commit ad588e5
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 2 deletions.
1 change: 1 addition & 0 deletions workspaces/website/src/blocks/MarkdownBlock.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ export function MarkdownBlock({ body }: Props): JSX.Element {
id={`toc-${slugify(props.children.join(" "))}`}
/> */}
<Heading
as={"h1"}
id={`toc-${slugify(props.children.join(" "))}`}
color="heading-navy-fg"
variant="h2"
Expand Down
1 change: 1 addition & 0 deletions workspaces/website/src/components/HeroImage/HeroImage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -259,6 +259,7 @@ export const HeroImage = ({
</Box>

<Heading
as="h1"
color="heading-navy-fg"
variant="h2"
size={useBreakpointValue({ base: "md", md: "lg" })}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ export const SectionHeader = ({
<Stack spacing="3" pb={6}>
<Box>
<Heading
as="h1"
variant="h2"
color="heading-navy-fg"
fontWeight="extrabold"
Expand Down
2 changes: 1 addition & 1 deletion workspaces/website/src/components/Typography/Heading.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,5 +12,5 @@ export const Heading: React.FC<CustomHeadingProps> = ({
}) => {
const { ...rest } = props;
const Tag = variant || "h2";
return <ChakraHeading {...headingTheme[Tag as keyof typeof headingTheme]} as={variant as typeof as} {...rest} />;
return <ChakraHeading {...headingTheme[Tag as keyof typeof headingTheme]} as={as || variant} {...rest} />;
};
1 change: 1 addition & 0 deletions workspaces/website/src/pages/(components)/CMSPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,7 @@ export default function CMSPage({
{data.show_title ? <>
<Box pb="6">
<Heading
as="h1"
variant="h2"
color="heading-navy-fg"
fontWeight="extrabold"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ export default function RoadmapPage({

return (
<Box key={stage.value} mb="5rem">
<Heading variant="h4" display="flex" alignItems="center" mb="2rem" color="heading-navy-fg">
<Heading as="h1" variant="h4" display="flex" alignItems="center" mb="2rem" color="heading-navy-fg">
<Icon
boxSize="22px"
as={stage.icon}
Expand Down

0 comments on commit ad588e5

Please sign in to comment.