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

Login form doesn't display fine when bootstrap4 style is enqueued #888

Closed
eri-trabiccolo opened this issue Jun 24, 2019 · 8 comments · Fixed by #1161 or #1221
Closed

Login form doesn't display fine when bootstrap4 style is enqueued #888

eri-trabiccolo opened this issue Jun 24, 2019 · 8 comments · Fixed by #1161 or #1221
Labels
good first issue If you're a first time contributor this is a good issue for you! Status: Has PR This issue has an open pull request Type: Bug Bugs and errors

Comments

@eri-trabiccolo
Copy link
Collaborator

Need to enqueue bootstrap4 CSS or use a theme/plugin which enqueues it.
Schermata 2019-06-24 alle 14 18 37

The user reporting this issue is using the theme Airi Theme which is based on bootstrap4 as far as I can see.

The issue resides on the fact that one of the llms form wrapper CSS classes is col-1 which in bootstrap4 is styled as following:
.col-1 { -ms-flex: 0 0 8.333333%; flex: 0 0 8.333333%; max-width: 8.333333%; }
which means that the form box width will take 8.3% of its container...

I think we need to "namespace" that class to avoid this kind of issues.

@eri-trabiccolo eri-trabiccolo added good first issue If you're a first time contributor this is a good issue for you! language: php Type: Bug Bugs and errors labels Jun 24, 2019
@thomasplevy
Copy link
Contributor

I can't find any CSS in our stylesheets that use this class. I think it may have been used in v1 of LifterLMS and removed but the HTML was never updated.

My concern would be if 3rd party themes reference this class, if we change it, it will cause new issues.

I don't know the best way to deprecate a CSS class but that's probably what we should be doing here. Maybe adding an HTML comment above the <div> (source) stating the class will be removed in a future version of LifterLMS. This would prompt a template change which theme devs should be tracking, we could note the deprecation in the changelog and then in version 4.x (whenever that comes) we can remove the class "safely".

In the meantime I think we can either ignore this as a theme compatibility issue that can be resolved with more specific CSS in the child theme/customizer.

If it is a more widespread issue we can add that more specific CSS to a compatibility file in the codebase. I'd like to avoid this solution though.

@eri-trabiccolo
Copy link
Collaborator Author

I'm not sure how much bootstrap 4 is widespread as of now, but I think it will (and possibly future versions of bootstrap will still follow this pattern: they dropped the xs infix as bs is more and more mobile first).
I agree on the deprecation thing.

@thomasplevy
Copy link
Contributor

but I think it will (and possibly future versions of bootstrap will still follow this pattern: they dropped the xs infix as bs is more and more mobile first).

You're probably right but in any event I'd like to hold on adding compatibility code to LifterLMS until we know it's a more widespread issue.

For now let's just add a deprecation of the class and keep an eye on it to see if there's more we should do in the future.

@thomasplevy thomasplevy added this to the Future milestone Jul 2, 2019
@monbro
Copy link

monbro commented Jul 15, 2019

+1 having Bootstrap compatibility would be great. I got the same issue when loading bootstrap.

@thomasplevy
Copy link
Contributor

@monbro are you a theme developer? If you're doing this from a theme can you let me know what theme you're using so I can gauge it's popularity. At this moment we're not planning on adding compatibility code but if there are some really well-used themes that this will make life easier for I'll consider it. Although if you are already supporting LifterLMS a small bit of CSS in the theme takes care of this.

@monbro
Copy link

monbro commented Jul 15, 2019

Hey Thomas, I am a web dev, but not working on a prticular theme. Thank a lot for the feedback. I get the point. Thanks anyway so far for your great work on lifterLMS!

@eri-trabiccolo
Copy link
Collaborator Author

@zainirfani
Copy link

zainirfani commented Apr 14, 2020

Dear Team, Thanks for cooperation, We resolve this Issue through our JUGAAD theory if you need how please visit this link
http://www.whatdigi.com/lifter-lms-resolving-lifter-lms-login-page-issue/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue If you're a first time contributor this is a good issue for you! Status: Has PR This issue has an open pull request Type: Bug Bugs and errors
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants