-
-
Notifications
You must be signed in to change notification settings - Fork 176
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Remove tick mark in li and add text in it #125
Comments
Even I need to add text into li's, could any one please help! |
The "text out side li" is the step name, so you can set that to "" if you want it to be empty. {name: 'CHANGE NAME HERE', component: <Step1 getStore={() => (this.getStore())} updateStore={(u) => {this.updateStore(u)}} />}, To add text or remove the tick mark from the progress tracker, you can add css and html to the renderSteps return. renderSteps() {
return this.props.steps.map((s, i) => (
<li
className={this.getClassName('progtrckr', i)}
onClick={evt => {
this.jumpToStep(evt);
}}
key={i}
value={i}
>
<em>{i + 1}</em>
<span>{this.props.steps[i].name}</span>
</li>
));
} |
Thanks for the clarification. Yes, the LIs only hold the “name” of the step. The rest is all done via CSS do you should be able to use CSS to do this. Closing for now. Also check this out - #113 |
@brennondenny on a side node, I've added you as a collaborator to this project as you have been helping a lot with solving tickets. Hope you accept and help us grow StepZilla. |
Hi,
I need to add text inside round li (by increasing width - looks like a rounded button) instead of tick mark.and remove text out side li(which is on top)
Please help.
Thank you!
The text was updated successfully, but these errors were encountered: