From 02161191d1d0d1d6fcf3a339386a4101c86e46b3 Mon Sep 17 00:00:00 2001 From: Nessim Abadi Date: Wed, 10 Mar 2021 18:33:13 -0500 Subject: [PATCH 1/4] Update Search.php --- src/Traits/Search.php | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/Traits/Search.php b/src/Traits/Search.php index 0a019594e..0854effe9 100644 --- a/src/Traits/Search.php +++ b/src/Traits/Search.php @@ -42,6 +42,13 @@ trait Search */ public $clearSearchButton = false; + /** + * The class applied to the clear button + * + * @var bool + */ + public $clearSearchButtonClass = false; + /** * Resets the search string. */ From c88e6a4944ed52b56afab778c2f42377fe33e2a5 Mon Sep 17 00:00:00 2001 From: Nessim Abadi Date: Wed, 10 Mar 2021 18:50:22 -0500 Subject: [PATCH 2/4] Uses the variable on the view --- resources/views/bootstrap-4/includes/options.blade.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/resources/views/bootstrap-4/includes/options.blade.php b/resources/views/bootstrap-4/includes/options.blade.php index 200092787..21e92697c 100644 --- a/resources/views/bootstrap-4/includes/options.blade.php +++ b/resources/views/bootstrap-4/includes/options.blade.php @@ -27,7 +27,7 @@ class="form-control" /> @if ($clearSearchButton)
- +
@endif From 59036b44563439f0319ece5724ae8ac2cd86de99 Mon Sep 17 00:00:00 2001 From: Nessim Abadi Date: Wed, 10 Mar 2021 18:52:27 -0500 Subject: [PATCH 3/4] Update Search.php --- src/Traits/Search.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Traits/Search.php b/src/Traits/Search.php index 0854effe9..1a8e1204a 100644 --- a/src/Traits/Search.php +++ b/src/Traits/Search.php @@ -47,7 +47,7 @@ trait Search * * @var bool */ - public $clearSearchButtonClass = false; + public $clearSearchButtonClass = 'btn btn-outline-dark'; /** * Resets the search string. From 4ebce1f98da97bf0c82997767eb07f78f0206659 Mon Sep 17 00:00:00 2001 From: Nessim Abadi Date: Wed, 10 Mar 2021 18:54:23 -0500 Subject: [PATCH 4/4] Fix styling --- src/Traits/Search.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Traits/Search.php b/src/Traits/Search.php index 1a8e1204a..2f05cb97f 100644 --- a/src/Traits/Search.php +++ b/src/Traits/Search.php @@ -43,7 +43,7 @@ trait Search public $clearSearchButton = false; /** - * The class applied to the clear button + * The class applied to the clear button. * * @var bool */