Skip to content

Commit

Permalink
fix(module): use @tailwindcss/forms class strategy (#278)
Browse files Browse the repository at this point in the history
  • Loading branch information
benjamincanac committed Jun 12, 2023
1 parent 4741532 commit be5f352
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,7 @@ export default defineNuxtModule<ModuleOptions>({
config: {
darkMode: 'class',
plugins: [
require('@tailwindcss/forms'),
require("@tailwindcss/forms")({ strategy: 'class' }),
require('@tailwindcss/aspect-ratio'),
require('@tailwindcss/typography'),
require('@tailwindcss/container-queries')
Expand Down
1 change: 1 addition & 0 deletions src/runtime/components/forms/Checkbox.vue
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
:checked="checked"
:indeterminate="indeterminate"
type="checkbox"
class="form-checkbox"
:class="[ui.base, ui.custom]"
@focus="$emit('focus', $event)"
@blur="$emit('blur', $event)"
Expand Down
1 change: 1 addition & 0 deletions src/runtime/components/forms/Input.vue
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
:readonly="readonly"
:autocomplete="autocomplete"
:spellcheck="spellcheck"
class="form-input"
:class="inputClass"
@input="onInput"
@focus="$emit('focus', $event)"
Expand Down
1 change: 1 addition & 0 deletions src/runtime/components/forms/Radio.vue
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
:value="value"
:disabled="disabled"
type="radio"
class="form-radio"
:class="[ui.base, ui.custom]"
@focus="$emit('focus', $event)"
@blur="$emit('blur', $event)"
Expand Down
1 change: 1 addition & 0 deletions src/runtime/components/forms/Select.vue
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
:value="modelValue"
:required="required"
:disabled="disabled || loading"
class="form-select"
:class="selectClass"
@input="onInput"
>
Expand Down
1 change: 1 addition & 0 deletions src/runtime/components/forms/Textarea.vue
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
:disabled="disabled"
:placeholder="placeholder"
:autocomplete="autocomplete"
class="form-textarea"
:class="textareaClass"
@input="onInput"
@focus="$emit('focus', $event)"
Expand Down

1 comment on commit be5f352

@vercel
Copy link

@vercel vercel bot commented on be5f352 Jun 12, 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-nuxtlabs.vercel.app
ui.nuxtlabs.com
ui-git-dev-nuxtlabs.vercel.app

Please sign in to comment.