-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
#5270 Align checkbox with the text. #5372
Conversation
Thanks for opening this pull request! This space is protected by our Code of Conduct - and we're here to help. |
@publiclab/reviewers please review |
Generated by 🚫 Danger |
@shivam15 on my view of tagging @divyabaid16 because they opened the issue! |
@sashadev-sky if you zoom the checkbox you can see checkbox and "Blur my location" is not in same line. |
@sashadev-sky this issue was present in Mozilla Firefox. |
@divyabaid16 do you still see it there now? The screenshot @shivam15 posted above is not the same alignment issue as the one you originally opened the issue for. In Chrome or Firefox (v. 66.02) I also don't see either of these issues What version of Firefox are you using? If it's browser specific I think it would make sense to apply a css rule for that specific browser that can be reusable rather than an inline style here |
@sashadev-sky whats the conclusion ? |
I will just check and let you know. |
I'm still getting this in Chrome as well as Firefox @sashadev-sky I am currently using Firefox version 67.0b2 |
@divyabaid16 @shivam15 I looked into it a bit but it's hard to say why unless we all spent some time collaborating to try to figure it out. I can confirm, though, that this PR doesn't have any negative impact on the UI for me so if it's improving alignment on other people's screens and @divyabaid16 confirms it improves hers I would say lets go forward with it. |
@sashadev-sky @divyabaid16 may be once try with the changes from the pull request and see if everything looks fine from your end. |
@shivam15 Ok I will run your PR locally to double check! |
It's working for me @shivam15 |
With your changes: Without your changes: This is my view. @divyabaid16 can you please run his PR and post yours too maybe like I did a before and after (just the initial browser you were using - firefox - is fine) also it wouldn't let me add you as a reviewer for this - your name wasn't showing up! |
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.
Can we move this into an existing css file? There is an editor.css
, maybe find an appropriate place to put it there? or map.css
- nothing there yet but you can start it! I am trying to move this repo away from inline styling as its not good practice the way were using it - its all over the place
@divyabaid16 @sashadev-sky Done and Done! |
This comment has been minimized.
This comment has been minimized.
I think the mis-alignment discrepancy is occurring because windows and mac (and probably other OS's) size these checkboxes differently, but Bootstrap positions them with pixel offsets assuming they're a specific size. See this issue on the Bootstrap page. If you visit the bootstrap docs and toggle the w/h of the example checkboxes you can see this. I don't think float is the right solution here because it's dependent on the Bootstrap styling already applied, which is error prone. But I found another solution, I am going to commit it here and if it doesn't work for you guys I'll revert it! |
@shivam15 @divyabaid16 Ok will you guys check if this fixes alignment for you? |
@sashadev-sky changes worked for me Please merge the pull request if you are satisfied too. |
I'm also getting the same result as @shivam15 |
@shivam15 @divyabaid16 woah how awesome guys! We just fixed a bootstrap bug they haven' fixed yet. mentioning @jywarren to review because I wrote a lot of styling with !important declarations and this is also an important change to note for future usage of these particular bootstrap classes |
This looks super. I love the inline comments explaining it. Thanks a lot everyone!!!!! 🎉 |
Congrats on merging your first pull request! 🙌🎉⚡️ Help others take their first stepNow that you've merged your first pull request, you're the perfect person to help someone else out with this challenging first step. 🙌 Try looking at this list of `first-timers-only` issues, and see if someone else is waiting for feedback, or even stuck! 😕 People often get stuck at the same steps, so you might be able to help someone get unstuck, or help lead them to some documentation that'd help. Reach out and be encouraging and friendly! 😄 🎉 Read about how to help support another newcomer here, or find other ways to offer mutual support here. |
* publiclab#5270 Align checkbox with the text. * publiclab#5270 moving css to file * Override Bootstrap bug
Awesome work everyone! Suggestion for @shivam15 - It's good to open PR using a separate feature-branch, as it will help you in keeping your Thanks! |
* Remove unused css declaration * Improved readability * Try to remove error throw by extra space somewhere * undo extra space in textarea * Fix login button * cleanup inline styling * clean up login modal * Forgot a div * Fix activity checkbox * Fix checkboxes in subscribe
* publiclab#5270 Align checkbox with the text. * publiclab#5270 moving css to file * Override Bootstrap bug
…ab#5421) * Remove unused css declaration * Improved readability * Try to remove error throw by extra space somewhere * undo extra space in textarea * Fix login button * cleanup inline styling * clean up login modal * Forgot a div * Fix activity checkbox * Fix checkboxes in subscribe
…ab#5421) * Remove unused css declaration * Improved readability * Try to remove error throw by extra space somewhere * undo extra space in textarea * Fix login button * cleanup inline styling * clean up login modal * Forgot a div * Fix activity checkbox * Fix checkboxes in subscribe
Fixes #5270 (<=== Add issue number here)
Make sure these boxes are checked before your pull request (PR) is ready to be reviewed and merged. Thanks!
rake test
@publiclab/reviewers
for help, in a comment belowIf tests do fail, click on the red
X
to learn why by reading the logs.Please be sure you've reviewed our contribution guidelines at https://publiclab.org/contributing-to-public-lab-software
Thanks!