Skip to content

Commit

Permalink
fix(Divider): added class identifiers
Browse files Browse the repository at this point in the history
  • Loading branch information
N00nDay committed Oct 4, 2023
1 parent c8454b5 commit 6df7015
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/lib/components/divider/Divider.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
export let position: 'left' | 'center' | 'right' = 'center';
const defaultClass = 'relative my-4';
const defaultClass = 'relative my-4 stwui-divider';
$: finalClass = twMerge(defaultClass, $$props.class);
</script>

Expand Down
3 changes: 2 additions & 1 deletion src/lib/components/divider/Icon.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
return res[1];
}
const defaultClass = 'px-2 bg-surface text-content';
const defaultClass = 'px-2 bg-surface text-content stwui-divider-icon';
$: finalClass = twMerge(defaultClass, $$props.class);
</script>

Expand All @@ -51,6 +51,7 @@
'style'
])}
>
<!-- eslint-disable-next-line svelte/no-at-html-tags -->
{@html elements}
</svg>
</span>
2 changes: 1 addition & 1 deletion src/lib/components/divider/Label.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
import { exclude } from '../../utils/exclude';
const forwardEvents = forwardEventsBuilder(get_current_component());
const defaultClass = 'text-sm px-2 bg-surface text-content';
const defaultClass = 'text-sm px-2 bg-surface text-content stwui-divider-label';
$: finalClass = twMerge(defaultClass, $$props.class);
</script>

Expand Down

0 comments on commit 6df7015

Please sign in to comment.