-
-
Notifications
You must be signed in to change notification settings - Fork 731
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
Changed bootstrap grid for medium size and above to have text and but… #2055
Changed bootstrap grid for medium size and above to have text and but… #2055
Conversation
O M G! thank you so much @HugsDaniel ! can you provide at least an screenshot so we can check how it looks like? |
No way man |
The scrolling problem comes from this in
and honestly I don't really know how to solve this. |
I guess we should then provide a more specific css rule that overrides that one setting |
Actually the problem is the same for all modals in mobile (I just observed it on signup / login modal as well). It would be worth opening a specific issue don't you think ? |
Agree. If it's a wider issue it will require a longer discussion and an agreement on what to actually do in terms of design. Feel free to open a new one linking to these findings. |
@sauloperez if you're good to give this a ✅ then it can go to @myriamboure for testing and we can get it merged asap. |
So @HugsDaniel does this affect any other modal or just this one? I would just fix this one and move on. It is the most problematic one. |
It seems to be affecting any modal. I can fix this one only and move on, no problem. Should I do that ? |
I would, yes @HugsDaniel . It's just a matter of adding small but continuous improvements. |
So the login modal now have a max height of 500px on screens from 0 to 600px in width, enabling the user to scroll through the modal on mobile. |
I took a quick test and I found that we also display a scrollbar from the 3rd last step onwards I did notice, however, that we keep the location of the scrollbar across steps in the wizard which let's see the button but then, you can't see the wizard's header. So, can you also remove scrollbar from all these steps @HugsDaniel ? |
If I got what you said right, it would be because the modal is adjusting to the size of the window, so I fixed the max-height to 95% on medium screen and up, which should do the trick. Is it what you had in mind ? |
Last commit is to apply the scrolling fix from commit #c95a6c2 to all modals. |
I gave another look and there are still couple problems @HugsDaniel . The scroll bar still shows up in the last two steps. Although you can now see part of the button, it's not ideal. See my testing notes in https://docs.google.com/document/d/18h-Z5iaLN9tvyQrVyt-OqLPnkPXYCrmGraf2dqDwx-g/edit?usp=sharing I'm wondering if we could avoid the modal and just show a regular page, then the content would likely fit, but if not, it would be easier to see that it falls under the fold. To me the modal in here serves no purpose. What do you think? |
I agree the modal is not necessary, although after investigation, showing a regular page instead of a modal brings important modifications to the code and especially to Angular controllers. I'm not yet an Angular expert, so I'm wondering if it's worth it for now. |
@oeoeaio any thoughts on the above modal vs page discussion? |
If it's hard let's just fix the scrollbars on all the wizard steps @HugsDaniel |
5694cbf
to
88b77e7
Compare
@sauloperez I fixed the max-height to 120% so it can fit properly without showing scrollbars. |
We could definitely just put the registration wizard in a regular page instead of using modals. It would not be trivial, but I can't see any major barriers. I am happy to help with this if that is what we decide to do. |
I haven't checked the latest commit from @HugsDaniel but if the content can be seen without the modal's scrollbar, I'd move along. Although my initial idea was exactly the same as yours @oeoeaio, I think that this is a good first step that would solve the issue. What do you think? I just want not to have another long-lasting PR. |
I'm happy if you're happy. :) |
88b77e7
to
f2eee77
Compare
Staged on https://staging1.openfood.com.au/. |
Tested on computer looks good: https://www.useloom.com/share/d9bda396ddee44f9a31fe5342e058054 |
Awesome! |
…ton side by side
What? Why?
Closes #1766
I added medium-6 to have both columns side by side for medium size and higher, which makes the button appear on all computers.
What should we test?
Button and text appear side by side on computer.