Skip to content

Commit

Permalink
Fix: disabled and readonly checkbox/radiobutton stories (#937)
Browse files Browse the repository at this point in the history
* Fix disabled args

* Fix readonly story

* Add stories for disabled and readonly with checked state
  • Loading branch information
bjarnef authored Nov 7, 2024
1 parent 86c4fce commit 547636d
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 2 deletions.
18 changes: 16 additions & 2 deletions packages/uui-checkbox/lib/uui-checkbox.story.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,13 +35,27 @@ export const Error: Story = {

export const Disabled: Story = {
args: {
disabled: false,
disabled: true,
},
};

export const DisabledChecked: Story = {
args: {
disabled: true,
checked: true,
},
};

export const Readonly: Story = {
args: {
readonly: false,
readonly: true,
},
};

export const ReadonlyChecked: Story = {
args: {
readonly: true,
checked: true,
},
};

Expand Down
14 changes: 14 additions & 0 deletions packages/uui-radio/lib/uui-radio.story.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,12 +30,26 @@ export const Disabled: Story = {
},
};

export const DisabledChecked: Story = {
args: {
disabled: true,
checked: true,
},
};

export const Readonly: Story = {
args: {
readonly: true,
},
};

export const ReadonlyChecked: Story = {
args: {
readonly: true,
checked: true,
},
};

export const Checked: Story = {
args: {
checked: true,
Expand Down

0 comments on commit 547636d

Please sign in to comment.