You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It will be better to put --css-vars in conditional styles like style={someprop is defined ? "--css-var: ${someprop}" : ""} insted of style="--css-var: {someprop}"`
this way you doesnt need to put !important if you do
.some-component{
color: #fff:
}
The text was updated successfully, but these errors were encountered:
ramiroaisen
changed the title
Avoid inline styles
Conditional inline styling
Sep 4, 2019
It will be better to put --css-vars in conditional styles like
style={someprop is defined ? "--css-var: ${someprop}" : ""} insted of
style="--css-var: {someprop}"`this way you doesnt need to put !important if you do
The text was updated successfully, but these errors were encountered: