Skip to content

ui-kit: a backspace icon for Discard draft in the live voice field #3762

Closed

Description

@schlessera

Context

Part of #3690. The #3699 design (signed off on #3699) draws Discard draft in the live controls row with a backspace glyph. The kit's icon map (ICONS, packages/ui-kit/src/primitives/Icon.tsx) has no backspace key, so the #3738 stories used circle-minus instead (stories/voice/_voice.tsx, the L1 + draft and L4 + draft builders).

Maintainer ruling (2026-11-09): switch Discard draft to a backspace icon.

Scope

  • Add a semantic icon key backspace mapped to lucide Delete (the backspace-key glyph). Update the pinned key and glyph counts in tests/icon-map.test.ts.
  • Use it for Discard draft in the voice story builders (L1 + draft, L4 + draft, and any other Discard draft control).
  • Regenerate the affected voice baselines in the pinned container.

Out of scope

Acceptance criteria

  • ICONS.backspace === lucide.Delete, and the icon-map counts are updated.
  • Discard draft in the voice stories renders the backspace glyph, with the accessible name "Discard draft" unchanged.
  • The affected voice baselines are regenerated in the pinned image, and no other baseline changes.

Verification

bun test packages/ui-kit/tests/icon-map.test.ts, the voice stories in both themes, and the voice visual test.

Contract impact

None beyond a new icon key; record it in the package-api component if icon keys are listed there.

Activity

  1. added this to the 0.45.0 milestone on Nov 9, 2026
  2. added
    type: feat
    area: ui-kit
    priority: p2
    agent-ready
    on Nov 9, 2026
  3. self-assigned this
    on Nov 9, 2026
  4. schlessera commented on Nov 9, 2026

    @schlessera
    OwnerAuthor

    Claiming (token c3762-bksp). Branch feat/3762-backspace-icon. Scope: the icon map, icon-map.test.ts, the voice stories and their baselines, plus the package-api note. Concurrent: #3699 (draft #3735) consumes the key after this lands.

  5. added 2 commits that reference this issue on Nov 9, 2026
  6. schlessera commented on Nov 10, 2026

    @schlessera
    OwnerAuthor

    Delivered in #3764, squash-merged as e8ea534c1ce8dc82fe3d88034e871bf80975fac7 (candidate proof run 42732363594).

    • ICONS.backspace === lucide.Delete, and the icon-map counts are now 93 keys over 91 glyphs. A mutation receipt is in the PR.
    • Discard draft in the voice stories draws the backspace glyph, and its accessible name "Discard draft" is unchanged.
    • In the pinned container, only the Discard-draft voice baselines changed: voice-live-{l1d,l1u,l4d} plus fix(ui-kit): the tall voice field grows to hold its body under enlarged text #3779's voice-live-enlarged-{l1d,l4d}, at 320 and desktop widths in both themes.
    • The new key is recorded in package-api.md, the commit carries the CONTRACT: prefix, and a minor changeset is included.

    #3699 is unblocked. Its stale prose "blocked by #3738" line (#3738 is closed) was reworded so project-sync could verify the declaration and remove the label.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

agent-readyarea: ui-kitpriority: p2type: feat

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions