We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 53b81ca commit 22209f0Copy full SHA for 22209f0
packages/tailwindcss-language-service/src/diagnostics/getCssConflictDiagnostics.ts
@@ -82,9 +82,14 @@ export async function getCssConflictDiagnostics(
82
return false
83
}
84
85
+ let propertiesAreComparable = false
86
+
87
for (let i = 0; i < otherRules.length; i++) {
88
let otherRule = otherRules[i]
89
let properties = getRuleProperties(otherRule)
90
+ if (info[i].properties.length > 0 && properties.length > 0) {
91
+ propertiesAreComparable = true
92
+ }
93
if (!equal(info[i].properties, properties)) {
94
95
@@ -94,6 +99,10 @@ export async function getCssConflictDiagnostics(
99
100
96
101
102
+ if (!propertiesAreComparable) {
103
+ return false
104
105
97
106
return true
98
107
})
108
0 commit comments