As far I know there is no alternate for .THIS in CSS.
Add .THIS CSS class to all top-level elements in the lightning component. It effectively adds namespacing to CSS and helps prevent one component’s CSS from blowing away another component’s styling. If you are not using .THIS class for all top-level element then framework throws an error.
Hope above information was helpful.
Please mark as Best Answer so that it can help others in the future.
As far I know there is no alternate for .THIS in CSS.
Add .THIS CSS class to all top-level elements in the lightning component. It effectively adds namespacing to CSS and helps prevent one component’s CSS from blowing away another component’s styling. If you are not using .THIS class for all top-level element then framework throws an error.
Hope above information was helpful.
Please mark as Best Answer so that it can help others in the future.
I don't think there is an alternative. All of the CSS selectors need to include “.THIS”: and it is required. Failure to do so will give the below error
As far I know there is no alternate for .THIS in CSS.
Add .THIS CSS class to all top-level elements in the lightning component. It effectively adds namespacing to CSS and helps prevent one component’s CSS from blowing away another component’s styling. If you are not using .THIS class for all top-level element then framework throws an error.
Hope above information was helpful.
Please mark as Best Answer so that it can help others in the future.
Thanks,
Vinay Kumar
All Answers
As far I know there is no alternate for .THIS in CSS.
Add .THIS CSS class to all top-level elements in the lightning component. It effectively adds namespacing to CSS and helps prevent one component’s CSS from blowing away another component’s styling. If you are not using .THIS class for all top-level element then framework throws an error.
Hope above information was helpful.
Please mark as Best Answer so that it can help others in the future.
Thanks,
Vinay Kumar
I don't think there is an alternative. All of the CSS selectors need to include “.THIS”: and it is required. Failure to do so will give the below error
You can learn more about this here
If you find this information helpful, please mark this answer as Best. It may help others in the community