Skip to content

Commit

Permalink
Fix broken input styles (#359)
Browse files Browse the repository at this point in the history
Co-authored-by: Taylor Otwell <[email protected]>
  • Loading branch information
octoper and taylorotwell authored Sep 15, 2024
1 parent a99877a commit d2c2327
Show file tree
Hide file tree
Showing 6 changed files with 10 additions and 6 deletions.
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion resources/views/components/forms/checkbox.blade.php
Original file line number Diff line number Diff line change
@@ -1 +1 @@
<input {{ $attributes->merge(['class' => 'text-red-600 border border-gray-400 focus:outline-none focus:ring-0 focus:border-red-600']) }} type="checkbox">
<input {{ $attributes->merge(['class' => 'form-checkbox text-red-600 border border-gray-400 focus:outline-none focus:ring-0 focus:border-red-600']) }} type="checkbox">
2 changes: 1 addition & 1 deletion resources/views/components/forms/input.blade.php
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
@props(['type' => 'text'])

<input {{ $attributes->merge(['class' => 'w-full block px-3 py-2 border border-gray-400 sm:text-sm focus:outline-none focus:ring-0 focus:border-red-600 transition']) }} type="{{ $type }}">
<input {{ $attributes->merge(['class' => 'form-input w-full block px-3 py-2 border border-gray-400 sm:text-sm focus:outline-none focus:ring-0 focus:border-red-600 transition']) }} type="{{ $type }}">
2 changes: 1 addition & 1 deletion resources/views/components/forms/textarea.blade.php
Original file line number Diff line number Diff line change
@@ -1 +1 @@
<textarea {{ $attributes->merge(['class' => 'w-full block px-3 py-2 border border-gray-400 sm:text-sm focus:outline-none focus:ring-0 focus:border-red-600 transition [field-sizing:content]']) }}></textarea>
<textarea {{ $attributes->merge(['class' => 'form-textarea w-full block px-3 py-2 border border-gray-400 sm:text-sm focus:outline-none focus:ring-0 focus:border-red-600 transition [field-sizing:content]']) }}></textarea>
2 changes: 1 addition & 1 deletion resources/views/docs.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@ class="absolute w-full transform origin-top shadow-sm z-10"
<select
id="version-switcher"
aria-label="Laravel version"
class="appearance-none flex-1 w-full px-0 py-1 placeholder-gray-900 tracking-wide bg-white focus:outline-none dark:bg-dark-700 dark:text-gray-400 dark:placeholder-gray-500"
class="appearance-none flex-1 w-full px-0 py-1 placeholder-gray-900 tracking-wide bg-white border-transparent focus:outline-none dark:bg-dark-700 dark:text-gray-400 dark:placeholder-gray-500"
@change="window.location = $event.target.value"
>
@foreach ($versions as $key => $display)
Expand Down
6 changes: 5 additions & 1 deletion tailwind.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -131,5 +131,9 @@ export default {
pattern: new RegExp(`bg-(${Object.keys(accentColors).join('|')})`),
}
],
plugins: [forms],
plugins: [
forms({
strategy: 'class',
})
],
}

0 comments on commit d2c2327

Please sign in to comment.