Skip to content

Commit

Permalink
Fix variable name
Browse files Browse the repository at this point in the history
  • Loading branch information
philipp-spiess committed Oct 17, 2024
1 parent 35eab52 commit cb93881
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions packages/@tailwindcss-upgrade/src/migrate-js-config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -87,10 +87,10 @@ async function migrateTheme(
base,
config: { ...unresolvedConfig, plugins: [], presets: undefined },
}
let { resolvedConfig, resetThemeKeys } = resolveConfig(designSystem, [configToResolve])
let { resolvedConfig, replacedThemeKeys } = resolveConfig(designSystem, [configToResolve])

let resetNamespaces = new Map<string, boolean>(
Array.from(resetThemeKeys.entries()).map(([key]) => [key, false]),
Array.from(replacedThemeKeys.entries()).map(([key]) => [key, false]),
)

let prevSectionKey = ''
Expand Down
4 changes: 2 additions & 2 deletions packages/tailwindcss/src/compat/apply-config-to-theme.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@ export function applyConfigToTheme(
{ theme }: ResolvedConfig,
replacedThemeKeys: Set<string>,
) {
for (let resetThemeKey of replacedThemeKeys) {
let name = keyPathToCssProperty([resetThemeKey])
for (let replacedThemeKey of replacedThemeKeys) {
let name = keyPathToCssProperty([replacedThemeKey])
if (!name) continue

designSystem.theme.clearNamespace(`--${name}`, ThemeOptions.DEFAULT)
Expand Down

0 comments on commit cb93881

Please sign in to comment.