Skip to content

Conversation

torleifhalseth
Copy link
Collaborator

No description provided.

@torleifhalseth torleifhalseth marked this pull request as ready for review October 22, 2025 08:29
@torleifhalseth torleifhalseth requested a review from vnys as a code owner October 22, 2025 08:29
@Copilot Copilot AI review requested due to automatic review settings October 22, 2025 08:29
Copy link
Contributor

@Copilot 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 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, and Paragraph 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

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.

feat(eds-core-react): Create base typography component and the opinionated components

1 participant