fix radio item color
This commit is contained in:
parent
2706501f8e
commit
22ca4ba796
|
@ -2,10 +2,10 @@
|
|||
<div class="relative">
|
||||
<div class="grid grid-cols-1 gap-2 mt-3">
|
||||
<label v-for="(option, index) in field.options" :key="index" :for="`${field.key}-${index}`" class="block relative flex items-center">
|
||||
<input type="radio" :name="field.key" :value="option" v-model="inner" class="peer absolute invisible" :id="`${field.key}-${index}`" />
|
||||
<input :id="`${field.key}-${index}`" v-model="inner" type="radio" :name="field.key" :value="option" class="peer absolute invisible" />
|
||||
<span class="border-neutral-400 border-4 border-solid peer-checked:border-primary absolute left-0 w-6 h-6 rounded-full block"></span>
|
||||
<span class="peer-checked:bg-primary left-2 w-2 h-2 absolute rounded-full block"></span>
|
||||
<span class="pl-8" v-text="option"></span>
|
||||
<span class="pl-8 text-gray-600" v-text="option"></span>
|
||||
</label>
|
||||
</div>
|
||||
|
||||
|
|
Loading…
Reference in New Issue