Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Include -- prefix when escaping
  • Loading branch information
adamwathan committed Oct 22, 2024
commit d7d8cd10de70b2c97f9d2d41bdc219ef0bef6379
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 @@ -124,13 +124,13 @@ async function migrateTheme(
resetNamespaces.set(key[0], true)
let property = keyPathToCssProperty([key[0]])
if (property !== null) {
css += ` --${escape(property)}-*: initial;\n`
css += ` ${escape(`--${property}`)}-*: initial;\n`
}
}

let property = keyPathToCssProperty(key)
if (property !== null) {
css += ` --${escape(property)}: ${value};\n`
css += ` ${escape(`--${property}`)}: ${value};\n`
}
}

Expand Down