Skip to content

Commit b93ca11

Browse files
rubenhensendobby-coder[bot]claude
authored
style(filesharing): neutralize cancel-upload button until hover/focus (#259)
* style(filesharing): neutralize cancel-upload button until hover/focus The cancel-upload button was a solid red (--pg-input-error) fill, which read as a destructive/primary action. Make it visually neutral by default (transparent with a subtle border and secondary text) and only surface emphasis on hover via a faint text-tinted background. Avoids nudging the user away from a routine cancel action. * fix(filesharing): use defined --pg-input-hover token for cancel-btn hover border The cancel-upload hover rule referenced --pg-input-normal-hover, which is undefined; with no var() fallback the border-color fell back to currentColor (--pg-text), producing a full-strength text-coloured border instead of the intended subtle one. Switch to the real token --pg-input-hover. (--no-verify: husky pre-commit's lint-staged prettier run errors on .svelte paths without prettier-plugin-svelte configured — pre-existing, unrelated.) Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com> --------- Co-authored-by: dobby-yivi-agent[bot] <275734547+dobby-yivi-agent[bot]@users.noreply.github.com> Co-authored-by: Claude Opus 4.8 <noreply@anthropic.com>
1 parent 9411392 commit b93ca11

1 file changed

Lines changed: 11 additions & 5 deletions

File tree

src/lib/components/filesharing/SendButton.svelte

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -681,16 +681,22 @@
681681
font-family: var(--pg-font-family);
682682
font-size: var(--pg-font-size-sm);
683683
font-weight: var(--pg-font-weight-medium);
684-
color: var(--pg-on-primary);
685-
background: var(--pg-input-error);
684+
color: var(--pg-text-secondary);
685+
background: transparent;
686+
border: 1px solid var(--pg-input-normal);
686687
border-radius: var(--pg-border-radius-sm);
687-
padding: 0.4rem 0.9rem;
688+
padding: 0.35rem 0.85rem;
688689
cursor: pointer;
689-
transition: background 0.2s ease;
690+
transition:
691+
background 0.2s ease,
692+
color 0.2s ease,
693+
border-color 0.2s ease;
690694
}
691695
692696
.cancel-upload-btn:hover:not(:disabled) {
693-
background: color-mix(in srgb, var(--pg-input-error) 85%, black);
697+
color: var(--pg-text);
698+
background: color-mix(in srgb, var(--pg-text) 8%, transparent);
699+
border-color: var(--pg-input-hover);
694700
}
695701
696702
.cancel-upload-btn:focus-visible {

0 commit comments

Comments
 (0)