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 5d381da commit dba521eCopy full SHA for dba521e
1 file changed
packages-presets/rule-utils/src/pseudo.ts
@@ -376,7 +376,7 @@ export function createTaggedPseudoClasses<T extends object = object>(
376
): VariantObject<T>[] {
377
const attributify = !!options?.attributifyPseudo
378
let firstPrefix = options?.prefix ?? ''
379
- firstPrefix = (Array.isArray(firstPrefix) ? firstPrefix : [firstPrefix]).filter(Boolean)[0] ?? ''
+ firstPrefix = escapeSelector((Array.isArray(firstPrefix) ? firstPrefix : [firstPrefix]).filter(Boolean)[0] ?? '')
380
const tagWithPrefix = (tag: string, combinator: string) => createTaggedPseudoClassMatcher<T>(tag, attributify ? `[${firstPrefix}${tag}=""]` : `.${firstPrefix}${tag}`, combinator, utils)
381
382
return [
0 commit comments