Skip to content

Commit

Permalink
make h2 default section heading
Browse files Browse the repository at this point in the history
  • Loading branch information
HonzaKirchner committed Aug 20, 2024
1 parent e1d2d31 commit ff51a2a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/Section/Section.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ export default function Section({ heading, description, className, children, hea
return (
<section className={clsx(styles.section, className)}>
{(heading || description) && <div className={styles.sectionHeader}>
{heading && <Heading className={headingClassName} type='title2Xl' as={headingAs}>{heading}</Heading>}
{heading && <Heading className={headingClassName} type="title2Xl" as={headingAs || 'h2'}>{heading}</Heading>}
{description && <Text color={theme.color.neutral.textMuted} size="large">{description}</Text>}
</div>}
{children}
Expand Down
1 change: 1 addition & 0 deletions src/pages/api/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -173,6 +173,7 @@ curl "https://api.apify.com/v2/datasets/<DATASET_ID>/items?token=<YOUR_API_TOKEN
content: (
<SectionWrapper
heading="JavaScript API client"
headingAs="h3"
description={<div className="Description">
The official library to interact with Apify API from a web browser, Node.js, JavaScript, or Typescript applications.
<GitButton href="https://github.com/apify/apify-client-js" data-size="large" data-show-count="true">Star</GitButton>
Expand Down

0 comments on commit ff51a2a

Please sign in to comment.