From ba9499bd25fa9b9bf8faf9365fe911540bca6f2c Mon Sep 17 00:00:00 2001 From: Bjarne Fyrstenborg Date: Fri, 18 Oct 2024 15:03:21 +0200 Subject: [PATCH 1/3] Fix disabled args --- packages/uui-checkbox/lib/uui-checkbox.story.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/uui-checkbox/lib/uui-checkbox.story.ts b/packages/uui-checkbox/lib/uui-checkbox.story.ts index 2ae27a92c..9e756554a 100644 --- a/packages/uui-checkbox/lib/uui-checkbox.story.ts +++ b/packages/uui-checkbox/lib/uui-checkbox.story.ts @@ -35,7 +35,7 @@ export const Error: Story = { export const Disabled: Story = { args: { - disabled: false, + disabled: true, }, }; From 21cb2845de65ddc00cbf1bbbe0c27a23fb341d40 Mon Sep 17 00:00:00 2001 From: Bjarne Fyrstenborg Date: Fri, 18 Oct 2024 15:05:21 +0200 Subject: [PATCH 2/3] Fix readonly story --- packages/uui-checkbox/lib/uui-checkbox.story.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/uui-checkbox/lib/uui-checkbox.story.ts b/packages/uui-checkbox/lib/uui-checkbox.story.ts index 9e756554a..b3676c855 100644 --- a/packages/uui-checkbox/lib/uui-checkbox.story.ts +++ b/packages/uui-checkbox/lib/uui-checkbox.story.ts @@ -41,7 +41,7 @@ export const Disabled: Story = { export const Readonly: Story = { args: { - readonly: false, + readonly: true, }, }; From d5c63950f821b2fa86ac8199435f65ead666638e Mon Sep 17 00:00:00 2001 From: Bjarne Fyrstenborg Date: Fri, 18 Oct 2024 15:07:08 +0200 Subject: [PATCH 3/3] Add stories for disabled and readonly with checked state --- packages/uui-checkbox/lib/uui-checkbox.story.ts | 14 ++++++++++++++ packages/uui-radio/lib/uui-radio.story.ts | 14 ++++++++++++++ 2 files changed, 28 insertions(+) diff --git a/packages/uui-checkbox/lib/uui-checkbox.story.ts b/packages/uui-checkbox/lib/uui-checkbox.story.ts index b3676c855..b3e0822ab 100644 --- a/packages/uui-checkbox/lib/uui-checkbox.story.ts +++ b/packages/uui-checkbox/lib/uui-checkbox.story.ts @@ -39,12 +39,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 Label: Story = { args: { label: 'Label', diff --git a/packages/uui-radio/lib/uui-radio.story.ts b/packages/uui-radio/lib/uui-radio.story.ts index a4a446f40..a09c44124 100644 --- a/packages/uui-radio/lib/uui-radio.story.ts +++ b/packages/uui-radio/lib/uui-radio.story.ts @@ -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,