{#each entries as entry, index}
-
- toggleItem(index)}
+ class="flex w-full bg-ecsess-600/20 items-center gap-3 px-3 py-2 text-left text-lg font-bold hover:bg-ecsess-500/40 transition-colors duration-200 {isOpen(index)
+ ? 'rounded-t-md'
+ : 'rounded-md'}"
>
{entry.question}
-
+
-
-
+
+
-
- {#snippet element(attributes)}
- {#if !attributes.hidden}
-
- {entry.answer}
-
- {/if}
- {/snippet}
-
-
+ {#if isOpen(index)}
+
+ {entry.answer}
+
+ {/if}
+
{/each}
-