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

Hidden Steps Take Up Space When Not Shown #89

Open
JJamour opened this issue Aug 13, 2021 · 1 comment
Open

Hidden Steps Take Up Space When Not Shown #89

JJamour opened this issue Aug 13, 2021 · 1 comment

Comments

@JJamour
Copy link

JJamour commented Aug 13, 2021

In Style.css:

.step {
opacity: 0;
pointer-events: none;
position: absolute;
top: 0;
width: 100%;
z-index: 0;
}

.active {
opacity: 1;
pointer-events: inherit;
position: relative;
z-index: 1;
}

You seem to toggle opacity to hide and show the steps of the wizard. When you have a long step (height wise) before a shorter step, the steps are all rendered on the page, but due to the tall step, you get a scrollbar on the very short step:

Image of Issue

Is there any reason it's done this way, rather than setting the below which seems to work fine?:

.step {
display: none;
pointer-events: none;
position: absolute;
top: 0;
width: 100%;
z-index: 0;
}

.active {
display: inherit;
pointer-events: inherit;
position: relative;
z-index: 1;
}

@JJamour
Copy link
Author

JJamour commented Aug 13, 2021

Just for the record setting 'isLazyMount' causes only one component to be rendered at a time which fixes the core issue without a style change, but I'm sure there would be some that would not want to enable that just to fix a CSS issue.

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

1 participant