Skip to content

Commit

Permalink
feat(Checkbox): config label, required and help size
Browse files Browse the repository at this point in the history
  • Loading branch information
benjamincanac committed Nov 19, 2023
1 parent d4f1b5e commit a1b38c4
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/runtime/components/forms/Checkbox.vue
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
@change="onChange"
>
</div>
<div v-if="label || $slots.label" class="ms-3 text-sm">
<div v-if="label || $slots.label" class="ms-3 flex flex-col">
<label :for="inputId" :class="ui.label">
<slot name="label">{{ label }}</slot>
<span v-if="required" :class="ui.required">*</span>
Expand Down
6 changes: 3 additions & 3 deletions src/runtime/ui.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -830,9 +830,9 @@ export const checkbox = {
background: 'bg-white dark:bg-gray-900',
border: 'border border-gray-300 dark:border-gray-700',
ring: 'focus-visible:ring-2 focus-visible:ring-{color}-500 dark:focus-visible:ring-{color}-400 focus-visible:ring-offset-2 focus-visible:ring-offset-white dark:focus-visible:ring-offset-gray-900',
label: 'font-medium text-gray-700 dark:text-gray-200',
required: 'text-red-500 dark:text-red-400',
help: 'text-gray-500 dark:text-gray-400',
label: 'text-sm font-medium text-gray-700 dark:text-gray-200',
required: 'text-sm text-red-500 dark:text-red-400',
help: 'text-sm text-gray-500 dark:text-gray-400',
default: {
color: 'primary'
}
Expand Down

1 comment on commit a1b38c4

@vercel
Copy link

@vercel vercel bot commented on a1b38c4 Nov 19, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

ui – ./

ui-git-dev-nuxt-js.vercel.app
ui-nuxt-js.vercel.app
ui.nuxt.com

Please sign in to comment.