-
Notifications
You must be signed in to change notification settings - Fork 17
Grid redesign #2203
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Grid redesign #2203
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This pull request implements a redesign of the grid component to align with the new design kit specifications and CSS variable token architecture, while also updating associated documentation and examples.
- Refactored grid type definitions to replace legacy spacing tokens with string-based CSS tokens.
- Updated component examples and story files to use new design token values (e.g., "var(--spacing-gap-s)", "var(--spacing-gap-ml)").
- Removed legacy usage and specifications pages in favor of streamlined documentation focusing on the new grid overview.
Reviewed Changes
Copilot reviewed 16 out of 16 changed files in this pull request and generated no comments.
Show a summary per file
| File | Description |
|---|---|
| packages/lib/src/grid/types.ts | Updated type definitions for grid-related props to use string tokens and adjust ordering of acceptable CSS values. |
| packages/lib/src/grid/Grid.stories.tsx | Modified gap values in grid stories to utilize CSS variable tokens. |
| apps/website/screens/components/grid/usage/GridUsagePage.tsx | Removed obsolete grid usage documentation page. |
| apps/website/screens/components/grid/overview/GridOverviewPage.tsx | Added a new grid overview documentation page with improved content and links. |
| apps/website/screens/components/grid/code/examples/layout.tsx | Updated code example gap values to use new CSS variable tokens. |
| apps/website/screens/components/grid/code/GridCodePage.tsx | Revised documentation table in code page to reflect updated prop types and ordering. |
| apps/website/screens/components/grid/GridPageLayout.tsx | Adjusted grid page heading text and tab order for clarity. |
| apps/website/screens/components/flex/... | Minor tweaks in flex documentation files to improve clarity and consistency. |
| apps/website/screens/common/QuickNavContainer.tsx | Modified gap value in the QuickNavContainer component to use a design token. |
| apps/website/pages/components/grid/* | Updated/removal of outdated pages in favor of the new grid overview and code pages. |
Checklist
/libdirectory./websiteas needed.Description
Redesign of the grid component following the new design kit specifications, already using the new token architecture (CSS variables).