-
Notifications
You must be signed in to change notification settings - Fork 3.1k
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
[HOLD for payment 2023-12-29] [Paid] [$500] Web - I accept checkbox is not aligned with errors #27703
Comments
Job added to Upwork: https://www.upwork.com/jobs/~015553e32dfe1adcdf |
Triggered auto assignment to @trjExpensify ( |
Bug0 Triage Checklist (Main S/O)
|
Triggered auto assignment to @puneetlath ( |
Triggered auto assignment to Contributor-plus team member for initial proposal review - @mollfpr ( |
ProposalPlease re-state the problem that we are trying to solve in this issueThe red dot and the checkout are not centered What is the root cause of that problem?Since the red dot is smaller in size than checkbox, so checkbox is not aligned with errors red dot What changes do you think we should make in order to solve the problem?We can create wrapper for red dot which will correspond to the checkout sizes and place the dot in the middle with styles For this dot App/src/components/FormHelpMessage.js Lines 42 to 47 in 6836eaf
![]() And if we want to make text as the same level we can also change styles here like
App/src/components/CheckboxWithLabel.js Line 117 in 6be8fca
![]() What alternative solutions did you explore? (Optional)NA |
ProposalPlease re-state the problem that we are trying to solve in this issue.I accept checkbox is not aligned with errors What is the root cause of that problem?we have given What changes do you think we should make in order to solve the problem?In order to solve this issue, we need to apply App/src/components/Checkbox.js Lines 89 to 100 in 6be8fca
But as
so We shall not change the styles here above. as we are adding App/src/components/Checkbox.js Line 94 in f5409e7
We shall pass the new styles of Example - <Checkbox
isChecked={isChecked}
onPress={toggleCheckbox}
label={props.label}
style={[styles.mln2]} // new style added
hasError={Boolean(props.errorText)}
forwardedRef={props.forwardedRef}
accessibilityLabel={props.accessibilityLabel || props.label}
/> What alternative solutions did you explore? (Optional) |
📣 @iamkunal9! 📣
|
Contributor details |
✅ Contributor details stored successfully. Thank you for contributing to Expensify! |
ProposalPlease re-state the problem that we are trying to solve in this issue.I accept checkbox is not aligned with errors red dot What is the root cause of that problem?the label wrapper style has too much margin left What changes do you think we should make in order to solve the problem?change |
@mollfpr over to you to review! |
@mollfpr App/src/components/CheckboxWithLabel.js Line 100 in 778f763
![]() |
ProposalPlease re-state the problem that we are trying to solve in this issue.Checkbox and Other error texts are not aligned What is the root cause of that problem?For now, checkbox text has What changes do you think we should make in order to solve the problem?We can decrease the checkbox text to And, also we need to add a wrapper view to add App/src/components/FormHelpMessage.js Lines 43 to 46 in 7b02afd
By this height/width of checkbox and Icon will be same 24px.
Change with
What alternative solutions did you explore? (Optional)Adding padding to the Icon wrapper will make the Or, App/src/components/FormHelpMessage.js Line 48 in 7b02afd
Change ml2 to ml4
|
Can we get a sense check from @shawnborton or @dannymcclain on what it should be? |
@trjExpensify I'm thinking that this is what it should be, where all input elements are aligned left. The yellow line shows left key line (fancy term for the optical line created by the alignment) and the pink line shows the centerline of the error dots and checkbox. @shawnborton let me know if this is off, but this makes sense to me. In the original screenshot it looks to me like the only issue is that the checkbox + text are a few pixels too far to the right. ![]() |
Yup, agree with Danny here. The red dots also sit slightly inside of a 20x20 bounding box, so there is a bit of negative space between the dot shape and the outer box. The outer box in this case lines up with the key line shown above. |
Cool, thanks for confirming ya'll! |
Thanks, @dannymcclain, for the confirmation. @ZhenjaHorbach @fabrianibrahim Please update it to your proposal so that I can review it easily. @alifhaider I think we are good with the text gap, and adding new padding for the dot indicator will make the text move further away. Also, from Danny's comment here, the checkbox or other inputs should be sitting exactly on the yellow line, while currently, the checkbox is a few pixels far from the line. |
Yes please, @mollfpr! |
I'll prepare the PR soon! |
@trjExpensify @deetergp The checklist update is ready #30699 |
Nice, thanks for getting that up! |
@mollfpr let's get that PR checklist update PR done! Then we can close this. |
This issue has not been updated in over 15 days. @deetergp, @trjExpensify, @mollfpr, @BhuvaneshPatil eroding to Monthly issue. P.S. Is everyone reading this sure this is really a near-term priority? Be brave: if you disagree, go ahead and close it out. If someone disagrees, they'll reopen it, and if they don't: one less thing to do! |
@mollfpr @0xmiroslav can you finish up getting that PR checklist update merged today? |
|
The solution for this issue has been 🚀 deployed to production 🚀 in version 1.4.15-5 and is now subject to a 7-day regression period 📆. Here is the list of pull requests that resolve this issue: If no regressions arise, payment will be issued on 2023-12-29. 🎊 After the hold period is over and BZ checklist items are completed, please complete any of the applicable payments for this issue, and check them off once done.
For reference, here are some details about the assignees on this issue:
|
BugZero Checklist: The PR fixing this issue has been merged! The following checklist (instructions) will need to be completed before the issue can be closed:
|
@mollfpr Can you check complete the checklist? |
No need for the second checklist for that, it was a follow-up PR to update the PR checklist. Very meta. Closing now, thanks! |
If you haven’t already, check out our contributing guidelines for onboarding and email [email protected] to request to join our Slack channel!
Action Performed:
Expected Result:
I accept checkbox should be aligned with errors red dot
Actual Result:
I accept checkbox is not aligned with errors red dot
Workaround:
Unknown
Platforms:
Which of our officially supported platforms is this issue occurring on?
Version Number: 1.3.71.4
Reproducible in staging?: y
Reproducible in production?: y
If this was caught during regression testing, add the test name, ID and link from TestRail:
Email or phone of affected tester (no customers):
Logs: https://stackoverflow.com/c/expensify/questions/4856
Notes/Photos/Videos: Any additional supporting documentation
Expensify/Expensify Issue URL:
Issue reported by: @dhanashree-sawant
Slack conversation: https://expensify.slack.com/archives/C049HHMV9SM/p1694958144361539
View all open jobs on GitHub
Upwork Automation - Do Not Edit
The text was updated successfully, but these errors were encountered: