Skip to content

Always wrap certain CSS prop values (box-shadow, text-shadow, etc) - #13260

Closed
sciyoshi wants to merge 1 commit into
prettier:mainfrom
sciyoshi:6024-always-wrap-props
Closed

sciyoshi wants to merge 1 commit into
prettier:mainfrom
sciyoshi:6024-always-wrap-props

Conversation

@sciyoshi

@sciyoshi sciyoshi commented Aug 8, 2022

Copy link
Copy Markdown

Description

Always wrap specific CSS property values (box-shadow, transition, background-image, text-shadow, background). Fixes #6024

Checklist

  • I’ve added tests to confirm my change works.
  • (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 Aug 9, 2022

Copy link
Copy Markdown
Member

👍 For this, we need more tests.

const wrappedProps = new Set([
"box-shadow",
"transition",
"background-image",

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

@sciyoshi

sciyoshi commented Aug 9, 2022

Copy link
Copy Markdown
Author

For this, we need more tests.

Definitely - I also have a small thing to fix in the implementation first. Just wanted to make sure that this was a change that would be accepted before fixing up those additional things.

@sciyoshi

sciyoshi commented Aug 9, 2022

Copy link
Copy Markdown
Author

@fisker I think this PR needs a design decision before I can move forward - I'd be curious to hear your thoughts on #6024 (comment).

@bronzegoddess

Copy link
Copy Markdown

This is much needed

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.

When box-shadow has multiple values (separated by comma) it'd be prettier to put each value on a separate line

3 participants