From 63702669db828cb068302a9b0fd349508923a6a6 Mon Sep 17 00:00:00 2001 From: "Tim S. Van Haren" Date: Tue, 16 Jan 2024 12:11:44 -0500 Subject: [PATCH 1/5] fix: fixes the Link2 console warning about defaultProps as outlined in issue 24305 --- .../src/components/typography/link/link.tsx | 19 ++++++------------- 1 file changed, 6 insertions(+), 13 deletions(-) diff --git a/code/ui/components/src/components/typography/link/link.tsx b/code/ui/components/src/components/typography/link/link.tsx index fb26a03a0df4..3e822981d8ca 100644 --- a/code/ui/components/src/components/typography/link/link.tsx +++ b/code/ui/components/src/components/typography/link/link.tsx @@ -184,12 +184,13 @@ export interface LinkProps extends LinkInnerProps, LinkStylesProps { } export const Link: FC = ({ - cancel, + cancel = true, children, - onClick, - withArrow, - containsIcon, - className, + onClick = undefined, + withArrow = false, + containsIcon = false, + className = undefined, + style = undefined, ...rest }) => ( = ({ ); -Link.defaultProps = { - cancel: true, - className: undefined, - style: undefined, - onClick: undefined, - withArrow: false, - containsIcon: false, -}; From e4e4a4c425200b4b237dbab176f8a9ad36c96add Mon Sep 17 00:00:00 2001 From: "Tim S. Van Haren" Date: Mon, 22 Jan 2024 10:22:39 -0500 Subject: [PATCH 2/5] fix: removed errant newline per linting rules --- code/ui/components/src/components/typography/link/link.tsx | 1 - 1 file changed, 1 deletion(-) diff --git a/code/ui/components/src/components/typography/link/link.tsx b/code/ui/components/src/components/typography/link/link.tsx index 3e822981d8ca..50a46440cbbd 100644 --- a/code/ui/components/src/components/typography/link/link.tsx +++ b/code/ui/components/src/components/typography/link/link.tsx @@ -204,4 +204,3 @@ export const Link: FC = ({ ); - From bb423bd59ceaf29d3c000b95a19e13ede8f31045 Mon Sep 17 00:00:00 2001 From: Kyle Gach Date: Fri, 19 Jan 2024 16:57:26 -0700 Subject: [PATCH 3/5] Remove mentions of MDX 2 - Remove Breaking changes section - Move GFM instructions to Troubleshooting section - Remove blockquotes, which render in a huge font --- docs/faq.md | 8 +-- docs/writing-docs/autodocs.md | 4 +- docs/writing-docs/mdx.md | 94 +++++++++++------------------------ 3 files changed, 35 insertions(+), 71 deletions(-) diff --git a/docs/faq.md b/docs/faq.md index 55840449c2fa..424f201aed61 100644 --- a/docs/faq.md +++ b/docs/faq.md @@ -21,7 +21,7 @@ Here are some answers to frequently asked questions. If you have a question, you - [I see a "No Preview" error with a Storybook production build](#i-see-a-no-preview-error-with-a-storybook-production-build) - [Can I use Storybook with Vue 3?](#can-i-use-storybook-with-vue-3) - [Why aren't my code blocks highlighted with Storybook MDX](#why-arent-my-code-blocks-highlighted-with-storybook-mdx) -- [Why aren't my MDX 2 stories working in Storybook?](#why-arent-my-mdx-2-stories-working-in-storybook) +- [Why aren't my MDX stories working in Storybook?](#why-arent-my-mdx-stories-working-in-storybook) - [Why are my mocked GraphQL queries failing with Storybook's MSW addon?](#why-are-my-mocked-graphql-queries-failing-with-storybooks-msw-addon) - [Can I use other GraphQL providers with Storybook's MSW addon?](#can-i-use-other-graphql-providers-with-storybooks-msw-addon) - [Can I mock GraphQL mutations with Storybook's MSW addon?](#can-i-mock-graphql-mutations-with-storybooks-msw-addon) @@ -371,9 +371,9 @@ Yes, with the release of version 6.2, Storybook now includes support for Vue 3. Out of the box, Storybook provides syntax highlighting for a set of languages (e.g., Javascript, Markdown, CSS, HTML, Typescript, GraphQL) you can use with your code blocks. Currently, there's a known limitation when you try and register a custom language to get syntax highlighting. We're working on a fix for this And will update this section once it's available. -## Why aren't my MDX 2 stories working in Storybook? +## Why aren't my MDX stories working in Storybook? -MDX 2 introduced some changes to how the code is rendered. For example, if you enabled it in your Storybook and you have the following code block: +MDX 2 introduced some changes to how the code is rendered. For example, if you have the following code block: ```