Skip to content

Custom selectors not working only on solidjs ( unocss ) #1449

@siduck

Description

@siduck

Describe the bug

hi there, Im using unocss and i use this syntax to add classes for all span elements in a div [&_span]:bg-red , this will add bg-red to all span elements of the parent div

that syntax works in unocss playground

Where as it doesnt work when used with solidjs only

https://codesandbox.io/s/weathered-bush-nhq6ov?file=/src/index.jsx

Some examples provided by @high1 ( stackbiltz examples, look at the siduck text color, its not highlighted in only solid-js )

https://stackblitz.com/edit/github-4lynj1?file=src%2FClockFace.svelte%3AL69 ( svelte )
https://stackblitz.com/edit/github-hnrwfp?file=src%2FClockFace.tsx%3AL66 ( voby )
https://stackblitz.com/edit/github-prvqmz?file=src%2FClockFace.tsx%3AL71 ( solidjs )

@high1 affirmed me that this was a bug in solid-js, so made an issue here!

Your Example Website or App

https://codesandbox.io/s/weathered-bush-nhq6ov?file=/src/index.jsx

Steps to Reproduce the Bug or Issue

https://codesandbox.io/s/weathered-bush-nhq6ov?file=/src/index.jsx

https://github.com/eeek76/uno

Expected behavior

Custom selectors should work with unocss.

Platform

All browsers

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions