Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Variants doesn't work for full-advanced rules #3649

Open
4 tasks done
aksiere opened this issue Mar 22, 2024 · 1 comment
Open
4 tasks done

Variants doesn't work for full-advanced rules #3649

aksiere opened this issue Mar 22, 2024 · 1 comment

Comments

@aksiere
Copy link

aksiere commented Mar 22, 2024

UnoCSS version

latest

Describe the bug

Built-in presetUno’s variants (custom variants too) does nothing when adding breakpoint modifiers to advanced rules.

Reproduction

REPL

Same thing with custom variant: REPL

System Info

No response

Validations

@henrikvilhelmberglund
Copy link
Contributor

When using full controlled rules you need to apply the variants yourself. I don't know the best way to do this but here is an example:
https://unocss.dev/play/?html=DwVwNgBAxmCGDO8C8ByAdgFwBYFoCMAXAEYDmOATgKYAmEAttQZroaTkWCJSgHwBQASGBgAljwAiAe0rw0KDBADuk8gGsIktBCrwRAL0rAA9KP5DTASQyU6EAEzHTg4SOhxEqNiXKwAnvUY2alg1b0pKOR4AdRVVeAgAMxE0Sg0tHX1DEzE%2BY3AeIA&config=FASwtgDg9gTgLgAgN4ICYFMBmIB26DCUO2A5gDQJxQCiAzgMYCGE6qAyugDbr1UwBcCdBQgx0tdHACqOKAgC%2BCTDChgEAcgCus%2BrVrrgwdAA9o8NFkabOiDNjyFiIEgAokwBAhjXxggNoengh%2BAPQAejhwABYAOgC0LjGoANQAlDH8LgB0AFSpACQhFIy0AJ449AgufowUqBQwALoUKDCMAO4c3LywFPREtHDevPhsbBQk6HhtfBQAbowwIIyRABIrqNwwtBTR6GDoCqkIALwAfMiBQQj9OINePqcIHYwgiJPTjHxZEIsSACpQADWUxcMFSVyCIEwVQWSxWcHWOE26G2WW4OBI0WO7mu11u9wOqGWAEVNKjSk82p0uDxvrQIJw3i4AET8FmpPwABkaAG5IddoVU9gcsgAjMSMIHQXBwWh%2BImk8kwUqNHGeAV4sRwTQwHAIAAGAAFFYwqmBcHF2iBUNFBPkkCL0OLJdKoLL5aayRTGvJUu4HegwR0unTYKlFCgLjl%2BJEonF6FEQJxUC4Hag-cgEA7vNxuY0-AAmX3yeTAeQGzWeRRcCSXPFayS6-UGwPBmndPgRhDR2PRBNJlNppAZ9U5nz5oslysN6uassN2uHXGz7XNw1t6mhnrgxS9uMD5Op9OZlDjvM8qelmd4hdBeTNSGhMJikgJGLtNKFCjVPpQTiwGqpwXG4Ghiow9BAiQKjaKgCb-rA6iCK2SD9ABMAVkcj6eNhCCiOIki0P4%2BESNIsguKkj5%2BsAQA&css=PQKgBA6gTglgLgUzAYwK4Gc4HsC2YDCAyoWABYJQIA0YAhgHYAmYcUD6AZllDhWOqgAOg7nAB0YAGLcwCAB60cggDYIAXGBDAAUKDBi0mXGADe2sGC704AWgDuCGAHNScDQFYADJ4Dc5sAACtMLKAJ5gggCMLPK2ABR2pPBIcsoAlH4WAEa0yADWTlBYqEw2yFjK3Bpw5LxxAOTllVDoYpSMYgAs3vUZ2gC%2BmsBAA&options=N4IgLgTghgdgzgMwPYQLYGECucxIwZXxAC4EoAbOAUwBpxp5k0AJMVcksyqgXyA

Docs on how to do this properly would probably be a good idea, right now there's only an example on how to ignore matching variants.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants