Skip to content

Commit c1ef218

Browse files
authored
Merge pull request #21 from lara-zeus/improve-ui
improve active according styling
2 parents 2baef9b + 0335e43 commit c1ef218

File tree

1 file changed

+10
-7
lines changed

1 file changed

+10
-7
lines changed

resources/views/components/accordion/item.blade.php

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -28,10 +28,6 @@ class="fi-accordion-item group"
2828
type="button"
2929
@click="setActiveAccordion(id)"
3030
class="flex items-center justify-between w-full p-4 text-start select-none"
31-
:class="{
32-
'bg-gray-100 dark:bg-gray-800': activeAccordion == id,
33-
'bg-white dark:bg-gray-800/50': activeAccordion != id,
34-
}"
3531
>
3632
<span
3733
:class="{
@@ -43,9 +39,10 @@ class="flex gap-2 font-medium items-center justify-center text-gray-500 group-ho
4339
@if ($icon !== null)
4440
<x-filament::icon
4541
:icon="$icon"
46-
class="fi-accordion-item-icon h-6 w-6 shrink-0 transition duration-75"
42+
class="fi-accordion-item-icon h-5 w-5 shrink-0 transition duration-75"
4743
/>
4844
@endif
45+
4946
{{ $label }}
5047

5148
@if (filled($badge))
@@ -54,8 +51,14 @@ class="fi-accordion-item-icon h-6 w-6 shrink-0 transition duration-75"
5451
</x-filament::badge>
5552
@endif
5653
</span>
57-
<span :class="{ 'rotate-180': activeAccordion == id }">
58-
@svg('heroicon-m-chevron-down','w-4 h-4 duration-200 ease-out')
54+
<span
55+
class="duration-200 ease-out"
56+
:class="{ 'rotate-180': activeAccordion == id }"
57+
>
58+
<x-filament::icon
59+
class="w-4 h-4"
60+
icon="heroicon-m-chevron-down"
61+
/>
5962
</span>
6063
</button>
6164
<div x-show="activeAccordion == id" x-collapse x-cloak>

0 commit comments

Comments
 (0)