You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Apr 6, 2021. It is now read-only.
Copy file name to clipboardExpand all lines: src/lib/expandApplyAtRules.js
+4-2Lines changed: 4 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -158,12 +158,14 @@ function processApply(root, context) {
158
158
constscreenType=apply.parent.params
159
159
160
160
throwapply.error(
161
-
`@apply nested inside @screen is not supported. We suggest you write this as @apply ${applyCandidates.map(c=>`${screenType}:${c}`).join(' ')} instead.`
161
+
`@apply is not supported within nested at-rules like @screen. We suggest you write this as @apply ${applyCandidates
162
+
.map((c)=>`${screenType}:${c}`)
163
+
.join(' ')} instead.`
162
164
)
163
165
}
164
166
165
167
throwapply.error(
166
-
`@apply only works for elements and classes. Nesting inside an @${apply.parent.name} is not supported. Please move the @${apply.parent.name} around the element/class selector`
168
+
`@apply is not supported within nested at-rules like @${apply.parent.name}. You can fix this by un-nesting @${apply.parent.name}.`
0 commit comments