Skip to content

docs: define icon resolution and component slots - #5733

Merged
cixzhang merged 1 commit into
mainfrom
docs/icon-system-architecture
Aug 31, 2026
Merged

cixzhang merged 1 commit into
mainfrom
docs/icon-system-architecture

Conversation

@cixzhang

@cixzhang cixzhang commented Aug 31, 2026 •

Copy link
Copy Markdown
Contributor

Why

Theme authors need to change one component-owned icon role without changing every use of the same shared icon.

What

  • defines the semantic componentIcons slot-to-name layer separately from general icon resolution
  • records typed public slot ownership, null suppression, fallback precedence, and component-local documentation
  • preserves coexistence with shipped extension keys; this draft decides no component migration
  • delegates theme authoring/application/compilation and Icon rendering APIs to their existing owners

Risk

Documentation only. This draft is not current policy until owner approval.

Testing

  • pnpm check:knowledge
  • pnpm exec prettier --check docs/architecture/icon-resolution-and-component-slots.md
  • git diff --check

No Changeset: this record does not publish package behavior.

@vercel

vercel Bot commented Aug 31, 2026 •

Copy link
Copy Markdown

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

Project Deployment Actions Updated (UTC)
astryx Ready Ready Preview Aug 31, 2026 2:24am

Request Review

@meta-cla meta-cla Bot added the CLA Signed This label is managed by the Meta Open Source bot. label Aug 31, 2026
@cixzhang
cixzhang force-pushed the docs/icon-system-architecture branch from 9c23bbd to 19342cd Compare August 31, 2026 01:49
@cixzhang
cixzhang force-pushed the docs/icon-system-architecture branch from 19342cd to 6cd9b67 Compare August 31, 2026 01:57
@cixzhang
cixzhang force-pushed the docs/icon-system-architecture branch from 6cd9b67 to 5a363e2 Compare August 31, 2026 02:03
@github-actions github-actions Bot added the needs:spec-owner-review Current knowledge records await owner approval label Aug 31, 2026
[
packages/core/src/Icon/,
packages/core/src/theme/defineTheme.ts,
packages/core/src/Selector/,

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

This is too specific? More components will have component icons

applies_to:
[
packages/core/src/Icon/,
packages/core/src/theme/defineTheme.ts,

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

There should also be some shared icon resolver modules. Include in this spec?

@cixzhang
cixzhang force-pushed the docs/icon-system-architecture branch from 5a363e2 to 7ff6802 Compare August 31, 2026 02:20
@cixzhang
cixzhang marked this pull request as ready for review August 31, 2026 02:27
@cixzhang

Copy link
Copy Markdown
Contributor Author

/approve-spec 7ff6802

@cixzhang
cixzhang enabled auto-merge (squash) August 31, 2026 02:27
@github-actions github-actions Bot removed the needs:spec-owner-review Current knowledge records await owner approval label Aug 31, 2026
github-actions Bot added a commit that referenced this pull request Aug 31, 2026
@github-actions

Copy link
Copy Markdown
Contributor

PR Analysis Report

📚 Storybook Preview

View Storybook for this PR
GitHub Pages may take up to a minute to hydrate after deploy.

🧪 Sandbox Preview

View Sandbox for this PR
GitHub Pages may take up to a minute to hydrate after deploy.

No new or modified components detected.

Bundle Size Summary

No component packages changed.

Accessibility Audit

Status: No accessibility violations detected.


Generated by PR Enrichment workflow | Storybook | Sandbox | View full report

@cixzhang
cixzhang merged commit 67ce2b9 into main Aug 31, 2026
29 of 30 checks passed
@github-actions
github-actions Bot deleted the docs/icon-system-architecture branch August 31, 2026 06:28

This branch was successfully deployed

1 active deployment
Preview — 7ff68020 Deployed Aug 31, 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