Skip to content
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

Closed
srevoju opened this issue Nov 22, 2018 · 4 comments
Closed

Remove tick mark in li and add text in it #125

srevoju opened this issue Nov 22, 2018 · 4 comments

Comments

@srevoju
Copy link

srevoju commented Nov 22, 2018

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!

@Krishi1110
Copy link

Even I need to add text into li's, could any one please help!
Thank you in advance.

@brennondenny
Copy link
Collaborator

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>
    ));
  }

@newbreedofgeek newbreedofgeek changed the title Revome tick mark in li and add text in it Remove tick mark in li and add text in it Jan 25, 2019
@newbreedofgeek
Copy link
Owner

newbreedofgeek commented Jan 25, 2019

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

@newbreedofgeek
Copy link
Owner

@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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants