diff --git a/packages/storybook/src/react-components/form-field-radio-group/form-field-radio-group.stories.tsx b/packages/storybook/src/react-components/form-field-radio-group/form-field-radio-group.stories.tsx index 1d4fdbfb..6beccab4 100644 --- a/packages/storybook/src/react-components/form-field-radio-group/form-field-radio-group.stories.tsx +++ b/packages/storybook/src/react-components/form-field-radio-group/form-field-radio-group.stories.tsx @@ -215,11 +215,11 @@ export const Visual = createVisualRegressionStory(() => (

Light

- +

Dark

- +
)); diff --git a/packages/storybook/src/react-components/form-field-radio-group/visual/States.tsx b/packages/storybook/src/react-components/form-field-radio-group/visual/States.tsx index 6320ed3c..5faff29e 100644 --- a/packages/storybook/src/react-components/form-field-radio-group/visual/States.tsx +++ b/packages/storybook/src/react-components/form-field-radio-group/visual/States.tsx @@ -6,11 +6,11 @@ const options = [ { value: '3', label: 'Radio Option 3' }, ]; -export const VisualStates = () => ( +export const VisualStates = ({ mode }: { mode: 'light' | 'dark' }) => ( <> - + @@ -18,23 +18,23 @@ export const VisualStates = () => ( )} />
- +
- +
Object.assign({}, { ...option }, { checked: option.value === 2 }))} + options={options.map((option) => Object.assign({}, { ...option }, { checked: option.value === '2' }))} /> Object.assign({}, { ...option }, { disabled: option.value === 2 }))} + options={options.map((option) => Object.assign({}, { ...option }, { disabled: option.value === '2' }))} />