Skip to content

Commit

Permalink
fix: add h1 on homePage and categoryPage, add fetchPriority high on c…
Browse files Browse the repository at this point in the history
…over
  • Loading branch information
fpasquet committed Apr 11, 2024
1 parent 8d4a868 commit df99bab
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 7 deletions.
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@eleven-labs/design-system",
"description": "Design System for Eleven Labs",
"version": "0.35.0",
"version": "0.36.0",
"repository": {
"type": "git",
"url": "https://github.com/eleven-labs/design-system.git"
Expand Down
2 changes: 1 addition & 1 deletion src/components/Atoms/Picture/Picture.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { Box } from '@/components';
import type { SpacingSystemProps } from '@/types';

export interface PictureProps extends SpacingSystemProps {
img: React.ComponentPropsWithoutRef<'img'>;
img: React.ComponentPropsWithoutRef<'img'> & { fetchPriority?: 'high' | 'low' | 'auto' };
sources?: React.ComponentPropsWithoutRef<'source'>[];
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,9 @@ export const CategoryIntroBlock: React.FC<CategoryIntroBlockProps> = ({ title, d
>
<Box pt="m" pb="xxl" className="container-content">
<Breadcrumb {...breadcrumb} />
<Heading size="xl">{title}</Heading>
<Heading as="h1" size="xl">
{title}
</Heading>
<Text mt="l">{description}</Text>
</Box>
</Flex>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ export const HomeIntroBlock: React.FC<HomeIntroBlockProps> = ({
<Heading size="s" color="info" textTransform="uppercase">
{intro}
</Heading>
<Heading size="xl" mt="m" color="primary">
<Heading as="h1" size="xl" mt="m" color="primary">
{title}
</Heading>
<Text mt="l">{description}</Text>
Expand Down
2 changes: 1 addition & 1 deletion src/components/Molecules/Cards/PostCard/PostCard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ export const PostCard: React.FC<PostCardProps> = ({
})}
>
<Skeleton isLoading={isLoading}>
<Picture {...cover} img={{ ...cover?.img, className: 'post-card__cover' }} />
<Picture {...cover} img={{ ...cover?.img, className: 'post-card__cover', fetchPriority: 'high' }} />
</Skeleton>
<Box my={{ xs: 's', md: 'm' }} pl={{ xs: 's', md: 'm' }} pr={{ xs: 'xs', md: 'm' }} flex="1">
<Skeleton isLoading={isLoading}>
Expand Down

0 comments on commit df99bab

Please sign in to comment.