Skip to content
Snippets Groups Projects

Wildcard: `<Card />` migration

Merged Warren Gifford requested to merge tr/card-migration into main

Created by: umpox

closes https://github.com/sourcegraph/sourcegraph/issues/27681

Description

Automated migration of the card card-* styles to the <Card /> WIldcard component. Powered by this codemod: https://github.com/sourcegraph/codemod/pull/73 (This PR is basically super rough as it just required tweaking an existing codemod to migrate. Migration is priority here, will cleanup codemod afterwards)

This PR:

  • Fully migrates usage of Bootstrap card-* classes to the Wildcard <Card /> component
  • Removes global Card styles and classNames
  • Adds CardFooter Wildcard component
  • Some styling tweaks

Notes

  • The original Card migration involved tweaking the UI to match the Wildcard redesign Card styles. It means there was a chance of some small regressions for the padding of our cards after this migration. I have checked every CardBody and Card that could be affected and removed some redundant padding styles!

Merge request reports

Approval is optional

Merged by avatar (Jul 13, 2025 3:01am UTC)

Merge details

  • Changes merged into main with fa5511ef.
  • Deleted the source branch.

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
Please register or sign in to reply
Loading