[HOLD for payment 2021-12-15] Wrong margin between pronoun form elements
Action Performed:
Choose self-select in the preferred pronouns section of your settings
Expected Result:
Spacing between preferred pronouns input field and the text input field below to be the same as those between First name and Last name.
Actual Result:
Spacing is less

Platform:
Where is this issue occurring?
- Web - only checked web. Likely not platform specific as it's just css margin
- iOS
- Android
- Desktop App
- Mobile Web
Version Number: v1.1.1-8 Reproducible in staging?: Reproducible in production?: yes
Triggered auto assignment to @lschurr (AutoAssignerTriage), see https://stackoverflow.com/c/expensify/questions/4749 for more details.
Proposal:
use styles.mt2 in:
https://github.com/Expensify/App/blob/b37e87ecca6fc7e2f20e1b7770df16dbf6eca3cb/src/pages/settings/Profile/ProfilePage.js#L239-L243
as this is the value used as margins between inputs in FullNameInputRow: https://github.com/Expensify/App/blob/b37e87ecca6fc7e2f20e1b7770df16dbf6eca3cb/src/components/FullNameInputRow.js#L54-L62
Triggered auto assignment to @marcochavezf (Engineering), see https://stackoverflow.com/c/expensify/questions/4319 for more details.
I can see there is a translateX as well. I would have a look at if this affects the spacing vs just the margin style and make sure the spacing is the same.
👍🏽 Adding external label
Triggered auto assignment to @kevinksullivan (External), see https://stackoverflow.com/c/expensify/questions/8582 for more details.
Proposed Solution:
I tested that directly applying style to <ExpensiTextInput /> is not working as expected. So better solution is to wrap <ExpensiTextInput /> within a <View> and apply style to view. It is works perfect on all platform.
i.e. Current code for ProfilePage.js is as under: https://github.com/Expensify/App/blob/f9f0b3f908483353f1908f678a08136d5e5bda44/src/pages/settings/Profile/ProfilePage.js#L238-L244
We have to Wrap <ExpensiTextInput /> (line 239-243) within View as under, Also we need to apply styles.mt1 because some top margin comes from ExpensiTextInput component, so adding styles.mt1 is enough, so space looks similar to between first name and lastname.
{this.state.pronouns === this.props.translate('pronouns.selfSelect') && (
<View style={styles.mt1}>
<ExpensiTextInput
value={this.state.selfSelectedPronouns}
onChangeText={selfSelectedPronouns => this.setState({selfSelectedPronouns})}
placeholder={this.props.translate('profilePage.selfSelectYourPronoun')}
/>
</View>
)}
Below are screenshot after updates done as suggested, It is working perfect on all platform.
Web
Mobile Web
Desktop
iOS
Android
If my solution accepted then kindly message me so I can submit pr immediately.
@kevinksullivan Eep! 4 days overdue now. Issues have feelings too...
This is the sort of minor tweak I would have done when implementing. I consider a proposal more of an approach rather than a full implementation else you end up doing the work before getting hired on each job.
Is the expectation on these small jobs that you implement before proposing?
@kevinksullivan Still overdue 6 days?! Let's take care of this!
Apologies for the delay. I would think the expectation is to get your proposal approved prior to implementation. Job posted here:
https://www.upwork.com/jobs/~010ec755aca3433065
My Proposed Solution:

The marginBottom of Preferred Pronouns is unnecessary, I wrap selfSelectedPronouns by a View with marginTop, so this spacing only display when input available
Web

Looking for engineering review. Issue s reproducible and job is posted.
bump!
This issue has not been updated in over 15 days. 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!
@kevinksullivan how does an engineer get assigned? is it not automatic? there are no assignees
Triggered auto assignment to @parasharrajat (Exported)
Triggered auto assignment to @puneetlath (Exported), see https://stackoverflow.com/c/expensify/questions/7972 for more details.
Triggered auto assignment to @roryabraham (Engineering), see https://stackoverflow.com/c/expensify/questions/4319 for more details.
Apologies @anthony-hull , looks like this was dropped over time. I reapplied labels to get reviews in motion.