override class added for textarea
This commit is contained in:
parent
d3551a7f34
commit
608b378230
@ -4,7 +4,7 @@
|
||||
label="{{ trans_choice('general.notes', 2) }}"
|
||||
:value="$notes"
|
||||
not-required
|
||||
class="w-full text-sm px-0 py-2.5 mt-1 border-light-gray text-black placeholder-light-gray disabled:bg-gray-200 focus:outline-none focus:ring-transparent focus:border-purple border-0 bg-transparent rounded-none resize-none"
|
||||
override="w-full text-sm px-0 py-2.5 mt-1 border-light-gray text-black placeholder-light-gray disabled:bg-gray-200 focus:outline-none focus:ring-transparent focus:border-purple border-0 bg-transparent rounded-none resize-none"
|
||||
form-label-class="lg:text-lg"
|
||||
form-group-class="border-b pb-2 mb-3.5"
|
||||
rows="1"
|
||||
|
@ -1,7 +1,16 @@
|
||||
@php
|
||||
$class= 'w-full h-24 text-sm px-3 py-2.5 mt-1 rounded-lg border border-light-gray text-black placeholder-light-gray bg-white disabled:bg-gray-200 focus:outline-none focus:ring-transparent focus:border-purple';
|
||||
|
||||
if ($attributes->has('override')) {
|
||||
$class = $attributes->get('override');
|
||||
} elseif ($attributes->get('class')) {
|
||||
$class .= ' ' . $attributes->get('class');
|
||||
}
|
||||
@endphp
|
||||
<textarea
|
||||
name="{{ $name }}"
|
||||
id="{{ $id }}"
|
||||
class="w-full h-24 text-sm px-3 py-2.5 mt-1 rounded-lg border border-light-gray text-black placeholder-light-gray bg-white disabled:bg-gray-200 focus:outline-none focus:ring-transparent focus:border-purple"
|
||||
class="{{ $class }}"
|
||||
rows="{{ $rows }}"
|
||||
placeholder="{{ $placeholder }}"
|
||||
@if ($disabled)
|
||||
|
Loading…
x
Reference in New Issue
Block a user