Skip to content

Commit 21fa967

Browse files
committed
fix(docs): fix some typo
1 parent c230f77 commit 21fa967

11 files changed

+25
-27
lines changed

packages/storybook/stories/components/code/code.stories.ts

+5-5
Original file line numberDiff line numberDiff line change
@@ -32,22 +32,22 @@ export const Demo: StoryObj = {
3232
}),
3333
args: {
3434
canCopy: false,
35-
content: 'import { OsdsText } from \'@ovhcloud/ods-components/react\';'
35+
content: 'import { OdsText } from \'@ovhcloud/ods-components/react\';'
3636
},
3737
};
3838

3939
export const CanCopy: StoryObj = {
4040
tags: ['isHidden'],
4141
render: () => html`
42-
<ods-code can-copy>import { OsdsText } from '@ovhcloud/ods-components/react';
42+
<ods-code can-copy>import { OdsText } from '@ovhcloud/ods-components/react';
4343
</ods-code>
4444
`,
4545
};
4646

4747
export const CustomCSS: StoryObj = {
4848
tags: ['isHidden'],
4949
render: () => html`
50-
<ods-code class="my-code">import { OsdsText } from '@ovhcloud/ods-components/react';
50+
<ods-code class="my-code">import { OdsText } from '@ovhcloud/ods-components/react';
5151
</ods-code>
5252
<style>
5353
.my-code {
@@ -64,15 +64,15 @@ export const Overview: StoryObj = {
6464
layout: 'centered',
6565
},
6666
render: () => html`
67-
<ods-code can-copy>import { OsdsText } from '@ovhcloud/ods-components/react';
67+
<ods-code can-copy>import { OdsText } from '@ovhcloud/ods-components/react';
6868
</ods-code>
6969
`,
7070
};
7171

7272
export const Default: StoryObj = {
7373
tags: ['isHidden'],
7474
render: () => html`
75-
<ods-code>import { OsdsText } from '@ovhcloud/ods-components/react';
75+
<ods-code>import { OdsText } from '@ovhcloud/ods-components/react';
7676
</ods-code>
7777
`,
7878
};

packages/storybook/stories/components/code/migration.from.17.x.mdx

+2-2
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ Default usage:
4949
<!-- is now -->
5050

5151
<ods-code>
52-
import { OsdsText } from '@ovhcloud/ods-components/react';
52+
import { OdsText } from '@ovhcloud/ods-components/react';
5353
</ods-code>
5454
```
5555

@@ -63,6 +63,6 @@ With a copy button:
6363
<!-- is now -->
6464

6565
<ods-code can-copy>
66-
import { OsdsText } from '@ovhcloud/ods-components/react';
66+
import { OdsText } from '@ovhcloud/ods-components/react';
6767
</ods-code>
6868
```

packages/storybook/stories/components/divider/migration.from.17.x.mdx

+4-5
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ Color:
4545

4646
<!-- is now -->
4747

48-
<osds-divider class="custom"></osds-divider>
48+
<ods-divider class="custom"></ods-divider>
4949

5050
<style>
5151
.custom {
@@ -60,7 +60,7 @@ Contrasted:
6060

6161
<!-- is now -->
6262

63-
<osds-divider color="dark"></osds-divider>
63+
<ods-divider color="dark"></ods-divider>
6464
```
6565

6666
Separator:
@@ -69,7 +69,7 @@ Separator:
6969

7070
<!-- is now -->
7171

72-
<osds-divider class="custom"></osds-divider>
72+
<ods-divider class="custom"></ods-divider>
7373

7474
<style>
7575
.custom {
@@ -78,12 +78,11 @@ Separator:
7878
</style>
7979
```
8080

81-
8281
Size:
8382
```html
8483
<osds-divider size="1"></osds-divider>
8584

8685
<!-- is now -->
8786

88-
<osds-divider spacing="2"></osds-divider>
87+
<ods-divider spacing="2"></ods-divider>
8988
```

packages/storybook/stories/components/input/migration.from.17.x.mdx

+1-2
Original file line numberDiff line numberDiff line change
@@ -196,8 +196,7 @@ Label input:
196196

197197
<!-- is now -->
198198
<ods-form-field>
199-
<ods-text slot='label' color='text'>My label</ods-text>
199+
<label slot='label'>My label</label>
200200
<ods-input type='text' value='Input'></ods-input>
201201
</ods-form-field>
202202
```
203-

packages/storybook/stories/components/modal/migration.from.17.x.mdx

+1-1
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ Headline modal:
6060
<!-- is now -->
6161

6262
<ods-modal>
63-
<ods-text preset="heading-3">Hello, world!</ods-text>
63+
<ods-text preset="heading-3">Hello, world!</ods-text>
6464
</ods-modal>
6565
```
6666

packages/storybook/stories/components/quantity/migration.from.17.x.mdx

+2-1
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,6 @@ The same result would now be achieved using:
3535
</ods-quantity>
3636
```
3737

38-
3938
## Attributes changes
4039

4140
`disabled` <ods-badge size="sm" label="Updated"></ods-badge>
@@ -137,9 +136,11 @@ Has been removed.
137136
The slot plus is now automatically in the component with an ods-button
138137

139138
### Input attributes changes
139+
140140
[Doc input](/docs/ods-components-form-elements-input--migration-from-17-x)
141141

142142
### Button attributes changes
143+
143144
[Doc button](/docs/ods-components-button--migration-from-17-x)
144145

145146
## Migration examples

packages/storybook/stories/components/radio/migration.from.17.x.mdx

-1
Original file line numberDiff line numberDiff line change
@@ -130,5 +130,4 @@ Group radio:
130130
<ods-radio value="A" name="group-radio"></ods-radio>
131131
<ods-radio value="B" name="group-radio"></ods-radio>
132132
<ods-radio value="C" name="group-radio"></ods-radio>
133-
134133
```

packages/storybook/stories/components/select/migration.from.17.x.mdx

-1
Original file line numberDiff line numberDiff line change
@@ -217,4 +217,3 @@ Required select:
217217
<option value="de">Germany</option>
218218
</ods-select>
219219
```
220-

packages/storybook/stories/components/switch/migration.from.17.x.mdx

+7-7
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ Id switch:
5050

5151
<!-- is now -->
5252

53-
<osds-switch-item input-id="id-1" value="1">Value 1</osds-switch-item>
53+
<ods-switch-item input-id="id-1" value="1">Value 1</ods-switch-item>
5454
```
5555

5656
Checked switch:
@@ -64,9 +64,9 @@ Checked switch:
6464
<!-- is now -->
6565

6666
<ods-switch name="checked-group">
67-
<osds-switch-item is-checked value="1">Value 1</osds-switch-item>
68-
<osds-switch-item value="2">Value 2</osds-switch-item>
69-
<osds-switch-item value="3">Value 3</osds-switch-item>
67+
<ods-switch-item is-checked value="1">Value 1</ods-switch-item>
68+
<ods-switch-item value="2">Value 2</ods-switch-item>
69+
<ods-switch-item value="3">Value 3</ods-switch-item>
7070
</ods-switch>
7171
```
7272

@@ -81,8 +81,8 @@ Disabled switch:
8181
<!-- is now -->
8282

8383
<ods-switch is-disabled name="disabled-group">
84-
<osds-switch-item value="1">Value 1</osds-switch-item>
85-
<osds-switch-item value="2">Value 2</osds-switch-item>
86-
<osds-switch-item value="3">Value 3</osds-switch-item>
84+
<ods-switch-item value="1">Value 1</ods-switch-item>
85+
<ods-switch-item value="2">Value 2</ods-switch-item>
86+
<ods-switch-item value="3">Value 3</ods-switch-item>
8787
</ods-switch>
8888
```

packages/storybook/stories/components/text/migration.from.17.x.mdx

+3-1
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ You can use the new `preset` attribute to obtain the same rendering.
2525
## Migration examples
2626

2727
Size & Level text:
28+
2829
```html
2930
<osds-text size="500" level="heading">My text</osds-text>
3031

@@ -34,6 +35,7 @@ Size & Level text:
3435
```
3536

3637
Color text:
38+
3739
```html
3840
<osds-text color="primary">My text</osds-text>
3941

@@ -49,6 +51,7 @@ Color text:
4951
```
5052

5153
breakSpaces text:
54+
5255
```html
5356
<osds-text break-spaces>My text</osds-text>
5457

@@ -62,4 +65,3 @@ breakSpaces text:
6265
}
6366
</style>
6467
```
65-

packages/storybook/stories/components/tooltip/migration.from.17.x.mdx

-1
Original file line numberDiff line numberDiff line change
@@ -131,4 +131,3 @@ Arrow tooltip:
131131
Tooltip content
132132
</ods-tooltip>
133133
```
134-

0 commit comments

Comments
 (0)