Skip to content

docs(components): approved Text truncate and IconButton hit-area amendments - #545

Merged
egdev6 merged 2 commits into
mainfrom
docs/specs-text-truncate-icon-button-hit-area
Nov 22, 2026
Merged

egdev6 merged 2 commits into
mainfrom
docs/specs-text-truncate-icon-button-hit-area

Conversation

@egdev6

@egdev6 egdev6 commented Nov 22, 2026

Copy link
Copy Markdown
Owner

Summary

This PR adds the approved spec amendments for two consumer requests accepted in triage. It contains docs only, no code. Both requests come from the same compact note card in Recado (egdev6/recado#41).

  • Text v0.3: single-line truncation (Consumer request (Recado): single-line text in a compact list item #538)
    • Adds truncate?: boolean, default false, on every Text variant. Opting in makes the root block-level and inlines accents.
    • The DOM keeps the full text, so assistive technology reads all of it. The consumer must provide a visible route to the full text that works with keyboard and touch. Native title and the DS Tooltip only supplement that route.
    • The consumer sets min-width: 0 along the shrinking flex/grid path.
    • Heading and ListItem are unchanged. ListItem still never clamps by default.
    • New naming convention single-line-text-truncation / truncate, approved for registration with the first reviewed usage.
    • contentSHA256: fd8f0fdebc2bfd898a51cee69f94685cc64a9f877045f151fea609b202fcd799
  • IconButton v0.4: invisible hit area (Consumer request (Recado): larger hit area for an icon-only action in a list row #540)
    • Every enabled IconButton gets an automatic invisible target of at least 44px, for every pointer type and with no prop. It uses a 44.8px square from --space-14, drawn by a static ::after. Visible size, Material and the focus ring are unchanged.
    • This fixes the current lg gap: the button measures 38.4px against its own JSDoc promise of 44px.
    • Adds overlap and row-spacing rules for consumers.
    • Implementation-plan prerequisite: prove the effective target stays at least 44px through the scale-94 press feedback, or stop and revise the proposal.
    • contentSHA256: 9b79473b96a8ac9a657bcad82604c770a2fafa4228067b79e7d08567c0c116df

The owner approved both amendments on 2026-11-22. Each one records the verbatim choices in its resolved decisions, and odd/tasks/consumer-request-specs.md (L6) records them too.

Neither amendment authorizes implementation: each implementation plan needs its own approval. Both were approved without new captures, so visual conformity is Not evaluated.

Validation

  • Both amendments follow skills/component-spec-proposer. They cover seven blocks and record prop-naming lookups. They keep proposal, evidence (path:line) and planned checks separate.
  • I cross-checked them against the Recado card. The specs are compatible: it has one trailing action per row, and tapping the card opens the full-text detail.
  • I recomputed the snapshot digests after finalizing (payload from ## 1. Purpose and scope to EOF).
  • Documentation updated where needed. No code, tokens, dependencies or registry changes.

Linked issue

Refs #538, #540

@egdev6 egdev6 added the documentation Improvements or additions to documentation label Nov 22, 2026
@egdev6
egdev6 merged commit c0c4275 into main Nov 22, 2026
7 checks passed
@egdev6
egdev6 deleted the docs/specs-text-truncate-icon-button-hit-area branch November 22, 2026 19:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant