Skip to content
This repository has been archived by the owner on Jan 2, 2024. It is now read-only.

Add missing .form-label classes in BS5 forms #92

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion resources/views/bootstrap-5/form-group.blade.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<div {!! $attributes->merge(['class' => ($hasError($name) ? 'is-invalid' : '')]) !!}>
<x-form-label :label="$label" />
<x-form-label :label="$label" class="form-label" />

<div class="@if($inline) d-flex flex-row flex-wrap inline-space @endif">
{!! $slot !!}
Expand Down
2 changes: 1 addition & 1 deletion resources/views/bootstrap-5/form-input-group.blade.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<div class="mb-3">
<x-form-label :label="$label"></x-form-label>
<x-form-label :label="$label" class="form-label"></x-form-label>

<div {!! $attributes->merge(['class' => 'input-group' . ($hasError($name) ? ' is-invalid' : '')]) !!}>
{!! $slot !!}
Expand Down
2 changes: 1 addition & 1 deletion resources/views/bootstrap-5/form-input.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
@if($floating) <div class="form-floating"> @endif

@if(!$floating)
<x-form-label :label="$label" :for="$attributes->get('id') ?: $id()" />
<x-form-label :label="$label" :for="$attributes->get('id') ?: $id()" class="form-label" />
@endif

<input
Expand Down
2 changes: 1 addition & 1 deletion resources/views/bootstrap-5/form-range.blade.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<x-form-label :label="$label" :for="$attributes->get('id') ?: $id()" />
<x-form-label :label="$label" :for="$attributes->get('id') ?: $id()" class="form-label" />

<input
{!! $attributes->merge(['class' => 'form-range' . ($hasError($name) ? ' is-invalid' : '')]) !!}
Expand Down
2 changes: 1 addition & 1 deletion resources/views/bootstrap-5/form-select.blade.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
@if($floating) <div class="form-floating"> @endif

@if(!$floating)
<x-form-label :label="$label" :for="$attributes->get('id') ?: $id()" />
<x-form-label :label="$label" :for="$attributes->get('id') ?: $id()" class="form-label" />
@endif

<select
Expand Down
2 changes: 1 addition & 1 deletion resources/views/bootstrap-5/form-textarea.blade.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
@if($floating) <div class="form-floating"> @endif

@if(!$floating)
<x-form-label :label="$label" :for="$attributes->get('id') ?: $id()" />
<x-form-label :label="$label" :for="$attributes->get('id') ?: $id()" class="form-label" />
@endif

<textarea
Expand Down