Ghost-style the add-card/status icon buttons; convert the last one

- .btn-icon: transparent background, muted icon that turns accent on
  hover -- matching .title-back's treatment exactly, instead of a
  solid accent-filled square.
- The "all tasks" tab's "Add card" button is now the same .btn-icon
  as the kanban/inbox/status ones, so every "add" action in the app
  looks and behaves the same.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
This commit is contained in:
2026-09-05 00:20:32 +01:00
co-authored by Claude Sonnet 5
parent 7ce0f156f0
commit f5cc82a2f4
2 changed files with 21 additions and 11 deletions
+14 -8
View File
@@ -1039,12 +1039,14 @@ button[type="submit"]:disabled:not(.btn-icon),
cursor: progress;
}
/* A small square icon button -- the compact "add to X" forms (a kanban
column, the inbox, the status list) all used a full "Add" label until
there were enough of them on screen at once to feel cluttered. Excluded
(":not(.btn-icon)" above and on the .field-row/.kanban__new overrides)
rather than out-specificity'd, so it isn't at the mercy of source order --
the same reasoning as .field's low specificity against input:focus. */
/* A small square, transparent icon button -- every "add to X" form (a
kanban column, the inbox, the status list, the "all tasks" new-card form)
used a full "Add" label until there were enough of them on screen at once
to feel cluttered. Ghost styling and the hover colour change match
.title-back. Excluded (":not(.btn-icon)" above and on the
.field-row/.kanban__new overrides) rather than out-specificity'd, so it
isn't at the mercy of source order -- the same reasoning as .field's low
specificity against input:focus. */
.btn-icon {
flex: none;
width: 2rem;
@@ -1052,8 +1054,8 @@ button[type="submit"]:disabled:not(.btn-icon),
padding: 0;
border: none;
border-radius: var(--radius-sm);
background: var(--accent);
color: var(--accent-text);
background: transparent;
color: var(--muted);
font-size: 1.1rem;
line-height: 1;
display: inline-flex;
@@ -1062,6 +1064,10 @@ button[type="submit"]:disabled:not(.btn-icon),
cursor: pointer;
}
.btn-icon:hover:not(:disabled) {
color: var(--accent);
}
.btn-icon:disabled {
opacity: var(--opacity-disabled);
cursor: progress;
+7 -3
View File
@@ -211,9 +211,13 @@ async function onCreateInColumn(column: Column) {
<span>New card</span>
<input v-model="newText" class="field" type="text" maxlength="1000" required />
</label>
<button type="submit" :disabled="submitting">
{{ submitting ? 'Adding…' : 'Add card' }}
</button>
<button
type="submit"
class="btn-icon"
:disabled="submitting"
:title="submitting ? 'Adding…' : 'Add card'"
:aria-label="submitting ? 'Adding' : 'Add card'"
>+</button>
</form>
</div>