Skip to content

Commit

Permalink
fix: disable user-select on press buttons
Browse files Browse the repository at this point in the history
  • Loading branch information
ubermanu committed Jun 2, 2023
1 parent 196a680 commit 8ba1f67
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@

<button
use:longPress
class="inline-flex items-center rounded bg-neutral-200 p-2 shadow-sm hover:bg-neutral-300 dark:bg-neutral-700 dark:hover:bg-neutral-600"
class="inline-flex select-none items-center rounded bg-neutral-200 p-2 shadow-sm hover:bg-neutral-300 dark:bg-neutral-700 dark:hover:bg-neutral-600"
class:is-pressed={$pressed}
>
<slot />
Expand Down
2 changes: 1 addition & 1 deletion src/routes/(docs)/interaction/press/example/Button.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

<button
use:press
class="inline-flex items-center rounded bg-neutral-200 p-2 shadow-sm hover:bg-neutral-300 dark:bg-neutral-700 dark:hover:bg-neutral-600"
class="inline-flex select-none items-center rounded bg-neutral-200 p-2 shadow-sm hover:bg-neutral-300 dark:bg-neutral-700 dark:hover:bg-neutral-600"
class:is-pressed={$pressed}
>
<svelte:component this={$pressed ? Smile : Frown} class="mr-2 h-5 w-5" />
Expand Down

0 comments on commit 8ba1f67

Please sign in to comment.