Skip to content

Don’t break comma selectors when they only contain element selectors - #11783

Draft
j-f1 wants to merge 1 commit into
prettier:mainfrom
j-f1:css-comma-element-selector
Draft

j-f1 wants to merge 1 commit into
prettier:mainfrom
j-f1:css-comma-element-selector

Conversation

@j-f1

@j-f1 j-f1 commented Nov 8, 2021

Copy link
Copy Markdown
Member

Description

Fixes #5086.

Checklist

  • I’ve added tests to confirm my change works. (TODO: add more thorough tests, including one ensuring that very long lists will still break)
  • (If changing the API or CLI) I’ve documented the changes I’ve made (in the docs/ directory).
  • (If the change is user-facing) I’ve added my changes to changelog_unreleased/*/XXXX.md file following changelog_unreleased/TEMPLATE.md.
  • I’ve read the contributing guidelines.

✨Try the playground for this PR✨

@fisker

fisker commented Nov 8, 2021

Copy link
Copy Markdown
Member

Personally, I prefer one selector per line.

@arimgibson

Copy link
Copy Markdown

Personally, I prefer one selector per line.

@fisker in #5086 I had proposed having this be an option someone can configure; hoping that's the route this ends up taking

Anything I can do to help move this PR forward @j-f1? Let me know if there's anywhere to plug in!

This branch has not been deployed

No deployments
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.

No line break insertions in short CSS selectors

3 participants