Skip to content

Conversation

@GomezIvann
Copy link
Collaborator

@GomezIvann GomezIvann commented Mar 31, 2025

Checklist

  • Build process is done without errors. All tests pass in the /lib directory.
  • Self-reviewed the code before submitting.
  • Meets accessibility standards.
  • Added/updated documentation to /website as needed.
  • Added/updated tests as needed.

Description
Redesign of the grid component following the new design kit specifications, already using the new token architecture (CSS variables).

@GomezIvann GomezIvann marked this pull request as ready for review March 31, 2025 12:18
@GomezIvann GomezIvann requested a review from Copilot March 31, 2025 12:39
Copy link
Contributor

Copilot AI left a 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.

@Mil4n0r Mil4n0r self-assigned this Mar 31, 2025
@Mil4n0r Mil4n0r self-requested a review March 31, 2025 13:10
@Mil4n0r Mil4n0r merged commit 88d53c5 into master Apr 1, 2025
4 checks passed
@Mil4n0r Mil4n0r deleted the gomezivann/grid-tokens branch April 1, 2025 10:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants