From b7310bcf326ce5476180d47d6545b22b0844617b Mon Sep 17 00:00:00 2001 From: Lucio Torri Date: Tue, 7 Apr 2026 15:31:52 +0200 Subject: [PATCH] - Added select class to config file --- config/config.php | 2 ++ resources/views/multi-select.blade.php | 2 +- resources/views/search-select.blade.php | 2 +- resources/views/select.blade.php | 2 +- 4 files changed, 5 insertions(+), 3 deletions(-) diff --git a/config/config.php b/config/config.php index 8551a29..31a61c2 100644 --- a/config/config.php +++ b/config/config.php @@ -7,6 +7,8 @@ 'label_class' => 'form-label', 'checkbox_label_class' => 'form-check-label', + 'select_class' => 'form-select', + 'icons' => [ 'select' => 'bi bi-check-lg', 'unselect' => 'bi bi-x-lg', diff --git a/resources/views/multi-select.blade.php b/resources/views/multi-select.blade.php index 46a9083..2b649d5 100644 --- a/resources/views/multi-select.blade.php +++ b/resources/views/multi-select.blade.php @@ -41,7 +41,7 @@ class="ss-ghost-select">
diff --git a/resources/views/search-select.blade.php b/resources/views/search-select.blade.php index 67b7cbb..7b56eec 100644 --- a/resources/views/search-select.blade.php +++ b/resources/views/search-select.blade.php @@ -34,7 +34,7 @@ class="ss-ghost-select"> {{-- The element shown in the UI as if it's the actual select element --}}
+ @class([config('bs-blade-forms.select_class'),"ss-box"])>
@if(empty($placeholder)) diff --git a/resources/views/select.blade.php b/resources/views/select.blade.php index a56d11e..a175f56 100644 --- a/resources/views/select.blade.php +++ b/resources/views/select.blade.php @@ -5,7 +5,7 @@ @endif - merge(['class' => config('bs-blade-forms.select_class')]) }}> @if($emptyOption) @endif