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

Format v-bind in css #2105

Closed
sarasate opened this issue Nov 10, 2022 · 0 comments
Closed

Format v-bind in css #2105

sarasate opened this issue Nov 10, 2022 · 0 comments
Labels
enhancement New feature or request

Comments

@sarasate
Copy link

When using a condition or a ternary operator in a v-bind() within css, the inline part (JS) of the v-bind is not formatted.
Environment: Volar formatter in VSCode

Example:
background: v-bind(' props.background|| "var(--primary-lighter)"');

@johnsoncodehk johnsoncodehk added the enhancement New feature or request label Nov 29, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants