Skip to content

Commit f1b3adc

Browse files
committed
optimize(packages): ui: optimize radio
1 parent 032e163 commit f1b3adc

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

packages/ui-variants/src/variants/radio.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ export const radioVariants = tv({
99
'peer size-4 shrink-0 rounded-full border shadow',
1010
'focus-visible:(outline outline-2 outline-offset-2) disabled:(cursor-not-allowed opacity-50)'
1111
],
12-
indicator: 'flex justify-center items-center',
12+
indicator: 'flex justify-center items-center size-full',
1313
group: 'flex gap-2',
1414
icon: 'size-2.5 fill-current'
1515
},

src/views/ui/modules/radio.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,9 @@ function createRadioGroupItems(): RadioGroupItemProps[] {
2828
</div>
2929
<div class="py-12px text-18px">Radio Group Vertical</div>
3030
<SRadioGroup orientation="vertical" :items="items" />
31-
<div class="py-12px text-18px">Checkbox Group Disabled All</div>
31+
<div class="py-12px text-18px">Radio Group Disabled All</div>
3232
<SRadioGroup :items="items" disabled />
33-
<div class="py-12px text-18px">Checkbox Group Disabled Item</div>
33+
<div class="py-12px text-18px">Radio Group Disabled Item</div>
3434
<SRadioGroup>
3535
<SRadio v-for="item in items" :key="item.value" v-bind="item" :disabled="item.value === '2'" />
3636
</SRadioGroup>

0 commit comments

Comments
 (0)