This repository has no description
0

Configure Feed

Select the types of activity you want to include in your feed.

web/components: use default variant for comment cancel button

the cancel action in the comment editor was a ghost button with hand-rolled
foreground-danger overrides, which read as a destructive action. cancelling a
draft isn't destructive, so it now uses the plain default variant.

Signed-off-by: eti <eti@eti.tf>

author
eti
committer
dawn
date (Jul 31, 2026, 10:57 PM +0300) commit 844e04d1 parent 365f0813 change-id nzwqkymp
+1 -8
+1 -8
web/src/lib/components/comment/CommentEditor.svelte
··· 145 145 {submitLabel} 146 146 </Button> 147 147 {#if oncancel} 148 - <Button 149 - type="button" 150 - variant="ghost" 151 - icon={X} 152 - disabled={isPublishing} 153 - onclick={oncancel} 154 - class="text-foreground-danger hover:text-foreground-danger" 155 - > 148 + <Button type="button" variant="default" icon={X} disabled={isPublishing} onclick={oncancel}> 156 149 Cancel 157 150 </Button> 158 151 {/if}