Skip to content

Commit

Permalink
Make copyable highlight on hover
Browse files Browse the repository at this point in the history
  • Loading branch information
rudolfs committed Sep 12, 2024
1 parent d7c811b commit 7c1f0fb
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/components/CopyableId.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,11 @@
<style>
.copyable-id {
cursor: pointer;
color: var(--color-foreground-dim);
}
.copyable-id:hover {
color: var(--color-foreground-contrast);
}
</style>

Expand All @@ -32,8 +37,7 @@
role="button"
tabindex="0"
onclick={copy}
class="copyable-id global-flex txt-small txt-monospace"
style:color="var(--color-foreground-dim)">
class="copyable-id global-flex txt-small txt-monospace">
{id}
<Icon name={icon} />
</div>

0 comments on commit 7c1f0fb

Please sign in to comment.