Can we make one component inherit styles/css from a parent component, or must we always define it in the component ?



Can we make one component inherit styles/css from a parent component, or must we always define it in..

Answer / 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

More Salesforce Interview Questions

What is an apex transaction?

1 Answers  


Explain functionality of force.com query optimizer?

1 Answers  


What is the default batch size if we enable bulk api?

1 Answers  


What are governor limits in salesforce?

1 Answers  


What is a workflow field update? : salesforce admin

1 Answers  


What services are provided by the cloud giant Force.com?

1 Answers   B-Ways TecnoSoft,


What is visualforce? : salesforce visualforce

1 Answers  


Difference between Trigger.new & Trigger.old?

1 Answers   Accenture,


Define Sharing Rules?

1 Answers   Deloitte,


What is track field history?

1 Answers  


What do you think are the best practices of creating contact sharing rules?

1 Answers  


What are record types?

1 Answers  


Categories