You need to sign in to do that
Don't have an account?
Agustina Garcia
Issues with SLDS on Lightning Component Basis Trailhead
I'm working on Lightning Component Basis T and I'm not able to get the style that is shown in the Trailhead.
I have followed these steps: https://trailhead.salesforce.com/lex_dev_lc_basics/lex_dev_lc_basics_prereqs and download latest version from here https://www.lightningdesignsystem.com/downloads/ , in my case 2.1.2.
However following steps, when I cretae the .app and used my static resource, the result is not the same.
This is the static resource:
This is the code where I call the static resource
This is my result:
And this is the expected one per trailhead:
What am I missing?
Cheers
I have followed these steps: https://trailhead.salesforce.com/lex_dev_lc_basics/lex_dev_lc_basics_prereqs and download latest version from here https://www.lightningdesignsystem.com/downloads/ , in my case 2.1.2.
However following steps, when I cretae the .app and used my static resource, the result is not the same.
This is the static resource:
This is the code where I call the static resource
<aura:application > <!-- Include the SLDS static resource (adjust to match package version) --> <ltng:require styles="{!$Resource.SLDS212_1 + '/assets/styles/salesforce-lightning-design-system-ltng.css'}"/> ....
This is my result:
And this is the expected one per trailhead:
What am I missing?
Cheers
update your <ltng:require> with this line
and now check
Thanks
mark it best answer if it's helps you :)