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
RArunrajRArunraj 

Change the color of Standard Tabs

Hi,

 

Can any body tell me, How to change the color theme of Standard Tabs (Cases).

 

Thanks,

Best Answer chosen by Admin (Salesforce Developers) 
sfdcfoxsfdcfox

This works in the current release :

 

<style>
.accountTab .tabNavigation .tab .currentTab, .accountTab #contentWrapper #motifCurve, .accountTab #contentWrapper #motifCurve div {
	background-color: #f00;
}
</style>

You need to take a look at the class name of the tab (i.e. accountTab) to figure out what to change.

 

I only tested this in the new skin, so if you're using the older skin, I can't promise anything.

All Answers

rahul_123rahul_123

right now...Salesforce does not provide such functionality

sfdcfoxsfdcfox

I once (successfully) did this, but it was a "hack" whereby a sidebar component modified the CSS properties on the fly. You can't depend on this behavior working in the future.

RArunrajRArunraj

Hi,

 

Can you please post me the code or that particular css style for changing the Tab Color.

 

Thanks

sfdcfoxsfdcfox

This works in the current release :

 

<style>
.accountTab .tabNavigation .tab .currentTab, .accountTab #contentWrapper #motifCurve, .accountTab #contentWrapper #motifCurve div {
	background-color: #f00;
}
</style>

You need to take a look at the class name of the tab (i.e. accountTab) to figure out what to change.

 

I only tested this in the new skin, so if you're using the older skin, I can't promise anything.

This was selected as the best answer