Skip to content

Commit ef7dbaa

Browse files
authored
Add hover to chevron in Accordion (#1049)
1 parent bf849be commit ef7dbaa

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/lib/holocene/accordion.svelte

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@
4747
id="{id}-trigger"
4848
aria-expanded={open}
4949
aria-controls="{id}-content"
50-
class="accordion-open flex w-full flex-col"
50+
class="flex w-full flex-col"
5151
disabled={disabled || readOnly}
5252
type="button"
5353
on:click={toggleAccordion}
@@ -64,7 +64,9 @@
6464
{#if !readOnly}
6565
<Icon
6666
name={open ? 'chevron-up' : 'chevron-down'}
67-
class={disabled ? 'text-gray-500' : 'text-primary'}
67+
class="rounded-full from-blue-100 to-purple-100 hover:bg-gradient-to-br {disabled
68+
? 'text-gray-500'
69+
: 'text-primary'}"
6870
/>
6971
{/if}
7072
</div>

0 commit comments

Comments
 (0)