From 65bad113808702ba7cbae712b748ee9f5473be51 Mon Sep 17 00:00:00 2001 From: Robin Malfait Date: Fri, 12 Sep 2025 11:20:18 +0200 Subject: [PATCH] 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