From 547636d0805f9e709757a04dde8d8be2c77daab9 Mon Sep 17 00:00:00 2001 From: Bjarne Fyrstenborg Date: Thu, 7 Nov 2024 16:23:47 +0100 Subject: [PATCH] Fix: disabled and readonly checkbox/radiobutton stories (#937) * Fix disabled args * Fix readonly story * Add stories for disabled and readonly with checked state --- .../uui-checkbox/lib/uui-checkbox.story.ts | 18 ++++++++++++++++-- packages/uui-radio/lib/uui-radio.story.ts | 14 ++++++++++++++ 2 files changed, 30 insertions(+), 2 deletions(-) diff --git a/packages/uui-checkbox/lib/uui-checkbox.story.ts b/packages/uui-checkbox/lib/uui-checkbox.story.ts index 2ae27a92c..b3e0822ab 100644 --- a/packages/uui-checkbox/lib/uui-checkbox.story.ts +++ b/packages/uui-checkbox/lib/uui-checkbox.story.ts @@ -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, }, }; 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,