Skip to content

Commit

Permalink
Fix other storybook examples from #4931
Browse files Browse the repository at this point in the history
  • Loading branch information
andrey-medvedev-vk committed Feb 25, 2025
1 parent 3cd4332 commit 716acc8
Show file tree
Hide file tree
Showing 6 changed files with 29 additions and 5 deletions.
6 changes: 5 additions & 1 deletion packages/vkui/src/components/Checkbox/Checkbox.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,11 @@ export default story;

type Story = StoryObj<CheckboxProps>;

export const Playground: Story = {};
export const Playground: Story = {
args: {
'aria-label': 'Я учавствую в сборе',
},
};

export const WithText: Story = {
...Playground,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ export const Playground: Story = {
render: (args) => (
<FormField {...args}>
<input
aria-label="Напишите сообщение..."
style={{
position: 'relative',
display: 'block',
Expand Down
9 changes: 8 additions & 1 deletion packages/vkui/src/components/FormField/Readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,14 @@ const CustomInput = () => {
background: 'transparent',
};

return <input type="text" style={style} placeholder="Кастомный инпут" />;
return (
<input
type="text"
style={style}
placeholder="Кастомный инпут"
aria-label="Напишите сообщение..."
/>
);
};

<Example />;
Expand Down
6 changes: 5 additions & 1 deletion packages/vkui/src/components/Input/Input.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,8 @@ export default story;

type Story = StoryObj<InputProps>;

export const Playground: Story = {};
export const Playground: Story = {
args: {
'aria-label': 'Напишите сообщение...',
},
};
6 changes: 5 additions & 1 deletion packages/vkui/src/components/Switch/Switch.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,11 @@ export default story;

type Story = StoryObj<SwitchProps>;

export const Playground: Story = {};
export const Playground: Story = {
args: {
'aria-label': 'Комментарии к записям',
},
};

export const WithSimpleCellLabel: Story = {
render: function Render(args) {
Expand Down
6 changes: 5 additions & 1 deletion packages/vkui/src/components/Textarea/Textarea.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -21,4 +21,8 @@ export default story;

type Story = StoryObj<TextareaProps>;

export const Playground: Story = {};
export const Playground: Story = {
args: {
'aria-label': 'Любимая музыка',
},
};

0 comments on commit 716acc8

Please sign in to comment.