-
Notifications
You must be signed in to change notification settings - Fork 51
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
spaces on selectors (or containers in general) don't work #172
Comments
@jquense thanks for issue, why don't use |
i don't know how too! :) I didn't see that in the documentation. The problem I'm running into here is the case where we replace a pseudo selector with it's children. its a bit awkward to do: |
@jquense hm, |
they may work, i just don't know what they are. looking at the code tho, toString() for containers doesn't use them? |
gotcha, yeah that works for a This may be intentional, it's hard to know if you what to do if you put spaces on both the first node and the selector itself. Overall its more inconvenient than anything, and makes the case where the inner node doesn't exist yet hard |
@jquense do you have ideas how we can improve this? You can send a PR and we can discussion in a PR |
/cc @jquense friendly ping |
I don't have a good suggestion right now unfortunately. I'd be nicer if the logic in postcss-local-by-default could be simplified but i'm not sure the right way to handle it given the way this package works |
I think the idea is that the spaces go on the nodes, but that's a bit unwieldy of an API when walking through the or transforming selectors, since you drill down and find the first non-container thing to apply spacing too.
The text was updated successfully, but these errors were encountered: