Skip to content

docs(spec): define component-owned upload and send icons - #6153

Merged
cixzhang merged 1 commit into
meta:mainfrom
athz:docs/upload-send-icon-spec
Sep 22, 2026
Merged

cixzhang merged 1 commit into
meta:mainfrom
athz:docs/upload-send-icon-spec

Conversation

@athz

@athz athz commented Sep 8, 2026 •

Copy link
Copy Markdown
Contributor

Why

FileInput’s upload affordance and ChatSendButton’s send action both use arrowUp, so themes cannot choose their artwork independently without also affecting directional arrow uses.

These are currently component-owned roles, not demonstrated shared icon meanings. The existing icon architecture already provides a narrower seam for that case.

Refs #6151.

What

Revise draft AST-032 to propose:

  • a file-input-upload component icon slot with arrowUp fallback
  • a chat-send-button-send component icon slot with arrowUp fallback
  • the existing ChatSendButton.sendIcon prop retaining highest precedence
  • no new global upload or send icon names
  • no default visual, layout, interaction, or accessibility change

The slots let themes configure these two roles independently through componentIcons. A future proposal can still add a shared icon name if reuse evidence meets the global admission bar.

Non-goals

  • no runtime or package changes in this PR
  • no change to arrowUp, sortable Table, or the stop-state icon
  • no new FileInput instance prop
  • no prescribed upload or send artwork

Risk

Documentation only. The record remains authority: draft pending owner review.

Testing

  • pnpm check:knowledge
  • commit-hook repository checks
  • pnpm exec prettier --check docs/specs/AST-032/spec.md
  • git diff --check

No changeset: this PR does not publish package behavior.

@vercel

vercel Bot commented Sep 8, 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 Sep 22, 2026 8:14pm UTC

Request Review

@meta-cla meta-cla Bot added the CLA Signed This label is managed by the Meta Open Source bot. label Sep 8, 2026
@github-actions github-actions Bot added community Authored by a community contributor (not on the eng/design team) needs:code-review High-risk change (new package/component/API) — needs human code review before merge labels Sep 8, 2026
@cixzhang
cixzhang force-pushed the docs/upload-send-icon-spec branch from 3470b54 to 63a1453 Compare September 22, 2026 00:50
@cixzhang cixzhang changed the title docs(spec): separate upload, send, and arrow icon semantics docs(spec): define component-owned upload and send icons Sep 22, 2026
@athz
athz marked this pull request as ready for review September 22, 2026 02:57
@github-actions github-actions Bot added the spec-auto-merge Auto-merge was enabled by the spec owner gate label Sep 22, 2026
@cixzhang
cixzhang force-pushed the docs/upload-send-icon-spec branch from 63a1453 to 0a64a46 Compare September 22, 2026 20:10

@cixzhang cixzhang 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.

Approved: upload and send remain component-owned icon roles, with independent componentIcons slots and arrowUp as the unchanged fallback.

@github-actions github-actions Bot removed the needs:code-review High-risk change (new package/component/API) — needs human code review before merge label Sep 22, 2026
@cixzhang
cixzhang merged commit 8c8f9a2 into meta:main Sep 22, 2026
31 of 32 checks passed
@github-actions
github-actions Bot deleted the docs/upload-send-icon-spec branch September 23, 2026 06:25

This branch was successfully deployed

1 active deployment
Preview — 0a64a469 Deployed Sep 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. community Authored by a community contributor (not on the eng/design team) spec-auto-merge Auto-merge was enabled by the spec owner gate

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants