Skip to content

Commit

Permalink
fix: style and storybook of NeRadioSelection
Browse files Browse the repository at this point in the history
  • Loading branch information
andre8244 committed Apr 10, 2024
1 parent ef6410e commit d2ce1b3
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 10 deletions.
6 changes: 3 additions & 3 deletions src/components/NeRadioSelection.vue
Original file line number Diff line number Diff line change
Expand Up @@ -80,9 +80,9 @@ const cardClasses: Record<RadioCardSize, string> = {
}

const iconClasses: Record<RadioCardSize, string> = {
md: 'h-7 w-7 pr-4',
lg: 'h-10 w-10 pr-5',
xl: 'h-12 w-12 pr-6'
md: 'h-7 w-7 pr-2',
lg: 'h-10 w-10 pr-3',
xl: 'h-12 w-12 pr-5'
}

const textClasses: Record<RadioCardSize, string> = {
Expand Down
12 changes: 5 additions & 7 deletions stories/NeRadioSelection.stories.ts
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ export const Default: StoryObj<typeof NeRadioSelection> = {
return { args }
},
template: `
<NeRadioSelection v-model="args.modelValue" :label="args.label" :options="args.options" />
<NeRadioSelection v-bind="args" />
`
})
}
Expand All @@ -73,8 +73,7 @@ export const WithDescription: StoryObj<typeof NeRadioSelection> = {
return { args }
},
template: `
<NeRadioSelection v-model="args.modelValue" :description="args.description" :label="args.label"
:options="args.options" />
<NeRadioSelection v-bind="args" />
`
}),
args: {
Expand All @@ -89,8 +88,7 @@ export const CardPicker: StoryObj<typeof NeRadioSelection> = {
return { args }
},
template: `
<NeRadioSelection v-model="args.modelValue" :card="args.card" :grid-style="args.gridStyle"
:label="args.label" :options="args.options" />
<NeRadioSelection v-bind="args" />
`
}),
args: {
Expand Down Expand Up @@ -143,7 +141,7 @@ export const Disabled: StoryObj<typeof NeRadioSelection> = {
return { args }
},
template: `
<NeRadioSelection v-model="args.modelValue" :label="args.label" :options="args.options" />
<NeRadioSelection v-bind="args" />
`
}),
args: {
Expand All @@ -158,7 +156,7 @@ export const WithTooltip: StoryObj<typeof NeRadioSelection> = {
return { args }
},
template: `
<NeRadioSelection v-model="args.modelValue" :label="args.label" :options="args.options">\
<NeRadioSelection v-bind="args">\
<template #tooltip>\
<NeTooltip>\
<template #content>Tooltip</template>\
Expand Down

0 comments on commit d2ce1b3

Please sign in to comment.