Skip to content

fix: remove styled-components, replace with CSS modules#21820

Open
owlas wants to merge 1 commit intosnyk/google-major-upgradesfrom
snyk/styled-components-v6
Open

fix: remove styled-components, replace with CSS modules#21820
owlas wants to merge 1 commit intosnyk/google-major-upgradesfrom
snyk/styled-components-v6

Conversation

@owlas
Copy link
Copy Markdown
Collaborator

@owlas owlas commented Apr 7, 2026

Summary

  • Removes styled-components entirely instead of upgrading from v5 to v6 (which had csstype version conflicts)
  • Migrates all 5 files that used styled-components to CSS modules (the project's standard styling approach)
  • Stacked on fix: upgrade googleapis 105 → 124 (security) #21817 (googleapis upgrade)

Changes

  • ProjectConnectFlow.styles.tsxProjectConnectFlow.module.css (bounce animation)
  • SqlForm.tsxSqlForm.module.css (SQL editor gutter color via CSS variable)
  • Table.styles.tsxTable.module.css (all 13 styled components → thin wrappers with data-* attribute selectors)
  • CSSProperties type imports switched from styled-components to react
  • ResourceIcon → removed unused StyledComponent type from union
  • Removed unused FROZEN_COLUMN_BORDER_COLOR and FROZEN_COLUMN_BORDER_WIDTH constants (values inlined in CSS)

Closes

Test plan

  • CI passes (typecheck, lint, unused exports all verified locally)
  • Results table: cell selection (blue border), copy flash, URL underlines, conditional formatting colors
  • Results table: NaN cells right-aligned italic gray, long text wrapping on hover/select
  • Dashboard table tiles: compact padding (minimal mode)
  • Verify email page: bounce animation on success icon
  • Table calculation SQL editor: gutter color, fullscreen min-height toggle

🤖 Generated with Claude Code

Removes the styled-components dependency entirely instead of upgrading
from v5 to v6. Migrates all 5 files that used styled-components to
CSS modules, which is the project's standard styling approach.

- ProjectConnectFlow.styles.tsx → CSS module (bounceIn animation)
- SqlForm.tsx SqlEditor → CSS module + CSS variables
- Table.styles.tsx → CSS module with data-* attribute selectors
- CSSProperties imports → react instead of styled-components
- ResourceIcon → remove unused StyledComponent type

Closes #21607

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@github-actions
Copy link
Copy Markdown

github-actions Bot commented Apr 7, 2026

🧪 Test Selection

✅ Tests that will run

Test Description
Preview Environment Deploys a preview environment for testing
Frontend E2E Tests Runs Cypress app tests

⏭️ Tests skipped (no relevant file changes detected)

Test How to trigger manually
Backend API Tests Add test-backend to PR description
Timezone Tests Add test-timezone to PR description
CLI Tests Add test-cli to PR description

Tip: Add test-all to your PR description to run all tests.

@github-actions
Copy link
Copy Markdown

github-actions Bot commented Apr 7, 2026

Your preview environment pr-21820 has been deployed.

Preview environment endpoints are available at:

@github-actions
Copy link
Copy Markdown

github-actions Bot commented Apr 7, 2026

Preview Environment

🌐 URL: https://lightdash-preview-pr-21820.lightdash.okteto.dev

📋 Logs: View in GCP Console

🔧 SSH: ./scripts/okteto-ssh.sh 21820

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.

2 participants