diff --git a/src/lib/components/toggle/ContentLeft.svelte b/src/lib/components/toggle/ContentLeft.svelte index 18b70b7..730aaaf 100644 --- a/src/lib/components/toggle/ContentLeft.svelte +++ b/src/lib/components/toggle/ContentLeft.svelte @@ -10,7 +10,7 @@ const name: string = getContext('toggle-name'); const toggleOff: () => void = getContext('toggle-off'); - const defaultClass = 'mr-3 cursor-pointer'; + const defaultClass = 'mr-3 cursor-pointer stwui-toggle-content-left'; $: finalClass = twMerge(defaultClass, $$props.class); diff --git a/src/lib/components/toggle/ContentRight.svelte b/src/lib/components/toggle/ContentRight.svelte index 115e015..78160e8 100644 --- a/src/lib/components/toggle/ContentRight.svelte +++ b/src/lib/components/toggle/ContentRight.svelte @@ -10,7 +10,7 @@ const name: string = getContext('toggle-name'); const toggleOn: () => void = getContext('toggle-on'); - const defaultClass = 'ml-3 cursor-pointer'; + const defaultClass = 'ml-3 cursor-pointer stwui-toggle-content-right'; $: finalClass = twMerge(defaultClass, $$props.class); diff --git a/src/lib/components/toggle/Description.svelte b/src/lib/components/toggle/Description.svelte index 78bcb0e..32861be 100644 --- a/src/lib/components/toggle/Description.svelte +++ b/src/lib/components/toggle/Description.svelte @@ -6,7 +6,7 @@ import { exclude } from '../../utils/exclude'; const forwardEvents = forwardEventsBuilder(get_current_component()); - const defaultClass = 'text-sm text-secondary-content'; + const defaultClass = 'text-sm text-secondary-content stwui-toggle-description'; $: finalClass = twMerge(defaultClass, $$props.class); diff --git a/src/lib/components/toggle/Label.svelte b/src/lib/components/toggle/Label.svelte index 38e81ca..e373ab6 100644 --- a/src/lib/components/toggle/Label.svelte +++ b/src/lib/components/toggle/Label.svelte @@ -6,7 +6,7 @@ import { exclude } from '../../utils/exclude'; const forwardEvents = forwardEventsBuilder(get_current_component()); - const defaultClass = 'text-sm font-medium text-content'; + const defaultClass = 'text-sm font-medium text-content stwui-toggle-label'; $: finalClass = twMerge(defaultClass, $$props.class); diff --git a/src/lib/components/toggle/Toggle.svelte b/src/lib/components/toggle/Toggle.svelte index 11c235d..df64caa 100644 --- a/src/lib/components/toggle/Toggle.svelte +++ b/src/lib/components/toggle/Toggle.svelte @@ -1,6 +1,12 @@ -
{error}
++ {error} +
{/if}