Skip to content

Commit

Permalink
Merge branch 'main' into da-css-reset
Browse files Browse the repository at this point in the history
  • Loading branch information
meodai authored Oct 25, 2023
2 parents 231ea65 + 9335740 commit 733c429
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/lib/components/SegmentButton.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
import { getContext } from "svelte";
import { SEGMENT_CONTEXT_KEY, type SegmentContext } from "$lib/types/segment";
export let testId: string | undefined = undefined;
export let segmentId: symbol;
const { store } = getContext<SegmentContext>(SEGMENT_CONTEXT_KEY);
Expand All @@ -18,7 +19,7 @@
$: selected = $store.id === segmentId;
</script>

<div bind:this={element} class="segment-button">
<div bind:this={element} class="segment-button" data-tid={testId}>
<button
on:click={onClick}
role="tab"
Expand Down

0 comments on commit 733c429

Please sign in to comment.