Skip to content

spec(AST-088): component icon boxes follow the theme icon size - #7913

Closed
cixzhang wants to merge 1 commit into
mainfrom
spec/ast-088-icon-box-sizing
Closed

cixzhang wants to merge 1 commit into
mainfrom
spec/ast-088-icon-box-sizing

Conversation

@cixzhang

Copy link
Copy Markdown
Contributor

Exact decision needed

Whether boxes that Astryx components reserve for icons, such as the Button family's icon slot, follow the active theme's icon size dimension, and whether Astryx components render the default glyphs they supply through Icon.

New draft record: spec:AST-088. It stays draft until an owner decides it. It is separate from #7847 (spec:AST-087) because it goes beyond the icon-variant decision: it changes family geometry ownership.

Existing authority searched

Decision

  • FR1–FR2: a component-owned icon box uses the active theme's dimension for its semantic size, including a size a theme slot request selects; control height, touch targets, and family-fixed outer dimensions do not change.
  • FR3: Core and first-party default glyphs render through Icon, so theme dimension, color, and variant reach them.

Rejected alternatives

  • A separate box size setting beside the Icon target: two places would set the same dimension.

Claim scope and non-goals

Out of scope: how a theme sets the dimension (Icon target, #7847), new sizes, caller-supplied icon components. Open: OQ1 whether boxes should follow at all; OQ2 which size relationships a theme keeps.

Evidence and implementation relationship

Requirement text authored by @imdreamrunner in #7847 (FR8–FR9 there); credited as co-author. No implementation PR exists.

Writing rubric results

  • R1 narration: none found; scanned for "proposes", "previously", "now", "will".
  • R2 research in the record: none.
  • R3 evidence naming a change: none; verification cells name test states.
  • R4 rejected alternatives over one line or outside a decision: none; one Rejected: line inside DEC-1.
  • R5 pull request or issue references remaining: none in the record.
  • R6 ruled open questions still listing options: none; OQ1–OQ2 are unanswered.

Scope

  • This PR contains specification records only.
  • It records observable behavior and preserves equivalent internal implementations.
  • Any named internal mechanism is intentionally public, names its dependent caller/system, and explains why an equivalent implementation would not satisfy the contract.
  • Verification states the evidence layer and failure signal without prescribing CI job/workflow topology.
  • It records one intentional durable decision, not a rescue for a separable tagalong.
  • The canonical knowledge owner, affected current claims, and overlapping open work are named; any ownership collision is resolved or called out for human decision.
  • Adjacent API, visual, accessibility, composition, and implementation facts remain outside scope unless this exact decision depends on them.
  • Public text and artifacts contain no internal Meta context.

Validation

  • node scripts/check-knowledge.mjs: "Knowledge templates and records are aligned."
  • Prettier --write on the record.
  • git diff --check: clean.

@vercel

vercel Bot commented Oct 22, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
astryx Ready Ready Preview Oct 22, 2026 12:22pm UTC

Request Review

@meta-cla meta-cla Bot added the CLA Signed This label is managed by the Meta Open Source bot. label Oct 22, 2026
@astracat-bot

astracat-bot Bot commented Oct 22, 2026 •

Copy link
Copy Markdown
Contributor

AI review status for this pull request.

Review status Updated
❓ Needs maintainer input (for maintainers only) Oct 28, 2026, 4:21 AM UTC

Split from AST-087 so the icon-variant decision can land on its own.

Co-authored-by: imdreamrunner <[email protected]>

@astracat-bot astracat-bot Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Approval of this draft waits on an engineering owner's decision on spec:AST-088 FR1–FR3 and DEC-1: whether component-owned icon boxes follow the theme's Icon size dimension and whether Astryx default glyphs render through Icon, which no current spec settles (spec:AST-087 lists both as non-goals). Any engineering owner, the author included, records that decision by commenting /approve-spec <full head SHA> on this pull request. Separately, the record needs two fixes:

  • If FR3 stays, Current-state impact should name component:MoreMenu (its OQ1 and its trigger-glyph disposition) and ChatSendButton, whose default glyphs FR3 moves onto Icon, and say that themes styling the icon target start reaching them.
  • FR1 cites family:buttons FR7 for touch targets, but FR7 covers only control height and outer size; cite architecture:icon-resolution-and-component-slots INV8 or spec:AST-087 FR14 instead.

[Automated review]

Comment on lines +50 to +51
Control height and touch targets remain set by the component (`family:buttons`
FR7).

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

family:buttons FR7 covers control height and outer dimensions but never mentions touch targets. The current touch-target guarantee is architecture:icon-resolution-and-component-slots INV8 (“A slot size never changes the control's height, touch target, or outer dimensions”) or spec:AST-087 FR14; cite one of those, or narrow this parenthetical to control height.

Comment on lines +70 to +76
A theme without icon size styles renders the same boxes. When this ships:

- `family:buttons` — FR7's owned icon slot sizes its box with the theme
dimension (FR1, FR2).
- `architecture:component-theming-surface` — component-owned icon boxes follow
the Icon target's size dimension (FR1).
- Consumer `Icon` and `Button` docs describe how icon boxes follow theme sizes.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

FR3 also changes component:MoreMenu, which is current: its default trigger glyph reaches Button as a raw useIcon('moreHorizontal') node, its record says the glyph “does not carry Icon's icon target”, and its OQ1 asks whether it should. ChatSendButton does the same for stop and arrowUp. Please list both here and say that themes styling the icon target start reaching these glyphs; the sentence above covers boxes only.

@cixzhang cixzhang closed this Oct 31, 2026
@cixzhang
cixzhang deleted the spec/ast-088-icon-box-sizing branch October 31, 2026 18:10

This branch was successfully deployed

1 active deployment
Preview — c15fe1b4 Deployed Oct 22, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CLA Signed This label is managed by the Meta Open Source bot.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant