From 5f24cfc006a44d52acb41a509768fd4c862f57d9 Mon Sep 17 00:00:00 2001 From: php coder Date: Sun, 11 Feb 2024 14:05:12 +0300 Subject: [PATCH] Improve UI improve list UI and icons colors --- resources/views/infolists/list.blade.php | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/resources/views/infolists/list.blade.php b/resources/views/infolists/list.blade.php index ece2f76..248a172 100644 --- a/resources/views/infolists/list.blade.php +++ b/resources/views/infolists/list.blade.php @@ -24,8 +24,8 @@ @endphp @endif @php - $color = (isset($item['color']) && filled($item['color'])) ? $item['color'] : 'primary'; - $iconColor = (isset($item['iconColor']) && filled($item['iconColor'])) ? $item['iconColor'] : 'primary'; + $color = (isset($item['color']) && filled($item['color'])) ? $item['color'] : 'gray'; + $iconColor = (isset($item['iconColor']) && filled($item['iconColor'])) ? $item['iconColor'] : 'gray'; @endphp
  • - $iconColor !== 'gray', ]) @class([ - 'h-5 w-5 flex justify-center items-center rounded-full', + '', match ($iconColor) { - 'gray' => 'bg-gray-600 dark:bg-gray-500 text-white dark:text-gray-500', - default => 'bg-custom-600 dark:bg-custom-500 text-white dark:text-custom-500', + 'gray' => 'text-gray-800 dark:text-gray-500', + default => 'text-custom-800 dark:text-custom-500', }, ]) > @@ -88,4 +88,4 @@ --}} @endforeach - \ No newline at end of file +