minor improvement in showing custom fields in product page and boboko-core sourced locally

This commit is contained in:
elvira
2026-09-25 22:39:14 +03:00
parent ab7e560a3d
commit 8e186fc231
4 changed files with 44 additions and 13 deletions
@@ -1,6 +1,8 @@
@props([
'label' => null,
'labelDescription' => null,
'labelClass' => null,
'hint' => null,
'for' => null,
'description' => null,
'error' => null,
@@ -10,9 +12,23 @@
<div {{ $attributes->merge(['class' => 'flex flex-col gap-2']) }}>
@if ($label)
{{-- With a hint, label + hint are grouped so the hint sits tight
under the label, with the usual gap before the input. The input
should reference {for}-hint in its aria-describedby. --}}
@if ($hint) <div class="flex flex-col gap-1"> @endif
<label
@if ($for) for="{{ $for }}" @endif
@if ($labelClass) class="{{ $labelClass }}" @endif
>{{ $label }}@if ($required)<span class="ml-1" aria-hidden="true">*</span>@endif @if ($labelDescription) <span class="text-sm text-neutral-500">({{ $labelDescription }})</span> @endif</label>
@if ($hint)
<p
@if ($for) id="{{ $for }}-hint" @endif
class="text-sm text-neutral-500"
>{{ $hint }}</p>
</div>
@endif
@endif
{{ $slot }}