feat(arr): compact armed delete and new glyphs

The subtitle chip needs the settings arm-then-confirm at chip scale: a
chip fits neither the control plate nor the word "confirm". The shared
control grows a compact variant that swaps the glyph instead, rather than
each view keeping a private copy of the idiom.
This commit is contained in:
Miguel Palhas
2026-08-25 18:11:06 +01:00
parent 34e5663920
commit 1e778afd18
2 changed files with 79 additions and 48 deletions
+39 -41
View File
@@ -1173,6 +1173,42 @@ body {
border-color: var(--signal-warn);
}
/* The chip-scale variant of the same control (#251). A chip has room for
neither the plate nor the word "confirm", so the plate comes off and the
armed glyph does the word's job — the two clicks, the amber and the
4-second disarm are the shared block's, unchanged. */
.control-micro {
min-width: 0;
min-height: 0;
width: 1rem;
height: 1rem;
padding: 0;
color: var(--ink-faint);
background: none;
border: 0;
box-shadow: none;
transition:
color 150ms var(--ease-out),
background 150ms var(--ease-out);
}
.control-micro:hover:not(:disabled),
.control-micro:focus-visible {
color: var(--signal-fault);
background: oklch(from var(--signal-fault) l c h / 15%);
}
/* armed wins over hover: the pointer is already on it when it arms */
.control-micro[data-armed="true"],
.control-micro[data-armed="true"]:hover:not(:disabled) {
color: var(--signal-warn);
background: oklch(from var(--signal-warn) l c h / 15%);
}
.control-micro:disabled {
opacity: 0.5;
}
.bucket-head {
align-items: center;
}
@@ -1665,44 +1701,10 @@ body {
border-color: oklch(from var(--signal-fault) l c h / 55%);
}
/* the delete affordance nested in a present-subtitle chip (issue #223) */
.chip-delete {
display: inline-flex;
align-items: center;
justify-content: center;
width: 1rem;
height: 1rem;
/* the delete affordance nested in a present-subtitle chip (issue #223): the
shared .control-micro, spaced off the chip's own label */
.chip .control-micro {
margin-inline-start: var(--space-1);
padding: 0;
background: none;
border: 0;
border-radius: var(--radius);
color: var(--ink-faint);
cursor: pointer;
transition:
color 150ms var(--ease-out),
background 150ms var(--ease-out);
}
.chip-delete:hover,
.chip-delete:focus-visible {
color: var(--signal-fault);
background: oklch(from var(--signal-fault) l c h / 15%);
}
.chip-delete[data-armed="true"] {
color: var(--signal-fault);
background: oklch(from var(--signal-fault) l c h / 15%);
}
.chip-delete:disabled {
cursor: default;
opacity: 0.5;
}
.close-icon {
width: 0.625rem;
height: 0.625rem;
}
/* ---- manual subtitle deck (§9.3, §15, issue #203) ---------------------- */
@@ -2406,10 +2408,6 @@ select.form-input {
width: 5.5rem;
}
.provider-move {
min-width: 3rem;
}
.provider-move:disabled {
visibility: hidden;
}