Skip to content

Commit

Permalink
Docs: fix broken ref in button docs (#5175)
Browse files Browse the repository at this point in the history
* fix broken ref in button docs

* update button storybook title names
  • Loading branch information
mcwinter07 authored Oct 17, 2024
1 parent 9205921 commit 28c2687
Show file tree
Hide file tree
Showing 15 changed files with 17 additions and 14 deletions.
3 changes: 3 additions & 0 deletions .changeset/early-bottles-peel.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
---
---

Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ A disabled Button prevents user interaction. It doesn't appear in the tab order,

Use any <LinkTo pageId="components-icons">Icon</LinkTo> component in the `icon` prop.

<Canvas of={ButtonStories.Icon} />
<Canvas of={ButtonStories.IconStory} />

#### Icon position

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import {
import { Button, ButtonProps } from "../index"

export default {
title: "Actions/Button/v1",
title: "Actions/Button/Button (v1)",
parameters: {
chromatic: { disable: false },
controls: { disable: true },
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import { Icon } from "~components/__future__/Icon"
import { Button } from "../index"

const meta = {
title: "Actions/Button/v1",
title: "Actions/Button/Button (v1)",
component: Button,
args: {
label: "Label",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import {
import { IconButton, IconButtonProps } from "../index"

export default {
title: "Actions/IconButton/v1",
title: "Actions/IconButton/IconButton (v1)",
parameters: {
chromatic: { disable: false },
controls: { disable: true },
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { Icon } from "~components/__future__/Icon"
import { IconButton } from "../index"

const meta = {
title: "Actions/IconButton/v1",
title: "Actions/IconButton/IconButton (v1)",
component: IconButton,
argTypes: {
icon: {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ A disabled Button prevents user interaction. It doesn't appear in the tab order,

Use any <LinkTo pageId="components-icons">Icon</LinkTo> component in the `icon` prop.

<Canvas of={ButtonStories.Icon} />
<Canvas of={ButtonStories.IconStory} />

#### Icon position

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import { Icon } from "~components/__future__/Icon"
import { Button } from "../index"

const meta = {
title: "Actions/Button/v2",
title: "Actions/Button/Button (v2)",
component: Button,
args: {
label: "Label",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { Icon } from "~components/__future__/Icon"
import { IconButton } from "../index"

const meta = {
title: "Actions/IconButton/v2",
title: "Actions/IconButton/IconButton (v2)",
component: IconButton,
argTypes: {
icon: {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { ResourceLinks, SbContent, KAIOInstallation } from "~storybook/component
import * as docsStories from "./Button.docs.stories"
import * as exampleStories from "./Button.stories"

<Meta title="Actions/Button/v3/API Specification" />
<Meta title="Actions/Button/Button (v3)/API Specification" />

<SbContent>
# Button API Specification (v3)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import { ChevronDownIcon, ChevronUpIcon } from "~components/Icon"
import { Button } from "../index"

const meta = {
title: "Actions/Button/v3/Doc Assets",
title: "Actions/Button/Button (v3)/Doc Assets",
component: Button,
args: {
children: "Label",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { Canvas, Meta, Controls } from "@storybook/blocks"
import { ResourceLinks, SbContent, Installation } from "~storybook/components"
import * as Button from "./Button.stories"

<Meta title="Actions/Button/v3/Usage Guidelines" />
<Meta title="Actions/Button/Button (v3)/Usage Guidelines" />

<SbContent>
# Button (v3)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import { Button } from "../index"
const onPressEvent = fn()

const meta = {
title: "Actions/Button/v3/Tests",
title: "Actions/Button/Button (v3)/Tests",
component: Button,
args: {
children: "Label",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import {
import { Button } from "../index"

export default {
title: "Actions/Button/v3/Tests",
title: "Actions/Button/Button (v3)/Tests",
parameters: {
chromatic: { disable: false },
controls: { disable: true },
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import { VisuallyHidden } from "~components/VisuallyHidden"
import { Button } from "../index"

const meta = {
title: "Actions/Button/v3",
title: "Actions/Button/Button (v3)",
component: Button,
args: {
children: "Label",
Expand Down

0 comments on commit 28c2687

Please sign in to comment.