salesforce-ux / design-system

Salesforce Lightning Design System
https://www.lightningdesignsystem.com
Other
3.57k stars 821 forks source link

<apex:slds> not loading lightning CSS when opening VF page in console application #439

Closed minhajksm closed 7 years ago

minhajksm commented 7 years ago

I have created a VF page which is lightning CSS enabled. It works fine when opening the page in Classic.

I added the tab of the VF page to Service Console app, but this time the page appears without any lightning css at all.

Can someone please tell me if I am missing something here.

Appreciate any help!

ishakasliwal commented 7 years ago

@minevskiy Thanks for the question. Unfortunately that does not fall under the lightning design system. Please check out the developer success community at: developer.salesforce.com/forums.

FeiyangGao commented 5 years ago

https://www.lightningdesignsystem.com/platforms/visualforce/ https://salesforce.stackexchange.com/questions/181617/style-visualforce-page-to-match-service-console the code as below. `

<head>
  <apex:slds/> 
</head>

<div class="slds-scope">
  <!-- Your SLDS-styled content -->
<button class="slds-button slds-button_neutral">Button</button>
</div>

</apex:page>`
nikhilmehra2906 commented 1 year ago

@FeiyangGao Thank you