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

Rule.Selector now accepts string array instead of string #534

Conversation

zakybilfagih
Copy link
Collaborator

Fixes #533

Breaking change to the API, now selector accepts string array instead of string

Copy link

vercel bot commented Dec 25, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

1 Skipped Deployment
Name Status Preview Comments Updated (UTC)
styled-ppx ⬜️ Ignored (Inspect) Visit Preview Dec 25, 2024 10:51am

@zakybilfagih zakybilfagih requested a review from davesnx December 25, 2024 04:10
Copy link
Owner

@davesnx davesnx left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Love this, to avoid the breaking change can we make CSS.selector include the array and CSS.selector* accept the array as argument?

The ppx should always generate the selector*, wdyt?

I'm unsure what's a decent name for selector* (maybe selectorMany? dunno, totally up to you)

@zakybilfagih
Copy link
Collaborator Author

Love this, to avoid the breaking change can we make CSS.selector include the array and CSS.selector* accept the array as argument?

The ppx should always generate the selector*, wdyt?

I'm unsure what's a decent name for selector* (maybe selectorMany? dunno, totally up to you)

yup agreed 100%, i think selectorMany should be good enuf

@davesnx davesnx merged commit f0c162d into davesnx:main Jan 13, 2025
7 checks passed
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

Successfully merging this pull request may close these issues.

Split multiple selectors fails on functional pseudo classes
2 participants