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
fix(form/login/wizard): fixed undefined issues with IE11 script #1871
Conversation
Deploy preview for pf-next ready! Built with commit 4cb5b0c |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
@@ -59,7 +64,6 @@ | |||
|
|||
// Toggle list | |||
--pf-c-wizard__toggle-list--MarginRight: var(--pf-global--spacer--sm); | |||
--pf-c-wizard__toggle-list--MarginBottom: calc(var(--pf-c-wizard__toggle-list-item--MarginBottom) * -1); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Did you mean to remove this? Seems like you want to just move it below where --pf-c-wizard__toggle-list-item--MarginBottom
is defined.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I did mean to remove it because this one also came out to be zero. I'll double check to make sure.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
it's -4px
for me.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yeah my mistake thanks will add it back.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done.
@@ -270,7 +271,6 @@ | |||
flex-wrap: wrap; | |||
align-items: baseline; | |||
margin-right: var(--pf-c-wizard__toggle-list--MarginRight); | |||
margin-bottom: var(--pf-c-wizard__toggle-list--MarginBottom); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Then add this back if you add --pf-c-wizard__toggle-list--MarginBottom
back.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done.
@@ -115,9 +119,6 @@ | |||
--pf-c-wizard__nav-link--m-disabled--Color: var(--pf-global--Color--dark-200); | |||
|
|||
// Nav link number | |||
--pf-c-wizard__nav-link--before--Width: 1.5rem; | |||
--pf-c-wizard__nav-link--before--Height: 1.5rem; | |||
--pf-c-wizard__nav-link--before--Top: 0; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
instead of moving just these 3 lines, can you move this whole block up so that the // Nav link number
CSS is all in one spot?
@@ -76,7 +76,6 @@ | |||
--pf-c-login__main-footer-links--PaddingRight: var(--pf-global--spacer--3xl); | |||
--pf-c-login__main-footer-links--PaddingBottom: var(--pf-global--spacer--xl); | |||
--pf-c-login__main-footer-links--PaddingLeft: var(--pf-global--spacer--3xl); | |||
--pf-c-login__main-footer-links--MarginBottom: calc(var(--pf-c-login__main-footer-links--MarginBottom) * -1); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same question as @mcoker had on removing --pf-c-wizard__toggle-list--MarginBottom
from wizard.scss - did you mean to remove it completely or just move this line below --pf-c-login__main-footer-links--MarginBottom
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Wait, nevermind - I see this is actually self-referential?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yep. If you look now the margin there just computes to 0 since --pf-c-login__main-footer-links--MarginBottom
isn't defined anywhere else.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
As long as this wasn't a mistake where it really should have been assigned to another variable. I'm not sure why it would have been put in there that way. But, I don't know what the original specs were.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah I looked at the commit where this was introduced (#1281) and looks like a mistake. The layout matches the design in sketch, too.
@@ -106,18 +117,7 @@ | |||
// Nav item | |||
--pf-c-wizard__nav-item--MarginTop: var(--pf-global--spacer--md); | |||
|
|||
// Nav link |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oh you moved this block instead of the // Nav link number block
It should be
// Nav link
--pf-c-wizard__nav-link--Color: var(--pf-global--Color--100);
--pf-c-wizard__nav-link--TextDecoration: var(--pf-global--link--TextDecoration);
--pf-c-wizard__nav-link--hover--Color: var(--pf-global--link--Color);
--pf-c-wizard__nav-link--focus--Color: var(--pf-global--link--Color);
--pf-c-wizard__nav-link--m-current--Color: var(--pf-global--link--Color);
--pf-c-wizard__nav-link--m-disabled--Color: var(--pf-global--Color--dark-200);
// Nav link number
--pf-c-wizard__nav-link--before--Width: 1.5rem;
--pf-c-wizard__nav-link--before--Height: 1.5rem;
--pf-c-wizard__nav-link--before--Top: 0;
--pf-c-wizard__nav-link--before--BackgroundColor: var(--pf-global--BackgroundColor--300);
--pf-c-wizard__nav-link--before--BorderRadius: var(--pf-global--BorderRadius--lg);
--pf-c-wizard__nav-link--before--Color: var(--pf-global--Color--100);
--pf-c-wizard__nav-link--before--FontSize: var(--pf-global--FontSize--sm);
--pf-c-wizard__nav-link--before--Transform: translateX(calc(-100% - var(--pf-global--spacer--sm)));
--pf-c-wizard__nav-link--m-current--before--BackgroundColor: var(--pf-global--active-color--100);
--pf-c-wizard__nav-link--m-current--before--Color: var(--pf-global--Color--light-100);
--pf-c-wizard__nav-link--m-disabled--before--BackgroundColor: transparent;
--pf-c-wizard__nav-link--m-disabled--before--Color: var(--pf-global--Color--dark-200);
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
🎉 This PR is included in version 2.8.3 🎉 The release is available on: Your semantic-release bot 📦🚀 |
You all are crazy fast with this, thanks for helping my #1876 :) |
Fixed order of variables which was causing the IE conversion script to generate undefined. Also removed a login variable that was not needed. This was also causing the IE scripts to generate undefined.
This resolves issue: #1869