Skip to content

Commit

Permalink
Merge pull request #17854 from hiro0218/fix/typo-docs
Browse files Browse the repository at this point in the history
Fix typo docs files
  • Loading branch information
jonniebigodes authored and shilman committed Apr 9, 2022
1 parent 55e6958 commit a77bc68
Show file tree
Hide file tree
Showing 18 changed files with 18 additions and 18 deletions.
2 changes: 1 addition & 1 deletion docs/addons/addon-knowledge-base.md
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ Complementing the components, also included is a set of UI primitives. Use the c

| Component | Source | Story |
| ------------------------------- | ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------- |
| Color Pallette (see note below) | [See implementation](https://github.com/storybookjs/storybook/tree/master/lib/components/src/Colors) | [See story](https://5a375b97f4b14f0020b0cda3-wbeulgbetj.chromatic.com/?path=/story/basics-colorpalette--page) |
| Color Palette (see note below) | [See implementation](https://github.com/storybookjs/storybook/tree/master/lib/components/src/Colors) | [See story](https://5a375b97f4b14f0020b0cda3-wbeulgbetj.chromatic.com/?path=/story/basics-colorpalette--page) |
| Icon | [See implementation](https://github.com/storybookjs/storybook/blob/master/lib/components/src/icon/icons.tsx) | [See story](https://5a375b97f4b14f0020b0cda3-wbeulgbetj.chromatic.com/?path=/story/basics-icon--labels) |
| Typography | [See implementation](https://github.com/storybookjs/storybook/tree/master/lib/components/src/typography) | [See story](https://5a375b97f4b14f0020b0cda3-wbeulgbetj.chromatic.com/?path=/story/basics-typography--all) |

Expand Down
2 changes: 1 addition & 1 deletion docs/addons/writing-presets.md
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,7 @@ If it doesn't exist yet, create a file `.storybook/main.js`:

It's also possible to programmatically modify the preview head/body HTML using a preset, similar to the way `preview-head.html`/`preview-body.html` can be used to [configure story rendering](../configure/story-rendering.md). The `previewHead` and `previewBody` functions accept a string, which is the existing head/body, and return a modified string.

For example, the following snippet adds a style tag to the preview head programatically:
For example, the following snippet adds a style tag to the preview head programmatically:

<!-- prettier-ignore-start -->

Expand Down
2 changes: 1 addition & 1 deletion docs/snippets/angular/button-story-with-blue-args.mdx.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -20,5 +20,5 @@ import { Button } from './button.component';
}}
/>

<!-- Your story implmentation -->
<!-- Your story implementation -->
```
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ export const Template = (args) => ({ props: args });
play={async () => {
const exampleElement= screen.getByLabelText('example-element');

// The delay option set the ammount of milliseconds between characters being typed
// The delay option set the amount of milliseconds between characters being typed
await userEvent.type(exampleElement, 'random string', {
delay: 100,
});
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ const Template: Story = (args) => ({
export const DelayedStory: Story = Template.bind({});
DelayedStory.play = () => {
const exampleElement= screen.getByLabelText('example-element');
// The delay option set the ammount of milliseconds between characters being typed
// The delay option set the amount of milliseconds between characters being typed
await userEvent.type(exampleElement, 'random string', {
delay: 100,
});
Expand Down
2 changes: 1 addition & 1 deletion docs/snippets/react/button-story-with-blue-args.mdx.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -20,5 +20,5 @@ import { Button } from './Button';
}}
/>

<!-- Your story implmentation -->
<!-- Your story implementation -->
```
2 changes: 1 addition & 1 deletion docs/snippets/react/document-screen-fetch.js.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ function useFetchData() {
})
.then((res) => res.json())
.then((data) => {
setStatus('sucess');
setStatus('success');
setData(data);
})
.catch(() => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ export const DelayedStory = Template.bind({});
DelayedStory.play = async () => {
const exampleElement= screen.getByLabelText('example-element');

// The delay option set the ammount of milliseconds between characters being typed
// The delay option set the amount of milliseconds between characters being typed
await userEvent.type(exampleElement, 'random string', {
delay: 100,
});
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ export const Template = (args) => <MyComponent {...args} />;
play={async () => {
const exampleElement= screen.getByLabelText('example-element');

// The delay option set the ammount of milliseconds between characters being typed
// The delay option set the amount of milliseconds between characters being typed
await userEvent.type(exampleElement, 'random string', {
delay: 100,
});
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ export const DelayedStory = Template.bind({});
DelayedStory.play = async () => {
const exampleElement= screen.getByLabelText('example-element');

// The delay option set the ammount of milliseconds between characters being typed
// The delay option set the amount of milliseconds between characters being typed
await userEvent.type(exampleElement, 'random string', {
delay: 100,
});
Expand Down
2 changes: 1 addition & 1 deletion docs/snippets/svelte/button-story-with-blue-args.mdx.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -20,5 +20,5 @@ import Button from './Button.svelte';
}}
/>

<!-- Your story implmentation -->
<!-- Your story implementation -->
```
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ export const DelayedStory = Template.bind({});
DelayedStory.play = async () => {
const exampleElement= screen.getByLabelText('example-element');

// The delay option set the ammount of milliseconds between characters being typed
// The delay option set the amount of milliseconds between characters being typed
await userEvent.type(exampleElement, 'random string', {
delay: 100,
});
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ export const Template = (args) => ({
play={async () => {
const exampleElement= screen.getByLabelText('example-element');

// The delay option set the ammount of milliseconds between characters being typed
// The delay option set the amount of milliseconds between characters being typed
await userEvent.type(exampleElement, 'random string', {
delay: 100,
});
Expand Down
2 changes: 1 addition & 1 deletion docs/snippets/vue/button-story-with-blue-args.mdx.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -20,5 +20,5 @@ import Button from './Button.vue';
}}
/>

<!-- Your story implmentation -->
<!-- Your story implementation -->
```
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ export const DelayedStory = Template.bind({});
DelayedStory.play = async () => {
const exampleElement= screen.getByLabelText('example-element');

// The delay option set the ammount of milliseconds between characters being typed
// The delay option set the amount of milliseconds between characters being typed
await userEvent.type(exampleElement, 'random string', {
delay: 100,
});
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ const Template = (args) => ({
play={async () => {
const exampleElement= screen.getByLabelText('example-element');

// The delay option set the ammount of milliseconds between characters being typed
// The delay option set the amount of milliseconds between characters being typed
await userEvent.type(exampleElement, 'random string', {
delay: 100,
});
Expand Down
2 changes: 1 addition & 1 deletion docs/writing-docs/doc-block-description.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ Storybook extracts the component's description and renders it at the top of the
| `component` | Overrides the default component description. <br/> `description: { component:'An example component description' }` |
| `markdown` | Provides custom Markdown for the component description. <br/> `<Description markdown={dedent'# Custom Description'} />` <br/> Only applicable to MDX. |
| `story` | Overrides the story description. <br/> `description: { story: 'An example story description' }` |
| `of` | Sets the description based either on a component or story. <br/> `<Description of={Commponent} />` <br/> `<Description of={'.'} />` <br/> Only applicable to MDX. |
| `of` | Sets the description based either on a component or story. <br/> `<Description of={Component} />` <br/> `<Description of={'.'} />` <br/> Only applicable to MDX. |

## Working with MDX

Expand Down
2 changes: 1 addition & 1 deletion docs/writing-docs/doc-block-icongallery.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ Storybook's `IconGallery` Doc Block enables you easily document all icons associ

## Working with MDX

Similar to other documentation-oriented Doc Blocks such as [`TypeSet`](./doc-block-typeset.md), or [`ColorPallete`](./doc-block-colorpalette.md), the `IconGallery` is also typically used with MDX. It allows you to provide additional customization via options. Below is a condensed example and table featuring all the available options.
Similar to other documentation-oriented Doc Blocks such as [`TypeSet`](./doc-block-typeset.md), or [`ColorPalette`](./doc-block-colorpalette.md), the `IconGallery` is also typically used with MDX. It allows you to provide additional customization via options. Below is a condensed example and table featuring all the available options.

<!-- prettier-ignore-start -->

Expand Down

0 comments on commit a77bc68

Please sign in to comment.