Dynamic styling of CSS using Style Tag Visual studio Code css-identifierexpected warning
Hi,
I ve got the following code in one of my custom component html templates:
<style data-sly-test="${formInput.getGrowFactor}">
#${formInput.name @ context="styleString"}Id${formInput.uniqueId @ context="styleString"}Wrapper {
flex-grow: ${formInput.getGrowFactor @ context="styleString"};
}
</style>
the code itself is working, but my IDE Visual Studio Code is generating the following errors:
css-identifierexpected
css-propertyvalueexpected
Looks like htl ${} syntax is not compliant with some other validation tool.
Anybody knows how I may get rid of these errors ?
Thanks a lot for your support in advance.
--
volker