Skip to content

Commit

Permalink
Use data-theme dark
Browse files Browse the repository at this point in the history
  • Loading branch information
laurakwhit committed Sep 3, 2024
1 parent 95c9ae5 commit 467f1f4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/lib/holocene/code-block.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,8 @@
<CopyButton
{copyIconTitle}
{copySuccessIconTitle}
class="absolute right-1 top-1 text-slate-300 hover:bg-slate-900 focus-visible:bg-slate-900 active:bg-slate-800"
class="absolute right-1 top-1 text-secondary"
data-theme="dark"
on:click={handleCopy}
copied={$copied}
/>
Expand Down
1 change: 1 addition & 0 deletions src/lib/holocene/copyable/button.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
copySuccessIconTitle: string;
copied: boolean;
'data-testid'?: string;
'data-theme'?: string;
}
export let copyIconTitle: string;
Expand Down

0 comments on commit 467f1f4

Please sign in to comment.