A utility-first CSS framework for rapid UI development.
Do not migrate `variant = 'outline'` during upgrades (#18922)
This PR improves the upgrade tool for shadcn/ui projects where the
`variant = "outline"` is incorrectly migrated to `variant =
"outline-solid"`.
This PR also handles a few more cases:
```ts
// As default argument
function Button({ variant = "outline", ...props }: ButtonProps) { }
// With different kinds of quotes (single, double, backticks)
function Button({ variant = 'outline', ...props }: ButtonProps) { }
// Regardless of whitespace
function Button({ variant="outline", ...props }: ButtonProps) { }
// In JSX
<Button variant="outline" />
// With different quotes and using JavaScript expressions
<Button variant={'outline'} />
// As an object property
buttonVariants({ variant: "outline" })
``` R
Robin Malfait committed
65bad113808702ba7cbae712b748ee9f5473be51
Parent: d1fd645
Committed by GitHub <noreply@github.com>
on 9/12/2025, 9:20:18 AM