Default form-label for the label css on select components

This commit is contained in:
2024-12-04 16:45:16 +11:00
parent b239f52719
commit 8c8283503f
2 changed files with 2 additions and 2 deletions

View File

@@ -1,6 +1,6 @@
<div class="form-group">
@if(isset($label))
<label {{ $attributes->only(['class']) }} for="{{ $id ?? $name }}">{{ $label }}</label>
<label {{ $attributes->only(['class'])->merge(['class'=>'form-label']) }} for="{{ $id ?? $name }}">{{ $label }}</label>
@endisset
<div class="input-group has-validation">
@if(isset($icon) || isset($prepend))