adspace
Can we make one component inherit styles/css from a parent component, or must we always define it in the component ?
Answer Posted / Ram Updesh Singh
Yes, in Salesforce Lightning components, you can define a custom base component and let child components inherit its styles using the `extends="c:baseComponent"` attribute. However, if you don't have a parent component to inherit from, you must define the styles in each component.
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers