diff --git a/packages/core/test/__snapshots__/order.test.ts.snap b/packages/core/test/__snapshots__/order.test.ts.snap index c4ae97d06f..2b89969211 100644 --- a/packages/core/test/__snapshots__/order.test.ts.snap +++ b/packages/core/test/__snapshots__/order.test.ts.snap @@ -20,8 +20,8 @@ exports[`order > multiple variant sorting 1`] = ` exports[`order > pseudo-elements sorting 1`] = ` "/* layer: default */ -.dark .dark\\:hover\\:file\\:marker\\:bg-red-600 ::marker::file-selector-button:hover{--un-bg-opacity:1;background-color:rgb(220 38 38 / var(--un-bg-opacity));} -.dark .dark\\:file\\:marker\\:hover\\:bg-red-600:hover ::marker::file-selector-button{--un-bg-opacity:1;background-color:rgb(220 38 38 / var(--un-bg-opacity));}" +.dark .dark\\:hover\\:file\\:marker\\:bg-red-600::file-selector-button:hover::marker{--un-bg-opacity:1;background-color:rgb(220 38 38 / var(--un-bg-opacity));} +.dark .dark\\:file\\:marker\\:hover\\:bg-red-600:hover::file-selector-button::marker{--un-bg-opacity:1;background-color:rgb(220 38 38 / var(--un-bg-opacity));}" `; exports[`order > variant ordering 1`] = ` diff --git a/packages/preset-mini/src/_variants/pseudo.ts b/packages/preset-mini/src/_variants/pseudo.ts index 59d08bea62..57a96e06d0 100644 --- a/packages/preset-mini/src/_variants/pseudo.ts +++ b/packages/preset-mini/src/_variants/pseudo.ts @@ -70,7 +70,7 @@ const PseudoClasses: Record = Object.fromEntries([ ['before', '::before'], ['after', '::after'], ['selection', ' ::selection'], - ['marker', ' ::marker'], + ['marker', '::marker'], ['file', '::file-selector-button'], ].map(key => Array.isArray(key) ? key : [key, `:${key}`])) diff --git a/test/assets/output/preset-mini-targets.css b/test/assets/output/preset-mini-targets.css index bfd272c990..433704cf43 100644 --- a/test/assets/output/preset-mini-targets.css +++ b/test/assets/output/preset-mini-targets.css @@ -606,7 +606,7 @@ unocss .scope-\[unocss\]\:block{display:block;} .hover\:is-first\:checked\:bg-true-gray\/10:checked:is(:first-child):hover{background-color:rgb(163 163 163 / 0.1);} .hover\:not-first\:checked\:bg-red\/10:checked:not(:first-child):hover{background-color:rgb(248 113 113 / 0.1);} .hover\:not-first\:checked\:bg-true-gray\/10:checked:not(:first-child):hover{background-color:rgb(163 163 163 / 0.1);} -.marker\:bg-violet-200 ::marker{--un-bg-opacity:1;background-color:rgb(221 214 254 / var(--un-bg-opacity));} +.marker\:bg-violet-200::marker{--un-bg-opacity:1;background-color:rgb(221 214 254 / var(--un-bg-opacity));} .file\:bg-violet-50::file-selector-button{--un-bg-opacity:1;background-color:rgb(245 243 255 / var(--un-bg-opacity));} .bg-opacity-\[--opacity-variable\], .bg-opacity-\$opacity-variable{--un-bg-opacity:var(--opacity-variable);}