Skip to content

Commit

Permalink
feat: added optional properties
Browse files Browse the repository at this point in the history
Signed-off-by: Evzen Gasta <[email protected]>
  • Loading branch information
gastoner committed Dec 17, 2024
1 parent 9bcbf15 commit 15f85ac
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions packages/main/src/plugin/color-registry.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1000,6 +1000,10 @@ export class ColorRegistry {
dark: colorPalette.white,
light: colorPalette.black,
});
this.registerColor(`${button}close-hover-bg`, {
dark: colorPalette.white + '2',
light: colorPalette.black + '2',
});
this.registerColor(`${button}link-text`, {
dark: colorPalette.purple[400],
light: colorPalette.purple[700],
Expand Down
2 changes: 1 addition & 1 deletion packages/ui/src/lib/button/CloseButton.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ function click(): void {

<button
type="button"
class="text-gray-800 hover:bg-white hover:bg-opacity-10 transition-all rounded-[4px] p-1 no-underline cursor-pointer {$$props.class ||
class="hover:bg-[var(--pd-button-close-hover-bg)] hover:bg-opacity-10 transition-all rounded-[4px] p-1 no-underline cursor-pointer {$$props.class ||
''}"
on:click={click}
title="Close"
Expand Down

0 comments on commit 15f85ac

Please sign in to comment.