Skip to content

Commit

Permalink
fix(RadioGroup): add missing fieldset config
Browse files Browse the repository at this point in the history
Resolves #1472
  • Loading branch information
benjamincanac committed Mar 4, 2024
1 parent 272c19d commit 2d64b50
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/runtime/components/forms/RadioGroup.vue
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<template>
<div :class="ui.wrapper">
<fieldset v-bind="attrs">
<fieldset v-bind="attrs" :class="ui.fieldset">
<legend v-if="legend || $slots.legend" :class="ui.legend">
<slot name="legend">
{{ legend }}
Expand Down
3 changes: 2 additions & 1 deletion src/runtime/ui.config/forms/radioGroup.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
export default {
wrapper: 'relative flex items-start',
fieldset: '',
legend: 'text-sm font-medium text-gray-700 dark:text-gray-200 mb-1',
default: {
color: 'primary'
}
}
}

0 comments on commit 2d64b50

Please sign in to comment.