-
Notifications
You must be signed in to change notification settings - Fork 197
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
Improve styles for sensei login page #7204
Conversation
Codecov Report
@@ Coverage Diff @@
## trunk #7204 +/- ##
============================================
- Coverage 50.31% 50.31% -0.01%
- Complexity 10860 10862 +2
============================================
Files 601 601
Lines 45673 45675 +2
Branches 402 402
============================================
Hits 22980 22980
- Misses 22366 22368 +2
Partials 327 327
Continue to review full report in Codecov by Sentry.
|
@@ -39,15 +39,15 @@ | |||
|
|||
<label for="sensei_user_login"><?php esc_html_e( 'Username or Email', 'sensei-lms' ); ?> </label> | |||
|
|||
<input type="text" name="log" id="sensei_user_login" class="input" value="" size="20"> | |||
<input type="text" name="log" id="sensei_user_login" class="input input-text" value="" size="20"> |
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 didn't name input-text
as per the convention because the same class name is used in the registration form. It's also looks like a convention to use this class in form input text fields, also used in woocommerce forms.
This covers also the non-block scenarios like shortcode and hook based renderings of login form, like with the course list block
Hi @renatho , thanks so much for reviewing -
I've just fallen back to use the previous my-courses ID selector as it is already there. It has solved issues with both the login shortcode and course list case e260a0d .
Yap right, thanks. It was some now-stale CSS. I've removed it here 22bdc7a
Actually, in all the TwentyTwenty series themes, the whole content was getting shrunk for some styles in those themes making the whole page look bad. So I've fixed it here e260a0d and now it has the same width as the woocommerce login page.
I did a bit of investigation and it turns out that the issue was not only with Divi and Twenty Twenty One, rather it was in all non-block themes. The notices got printed on top of the page, even above the navbar or header. It was due to how we handle the notices in the template. I've added a fix 7f7270d which makes the notices load nicely in all themes now. Thanks! |
Thank you for the fixes, @Imran92!
It seems it only fixes it for this specific notice, but the others using this method continue with the issue. I found #6173. If it's not very easy to fix, maybe we could revert the commit and work on that in another PR? About Twenty Twenty-One, I still noticed that we don't have spacing on the buttons. But feel free to ignore this one if it's not easy or needs a hacky solution to be fixed, since it doesn't seem to be a theme very used for Sensei currently. |
I think we need to address the other notice issues in a separate PR as this PR is login-specific and there are good chances of side effects of any global changes.
Right, I also don't think we probably shouldn't be too concerned about twenty twenty one theme issues. But I just added a little style here to add some space there only for twenty twenty one theme c8a3e27 |
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.
Looks good!! =)
I think we need to address the other notice issues in a separate PR as this PR is login-specific and there are good chances of side effects of any global changes.
About this, I wonder if we should revert the commit with the fix we did specifically to this part. So when we fix it globally, it gets fixed the same way in all the places. WDYT?
That's a very good thought @renatho and I also thought about this. But the login form has its own function call to notice printing to make sure it is displayed immediately above the login form or login block sensei/includes/class-sensei-frontend.php Line 1033 in 7a5caf4
|
Resolves #6368
Proposed Changes
Testing Instructions
Course theme:
Divi
Astra
Mobile
Error message
Pre-Merge Checklist