You need to sign in to do that
Don't have an account?
SF Operator
lightningStylesheets not working
I migrated from classic to lightning, I want to maintain both. I'm adding lightningStylesheets=true to some vf pages that are not changing their style to lightning. It doesn't work with every page. Why?
Hope below link gives you more information on 'Visualforce page does not always respect lightningStylesheets='true''
https://help.salesforce.com/articleView?id=000314958&language=en_US&type=1&mode=1
Hope above information was helpful.
Please mark as Best Answer so that it can help others in the future.
Thanks,
Vinay Kumar
Can you check VF page version and try to upgrade to the latest.
Also, lightningStylesheets attribute isn’t supported in Communities.
Thanks,
Vinay Kumar
My VF page version is 48.0 and we are not using Communities.
I would love to know if there are another way to set UserPreferencesLightningExperiencePreferred.
Thank you for your fast reply.
Thanks,
Vinay Kumar
Check below example.
https://automationchampion.com/category/user-management/
Hope this will help.
Thanks,
Vinay Kumar