Skip to content

Commit

Permalink
fix(switch): test react & vue
Browse files Browse the repository at this point in the history
  • Loading branch information
aesteves60 authored and dpellier committed Jul 29, 2024
1 parent d42d5a1 commit 48fc876
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 16 deletions.
16 changes: 8 additions & 8 deletions packages/ods/react/tests/_app/src/components/ods-switch.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,16 +8,16 @@ const Switch = () => {

return (
<>
<OdsSwitch onOdsChange={ onOdsChange }>
<OdsSwitchItem name="switch-radio" input-id="label1" value="1">label1</OdsSwitchItem>
<OdsSwitchItem name="switch-radio" input-id="label2" value="2">label2</OdsSwitchItem>
<OdsSwitchItem name="switch-radio" input-id="label3" value="3">label3</OdsSwitchItem>
<OdsSwitch onOdsChange={ onOdsChange } name="switch-radio">
<OdsSwitchItem value="1">label1</OdsSwitchItem>
<OdsSwitchItem value="2">label2</OdsSwitchItem>
<OdsSwitchItem value="3">label3</OdsSwitchItem>
</OdsSwitch>

<OdsSwitch isDisabled onOdsChange={ onOdsChange }>
<OdsSwitchItem name="switch-radio-disabled" input-id="disabled1" value="1">label1</OdsSwitchItem>
<OdsSwitchItem name="switch-radio-disabled" input-id="disabled2" value="2">label2</OdsSwitchItem>
<OdsSwitchItem name="switch-radio-disabled" input-id="disabled3" value="3">label3</OdsSwitchItem>
<OdsSwitch isDisabled onOdsChange={ onOdsChange } name="switch-radio-disabled" >
<OdsSwitchItem value="1">label1</OdsSwitchItem>
<OdsSwitchItem value="2">label2</OdsSwitchItem>
<OdsSwitchItem value="3">label3</OdsSwitchItem>
</OdsSwitch>
</>
);
Expand Down
16 changes: 8 additions & 8 deletions packages/ods/vue/tests/_app/src/components/ods-switch.vue
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
<template>
<OdsSwitch @onOdsChange="onOdsChange">
<OdsSwitchItem name="switch-radio" is-checked input-id="label1" value="1">label1</OdsSwitchItem>
<OdsSwitchItem name="switch-radio" input-id="label2" value="2">label2</OdsSwitchItem>
<OdsSwitchItem name="switch-radio" input-id="label3" value="3">label3</OdsSwitchItem>
<OdsSwitch @onOdsChange="onOdsChange" name="switch-radio">
<OdsSwitchItem is-checked value="1">label1</OdsSwitchItem>
<OdsSwitchItem value="2">label2</OdsSwitchItem>
<OdsSwitchItem value="3">label3</OdsSwitchItem>
</OdsSwitch>

<OdsSwitch @onOdsChange="onOdsChange" isDisabled>
<OdsSwitchItem name="switch-radio-disabled" is-checked input-id="disabled1" value="1">label1</OdsSwitchItem>
<OdsSwitchItem name="switch-radio-disabled" input-id="disabled2" value="2">label2</OdsSwitchItem>
<OdsSwitchItem name="switch-radio-disabled" input-id="disabled3" value="3">label3</OdsSwitchItem>
<OdsSwitch @onOdsChange="onOdsChange" isDisabled name="switch-radio-disabled">
<OdsSwitchItem is-checked value="1">label1</OdsSwitchItem>
<OdsSwitchItem value="2">label2</OdsSwitchItem>
<OdsSwitchItem value="3">label3</OdsSwitchItem>
</OdsSwitch>
</template>

Expand Down

0 comments on commit 48fc876

Please sign in to comment.