Skip to content

Commit 41abcb1

Browse files
committed
add known edge case
Not super keen on this exception here, but it's something we do. Another solution here is to use `--tw-line-height` instead so it properly maps to the other property.
1 parent 4ee27f8 commit 41abcb1

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

packages/tailwindcss/src/signatures.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -111,6 +111,12 @@ function canonicalizeAst(ast: AstNode[], options: SignatureOptions) {
111111
let siblings = ctx.parent?.nodes
112112
if (siblings) {
113113
let other = node.property.slice(5)
114+
115+
// Edge cases:
116+
//
117+
// `leading-*` sets `--tw-leading` but the property is `line-height`
118+
if (node.property === '--tw-leading') other = 'line-height'
119+
114120
if (
115121
siblings.some(
116122
(sibling) =>

0 commit comments

Comments
 (0)