You need to sign in to do that
Don't have an account?
Alexander Hadjiiordanov
How to add custom css to the leads tab
In my custom tabs i simply add the following code to the component:
How can i load the same css file for "Leads" or "Contacts" tabs?
<ltng:require styles="{!$Resource.globalcss}"/>and it loads a static resource css file.
How can i load the same css file for "Leads" or "Contacts" tabs?
the only way is you can able to override the tab with some custom component
or try to override the salesforce lead tab css by using ! imprtance
ltng:require only works in context of Custom Lighting Aura Components. You can load static resources that can be used within your custom components. You cannot utilize this to inject styling into the Standard Tabs.
If you want to customize the look and feel of the Tabs, your only option is to create a Custom Lightning Aura Component and utilize that in a Custom Tab.
You may also go through the below link:
https://help.salesforce.com/articleView?id=creating_flexipage_tabs.htm&type=0
I hope you find the above solution helpful. If it does, please mark as Best Answer to help others too.
Thanks,
Ajay Dubedi