You need to sign in to do that
Don't have an account?
Rohit Attri
Need help in Completing Trailhead challenge
Need help!
I am trying to complete Lightning "Create and Edit Lightning Components" trailhed challenge .
Create a camping component that contains a campingHeader and a campingList component.
The campingList component contains an ordered list of camping supplies that include Bug Spray, Bear Repellant, and Goat Food.
The campingHeader component contains an H1 heading style with a font size of 18 points and displays 'Camping List'.
I created Camping Component :
<aura:component >
<c:campingList/>
<c:campingHeader/>
</aura:component>
campingList Component:
<aura:component >
<h1> type="List" default="['Bug Spray', 'Bear Repellant', 'Goat Food']"</h1>
</aura:component>
CampingHeader Component:
<aura:component >
<H1>Camping List</H1>
</aura:component>
And a css tp add font-size
.THIS {
}
H1.THIS {
font-size:18px;
}
But I am getting below error :
Challenge Not yet complete... here's what's wrong:
The component is not using the correct font size.
Please help.
I am trying to complete Lightning "Create and Edit Lightning Components" trailhed challenge .
Create a camping component that contains a campingHeader and a campingList component.
The campingList component contains an ordered list of camping supplies that include Bug Spray, Bear Repellant, and Goat Food.
The campingHeader component contains an H1 heading style with a font size of 18 points and displays 'Camping List'.
I created Camping Component :
<aura:component >
<c:campingList/>
<c:campingHeader/>
</aura:component>
campingList Component:
<aura:component >
<h1> type="List" default="['Bug Spray', 'Bear Repellant', 'Goat Food']"</h1>
</aura:component>
CampingHeader Component:
<aura:component >
<H1>Camping List</H1>
</aura:component>
And a css tp add font-size
.THIS {
}
H1.THIS {
font-size:18px;
}
But I am getting below error :
Challenge Not yet complete... here's what's wrong:
The component is not using the correct font size.
Please help.
For more on px vs pt, see:
http://kyleschaeffer.com/development/css-font-size-em-vs-px-vs-pt-vs/
.THIS {
}
H1.THIS {
font-size:18pt;
}
Thanks,
Amit
That problem is resolved but now i am getting error in CampingList component.
I tried this
campingList Component:
<aura:component >
<h1> type="List" default="['Bug Spray', 'Bear Repellant', 'Goat Food']"</h1>
</aura:component>
and getting an error
Challenge Not yet complete... here's what's wrong:
The 'campingList' component does not include the correct markup.
Then I tries using <aura:attribute>
<aura:component >
<aura:attribute name="CampingList" type="List" default="['Bug Spray', 'Bear Repellant', 'Goat Food']" />
</aura:component>
But I still getting the same error.
I am stuck here.
Please help
<aura:component >
<ol >
<li>Bear Repellant</li>
<li>Bug Spray</li>
<li>Goat Food</li>
</ol>
</aura:component>
Thank You!
I am also facing same issue even after updating the correct code. Please suggest.
CampingList.cmp
<aura:component >
<ol >
<li>Bear Repellant</li>
<li>Bug Spray</li>
<li>Goat Food</li>
</ol>
</aura:component>
CampingHeader.css
.THIS {
}
H1.THIS {
font-size:18pt;
}
CampingHeader.cmp
<aura:component >
<H1>Camping List</H1>
</aura:component>
Camping.cmp
<aura:component >
<c:campingList/>
<c:campingHeader/>
</aura:component>
Challenge Not yet complete... here's what's wrong:
The component is not using the correct font size.
.THIS H1 {
font-size:18pt;
}