Skip to content

Commit

Permalink
[website] Fix heading structure
Browse files Browse the repository at this point in the history
  • Loading branch information
oliviertassinari committed Feb 3, 2024
1 parent 8d9b376 commit 98f2785
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 3 deletions.
5 changes: 4 additions & 1 deletion docs/src/components/action/InfoCard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import * as React from 'react';
import { alpha } from '@mui/material/styles';
import Box from '@mui/material/Box';
import Paper from '@mui/material/Paper';
import Typography from '@mui/material/Typography';
import Typography, { TypographyProps } from '@mui/material/Typography';
import Link, { LinkProps } from 'docs/src/modules/components/Link';

interface GlowingIconContainerProps {
Expand Down Expand Up @@ -52,6 +52,7 @@ interface InfoCardProps {
prefetch?: LinkProps['prefetch'];
svg?: React.ReactNode;
title: string;
titleProps?: TypographyProps;
}

export default function InfoCard(props: InfoCardProps) {
Expand All @@ -64,6 +65,7 @@ export default function InfoCard(props: InfoCardProps) {
link,
svg,
title,
titleProps,
...other
} = props;
return (
Expand Down Expand Up @@ -100,6 +102,7 @@ export default function InfoCard(props: InfoCardProps) {
mt={icon ? 2 : 0}
mb={description ? 0.5 : 0}
className={classNameTitle}
{...titleProps}
>
{title}
</Typography>
Expand Down
1 change: 1 addition & 0 deletions docs/src/components/home/MuiStatistics.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ export default function MuiStatistics() {
<Box key={item.title} sx={{ width: { xs: '50%', sm: 200 }, p: { xs: 1, sm: 0 } }}>
<Typography
variant="h4"
component="h3"
fontWeight="semiBold"
sx={(theme) => ({
textAlign: { xs: 'left', sm: 'center' },
Expand Down
2 changes: 1 addition & 1 deletion docs/src/components/home/Testimonials.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ export default function Testimonials() {
<SectionHeadline
overline="Join the community"
title={
<Typography variant="h2" component="h1">
<Typography variant="h2" component="h2">
Supported by thousands of <GradientText>developers and designers</GradientText>
</Typography>
}
Expand Down
9 changes: 8 additions & 1 deletion docs/src/components/productCore/CoreProducts.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,14 @@ export default function CoreProducts() {
<Grid container spacing={2}>
{content.map(({ title, description, link }) => (
<Grid key={title} item xs={12} md={6}>
<InfoCard link={link} title={title} description={description} />
<InfoCard
link={link}
title={title}
description={description}
titleProps={{
component: 'h2',
}}
/>
</Grid>
))}
</Grid>
Expand Down

0 comments on commit 98f2785

Please sign in to comment.