function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Alexander HadjiiordanovAlexander Hadjiiordanov 

How to add custom css to the leads tab

In my custom tabs i simply add the following code to the component:
<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?
 
Raj VakatiRaj Vakati
I dnt think so .. 

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 
Alexander HadjiiordanovAlexander Hadjiiordanov
But where can i add it? Since there is no custom code for "Leads" where can i add custom css?
Ajay K DubediAjay K Dubedi
Hi Alexander,

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