Skip to content

Commit

Permalink
Merge pull request #261 from appwrite/feat-secret-tooltip
Browse files Browse the repository at this point in the history
feat: add tooltip to secret component
  • Loading branch information
TorstenDittmann authored Feb 8, 2023
2 parents b927558 + 0d82e72 commit 7fc2853
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/lib/components/secret.svelte
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<script lang="ts">
import { tooltip } from '$lib/actions/tooltip';
import { Copy } from '.';
export let show = false;
Expand All @@ -16,7 +17,8 @@
class="interactive-text-output-button"
aria-label="show hidden text"
type="button"
on:click={() => (show = !show)}>
on:click={() => (show = !show)}
use:tooltip={{ content: show ? 'Hide secret' : 'Show secret', hideOnClick: false }}>
<span class:icon-eye-off={show} class:icon-eye={!show} aria-hidden="true" />
</button>
<Copy {value}>
Expand Down

1 comment on commit 7fc2853

@vercel
Copy link

@vercel vercel bot commented on 7fc2853 Feb 8, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.