diff --git a/src/lib/components/accordion/Accordion.svelte b/src/lib/components/accordion/Accordion.svelte index f1e73b4a..880a805e 100644 --- a/src/lib/components/accordion/Accordion.svelte +++ b/src/lib/components/accordion/Accordion.svelte @@ -6,7 +6,7 @@ import { exclude } from '../../utils/exclude'; const forwardEvents = forwardEventsBuilder(get_current_component()); - const defaultClass = 'rounded-md divide-y divide-border border border-border'; + const defaultClass = 'rounded-md divide-y divide-border border border-border stwui-accordion'; $: finalClass = twMerge(defaultClass, $$props.class); diff --git a/src/lib/components/accordion/Content.svelte b/src/lib/components/accordion/Content.svelte index 34ced6cf..cf643328 100644 --- a/src/lib/components/accordion/Content.svelte +++ b/src/lib/components/accordion/Content.svelte @@ -7,7 +7,7 @@ import { twMerge } from 'tailwind-merge'; const forwardEvents = forwardEventsBuilder(get_current_component()); - const defaultClass = 'border-t border-border text-secondary-content'; + const defaultClass = 'border-t border-border text-secondary-content stwui-accordion-content'; $: finalClass = twMerge(defaultClass, $$props.class); diff --git a/src/lib/components/accordion/Item.svelte b/src/lib/components/accordion/Item.svelte index 59799153..6e149989 100644 --- a/src/lib/components/accordion/Item.svelte +++ b/src/lib/components/accordion/Item.svelte @@ -14,7 +14,7 @@ $: itemOpen.set(open); const defaultClass = - 'bg-surface first-of-type:rounded-t-md last-of-type:rounded-b-md overflow-hidden outline-none focus:outline-none'; + 'bg-surface first-of-type:rounded-t-md last-of-type:rounded-b-md overflow-hidden outline-none focus:outline-none stwui-accordion-item'; $: finalClass = twMerge(defaultClass, $$props.class); setContext('accordion-open', itemOpen); diff --git a/src/lib/components/accordion/Title.svelte b/src/lib/components/accordion/Title.svelte index 255f4873..6f99579b 100644 --- a/src/lib/components/accordion/Title.svelte +++ b/src/lib/components/accordion/Title.svelte @@ -13,7 +13,7 @@ const open: Writable = getContext('accordion-open'); const defaultClass = - 'relative flex items-center w-full py-4 px-5 text-base text-content hover:text-primary text-left bg-surface border-0 rounded-none justify-between outline-none focus:outline-none'; + 'relative flex items-center w-full py-4 px-5 text-base text-content hover:text-primary text-left bg-surface border-0 rounded-none justify-between outline-none focus:outline-none stwui-accordion-title'; $: finalClass = twMerge(defaultClass, $$props.class); @@ -26,7 +26,10 @@ {...exclude($$props, ['use', 'class'])} > - +