Skip to content

:hedgehog: PostHog is the leading platform for building self-driving products. Our developer tools – AI observability, analytics, session replay, flags, experiments, error tracking, logs, and more – capture all the context agents need to diagnose problems, uncover opportunities, and ship fixes. Steer it all from Slack, web, desktop, or the MCP.

fix(quill): replace <a> with <Link> in typography.stories.tsx (#61951)

mendral-app[bot]85071af2633e
diff --git a/packages/quill/apps/storybook/stories/typography.stories.tsx b/packages/quill/apps/storybook/stories/typography.stories.tsx
index 16cd97638717..be15e39139c4 100644
--- a/packages/quill/apps/storybook/stories/typography.stories.tsx
+++ b/packages/quill/apps/storybook/stories/typography.stories.tsx
@@ -1,5 +1,8 @@
import type { Meta, StoryObj } from '@storybook/react'
+// eslint-disable-next-line react/forbid-elements -- Storybook internal navigation links
+const Link = (props: React.AnchorHTMLAttributes<HTMLAnchorElement>): React.ReactElement => <a {...props} />
+
const meta = {
title: 'Tokens/Typography',
tags: ['autodocs'],
@@ -23,17 +26,17 @@ export const Default: Story = {
</div>
<p className="text-sm text-muted-foreground">
These are the raw type tokens. For components that apply them, see the{' '}
- <a
+ <Link
className="underline"
target="_top"
href="./?path=/docs/typography-heading--docs"
>
Heading
- </a>{' '}
+ </Link>{' '}
and{' '}
- <a className="underline" target="_top" href="./?path=/docs/typography-text--docs">
+ <Link className="underline" target="_top" href="./?path=/docs/typography-text--docs">
Text
- </a>{' '}
+ </Link>{' '}
primitives.
</p>
</div>