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

Remove warnings for aura:component inline style with dynamic value #1123

Closed
combizs opened this issue Mar 5, 2019 · 1 comment
Closed

Remove warnings for aura:component inline style with dynamic value #1123

combizs opened this issue Mar 5, 2019 · 1 comment

Comments

@combizs
Copy link

combizs commented Mar 5, 2019

Summary

Short summary of what is going on or to provide context.
Using the Aura Components VSCode plugin, when you have a dynamic inline style for an aura component, error(s) should not be thrown by the validator.

Steps To Reproduce:

  1. Create lightning component
  2. Define a <div> to apply an inline style
  3. Apply an inline style with a dynamic value, i.e.:
<aura:component>
  <aura:attribute name="red" type="String" default="#ff0000" />
  <div style="{!'padding:0.5rem; background-color:' + red}">hello world!</div>
</aura:component>

Expected result

Describe what should have happened.
There should be no warnings for the component file regarding this matter.

Actual result

Describe what actually happened instead.
There are 3 warnings: emptyRules, css-rcurlyexpected, css-rcurlyexpected
screen shot 2019-03-05 at 9 58 13 am

Additional information

Feel free to attach a screenshot.

VS Code Version:
Version 1.31.1 (1.31.1)

SFDX CLI Version:
sfdx-cli/6.55.1-be0b3dc4c4

OS and version:
mac darwin-x64

@ntotten
Copy link
Contributor

ntotten commented Mar 6, 2019

Duplicate of #950

@ntotten ntotten marked this as a duplicate of #950 Mar 6, 2019
@ntotten ntotten closed this as completed Mar 6, 2019
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

No branches or pull requests

2 participants