7

We are developing a new Lightning Community to replace our Partner Community. However, when we use our visualforce pages with LightningStylesheets=true on the Lightning Community, the Lightning styling is not applied.

I understand that this is the case because Lightning Communities are not Lightning Experience.

Is there a way to force LightningStylesheets anyway? I am trying to stay away from having to rebuild/restyle all our legacy visualforce pages.

5

LightningStylesheets=true has limitations and will try to style your page as close as it can to SLDS, however, it does not support all apex:tags, I would suggest you read apex:slds vs lightningstylesheet option which explains in more detail the difference.

Without your VF page code, we cant really suggest the best approach either.

| improve this answer | |
  • Actually adding the apex:slds tag more or less did the trick. I was expecting I'd have to style individual elements as well, but that's not necessary. It applies a general Lighting look&feel automatically. Only thing is that it is not conditional, so it shows the page in Lightning look&feel even for Classic users. But I was able to solve that with a rendered tag. – Guy Clairbois Mar 13 '18 at 20:41
  • good stuff =), cheers! – glls Mar 13 '18 at 20:43

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.