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

Issues with horizontal stepper #77

Open
ermarkar opened this issue Jun 25, 2019 · 5 comments
Open

Issues with horizontal stepper #77

ermarkar opened this issue Jun 25, 2019 · 5 comments
Labels

Comments

@ermarkar
Copy link

HTML Code

<ul class="stepper horizontal" #contentTypeStepper style="min-height:458px">
    <li class="step active">
        <div class="step-title">Step 1</div>
        <div class="step-content">
            <p>
                Step 1 Data
            </p>
            <!-- Your step content goes here (like inputs or so) -->
            <div class="step-actions">
                <!-- Here goes your actions buttons -->
                <button class="waves-effect waves-dark btn next-step">CONTINUE</button>
            </div>
        </div>
    </li>
    <li class="step">
        <div class="step-title">Step 2</div>
        <div class="step-content">
            <p>
                Step 2 Data
            </p>
            <!-- Your step content goes here (like inputs or so) -->
            <div class="step-actions">
                <!-- Here goes your actions buttons -->
                <button class="waves-effect waves-dark btn previous-step">CONTINUE</button>
            </div>
        </div>
    </li>
</ul>

and in ts file

this.iContentTypeStepper = new MStepper(this.contentTypeStepper.nativeElement, {
            firstActive: 0 // this is the default
});

but this is not working properly.

stepper1

And on click of Step1 it changes to

stepper2

Issues

  1. It is showing 2 in the first step
  2. I am not able to click on any step now
@Kinark
Copy link
Owner

Kinark commented Jul 4, 2019

Could you please provide a jsfiddle or something? I couldn't reproduce the bug and it's working well on the docs: https://kinark.github.io/Materialize-stepper/#demos_horizontal

@Kinark Kinark added the bug label Jul 4, 2019
@ermarkar
Copy link
Author

Hi, try removing waves-effect waves-dark classes from buttons.

@MQS520
Copy link

MQS520 commented Sep 9, 2019

Hi, I have the same problem, this is my codes.

`

    <meta charset="UTF-8">

    <meta name="viewport" content="width=device-width, initial-scale=1.0">

    <meta http-equiv="X-UA-Compatible" content="ie=edge">

​ <title>Document</title>

​ <link rel="stylesheet" href="./css/mstepper.min.css">

​ <ul class="stepper horizontal demos" id="horizontal" >

​ <li class="step">

                   <div data-step-label="To step-title!" class="step-title waves-effect waves-dark">Step 1

                   <div class="step-content">

                      <div class="row">

                         <div class="input-field col s12">

​ <input id="horizontal_email" name="horizontal_email" type="email" class="validate" required>

​ <label for="horizontal_email">Your e-mail

                      <div class="step-actions">

​ <button class="btn blue next-step">CONTINUE

​ <li class="step">

                   <div class="step-title waves-effect waves-dark">Step 2

                   <div class="step-content">

                      <div class="row">

                         <div class="input-field col s12">

​ <input id="horizontal_password" name="horizontal_password" type="password" class="validate" required>

​ <label for="horizontal_password">Your password

                      <div class="step-actions">

​ <button class="btn blue next-step" data-feedback="someFunction">CONTINUE

​ <button class="btn-flat previous-step">BACK

​ <li class="step">

                   <div class="step-title waves-effect waves-dark">Step 3

                   <div class="step-content">

​ Finish!

                      <div class="step-actions">

​ <button class="btn blue" type="submit">SUBMIT

<script src="./js/mstepper.min.js" />

`

And the effect I'm showing is:

![image-20190909230430223](/Users/mqs/Library/Application Support/typora-user-images/image-20190909230430223.png)

Can you show me your codes? Thinks

@josephwaiguru
Copy link

josephwaiguru commented Jan 15, 2021

It works after adding materialize.css

@mustafabeyazbulut
Copy link

it worked for me

ul.stepper.horizontal .step .step-title {
    position: relative;
}

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

No branches or pull requests

5 participants