You need to sign in to do that
Don't have an account?
Akansha Rangari
Dynamic Expression in the CSS file?
Hello,
I have component where I am selecting color by color picker and I want to show the text in that selected color code without using Style tag. How to acheive this in lightning component or is there any other way to do so.
Thanks in Advance!
I have component where I am selecting color by color picker and I want to show the text in that selected color code without using Style tag. How to acheive this in lightning component or is there any other way to do so.
Thanks in Advance!
As per this update (https://releasenotes.docs.salesforce.com/en-us/spring18/release-notes/rn_lc_style_tag.htm), <style> Tag Not Allowed in Components after Spring 18 release.
You might want to check with similar discussion here:
https://salesforce.stackexchange.com/questions/150523/expressions-in-the-css-file
Also,check out few implementations done around with similar type in the community here:
https://salesforce.stackexchange.com/questions/193776/color-picker-for-lightning-component
Hope above information helps. Please mark as Best Answer so that it can help others in future.
Thanks.