Repository navigation
Document every Carbon component in the design system - #375
Merged
Merged
Conversation
Rewrite the design-system page as a technical reference: complete light and dark token tables, the product type scale, control geometry, elevation and motion contracts, and a section with a prop table and behaviour notes for all nineteen exports from carbon/index.ts. Add a regression test that derives the component list from the export file, and record the inventory invariant in the knowledge base.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Rewrite
docs/design-system/index.htmlas an exhaustive technical reference instead of a marketing page.web/carbon-panel/src/lib/components/carbon/index.tsnow have a section with a prop table, defaults, a static demonstration and behaviour notes. Each is taggedtokenised,literal paletteormixedso the remaining migration work is visible.scroll-strip, overlay portalling).Regression coverage
scripts/test_design_system_page.pynow parses the export list and asserts each component has anid="c-…"section containing its name and a prop table, so the page cannot drift back to a partial inventory. The inventory is recorded asknowledge/invariants/design-system-inventory.md.Verification
python -m unittest scripts.test_design_system_page scripts.test_website scripts.test_landing_page— 19 tests pass.python scripts/build_website.pyandpython scripts/check_website.py— 27 pages valid, social metadata unchanged.python scripts/check_brand_assets.py— pass.go run ./cmd/knowledge-lint -root .— 36 concepts, indexes current.scrollWidth == clientWidth, no horizontal overflow; light and dark previews inspected.