-
Notifications
You must be signed in to change notification settings - Fork 71
feat(eds-core-react): typography #4125
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
base: main
Are you sure you want to change the base?
Conversation
…d Paragraph components
…es and add new Patterns story
…mport requirement
…n typography components
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 PR introduces a next-generation typography system for the EDS core React package while deprecating the existing Typography component. The new system provides baseline grid alignment, improved performance, and better semantic HTML structure through specialized components.
Key Changes:
- Introduces three new typography components:
TypographyNext
,Heading
, andParagraph
with CSS-based styling - Deprecates the existing styled-components-based
Typography
component with migration guidance - Migrates test infrastructure from Jest to Vitest across multiple packages
Reviewed Changes
Copilot reviewed 43 out of 44 changed files in this pull request and generated 10 comments.
Show a summary per file
File | Description |
---|---|
packages/eds-utils/vitest.setup.ts | Adds Vitest test setup configuration |
packages/eds-utils/vitest.config.ts | Configures Vitest for the utils package |
packages/eds-utils/src/hooks/useDeprecationWarning.ts | Implements hook for displaying deprecation warnings |
packages/eds-utils/src/hooks/useDeprecationWarning.test.ts | Tests for the deprecation warning hook |
packages/eds-core-react/src/components/Typography/Typography.tsx | Adds deprecation warning to existing Typography component |
packages/eds-core-react/src/components/Typography/Typography.new.tsx | Implements new TypographyNext component with CSS classes |
packages/eds-core-react/src/components/Typography/Heading.tsx | Implements semantic Heading component (h1-h6) |
packages/eds-core-react/src/components/Typography/Paragraph.tsx | Implements Paragraph component for body text |
packages/eds-core-react/src/components/Typography/typography.css | Comprehensive CSS for typography system with baseline grid |
packages/eds-core-react/src/style.css | Main stylesheet aggregating component styles |
packages/eds-core-react/rollup.config.js | Adds CSS bundling configuration |
packages/eds-core-react/package.json | Updates exports to include CSS stylesheet |
packages/eds-tokens-build/package.json | Updates Vitest version |
packages/eds-tailwind/package.json | Updates Vite version and export order |
Files not reviewed (1)
- pnpm-lock.yaml: Language not supported
packages/eds-core-react/src/components/Typography/Typography.stories.shared.tsx
Show resolved
Hide resolved
packages/eds-core-react/src/components/Typography/Typography.stories.shared.tsx
Show resolved
Hide resolved
…Roots in tsconfig
No description provided.