Skip to content

Commit 547636d

Browse files
authored
Fix: disabled and readonly checkbox/radiobutton stories (#937)
* Fix disabled args * Fix readonly story * Add stories for disabled and readonly with checked state
1 parent 86c4fce commit 547636d

File tree

2 files changed

+30
-2
lines changed

2 files changed

+30
-2
lines changed

packages/uui-checkbox/lib/uui-checkbox.story.ts

Lines changed: 16 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,13 +35,27 @@ export const Error: Story = {
3535

3636
export const Disabled: Story = {
3737
args: {
38-
disabled: false,
38+
disabled: true,
39+
},
40+
};
41+
42+
export const DisabledChecked: Story = {
43+
args: {
44+
disabled: true,
45+
checked: true,
3946
},
4047
};
4148

4249
export const Readonly: Story = {
4350
args: {
44-
readonly: false,
51+
readonly: true,
52+
},
53+
};
54+
55+
export const ReadonlyChecked: Story = {
56+
args: {
57+
readonly: true,
58+
checked: true,
4559
},
4660
};
4761

packages/uui-radio/lib/uui-radio.story.ts

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,12 +30,26 @@ export const Disabled: Story = {
3030
},
3131
};
3232

33+
export const DisabledChecked: Story = {
34+
args: {
35+
disabled: true,
36+
checked: true,
37+
},
38+
};
39+
3340
export const Readonly: Story = {
3441
args: {
3542
readonly: true,
3643
},
3744
};
3845

46+
export const ReadonlyChecked: Story = {
47+
args: {
48+
readonly: true,
49+
checked: true,
50+
},
51+
};
52+
3953
export const Checked: Story = {
4054
args: {
4155
checked: true,

0 commit comments

Comments
 (0)