Skip to content

Commit

Permalink
Switch component fix -- event handlers for labels and switch button (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
mrloureed authored Jun 18, 2023
1 parent fc4f9be commit 284c8e9
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 6 deletions.
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@viamrobotics/prime",
"version": "0.2.12",
"version": "0.2.13",
"license": "Apache-2.0",
"type": "module",
"files": [
Expand Down
4 changes: 1 addition & 3 deletions src/elements/switch.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -43,9 +43,7 @@ const handleClick = () => {
>
<div class="flex items-center gap-1.5">
{#if label}
<p class="w-fit text-xs">
{label}
</p>
<button class="w-fit text-xs" on:click={handleClick}>{label}</button>
{/if}

{#if tooltip}
Expand Down

0 comments on commit 284c8e9

Please sign in to comment.