[HOLD for payment 2021-09-20] Buttons - Reduce button size
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:
- Navigate to NewDot
- Navigate to a conversation
- Edit the message
Expected Result:
Buttons should not have a big size.
Actual Result:
Buttons are too big.
Workaround:
None needed, visual issue.
Platform:
Where is this issue occurring?
- Web
- iOS
- Android
- Desktop App
- Mobile Web
Version Number: 1.0.88-0
Logs: https://stackoverflow.com/c/expensify/questions/4856
Notes/Photos/Videos: Any additional supporting documentation

Expensify/Expensify Issue URL:
From @AndrewGable https://expensify.slack.com/archives/C01GTK53T8Q/p1630093303074700
Do these buttons feel a little big?
Triggered auto assignment to @flodnv (Engineering), see https://stackoverflow.com/c/expensify/questions/4319 for more details.
Triggered auto assignment to @michelle-thompson (Design), see these Stack Overflow questions for more details.
As I mentioned in the slack thread, my recommendation would be to reduce the button size for the chats (and similar other pages if required). 
Proposal
In ReportActionItemMessageEdit update the following button lines with small props
<View style={[styles.flexRow, styles.mt1]}>
<Button
small
style={[styles.mr2]}
onPress={this.deleteDraft}
text={this.props.translate('common.cancel')}
/>
<Button
success
small
style={[styles.mr2]}
onPress={this.publishDraft}
text={this.props.translate('common.saveChanges')}
/>
</View>

In addition to this, we're using borderRadius: variables.componentBorderRadiusNormal for both normal button and buttonSmall in styles.js. We should instead use variables.componentBorderRadiusSmall
All of that sounds good, except I donβt think we should change the border radius here. We can address that as a separate discussion, but currently our small buttons and small inputs use the same border radius as larger buttons and inputs.
On Sat, Aug 28, 2021 at 7:02 PM Manan @.***> wrote:
As I mentioned in the slack thread https://app.slack.com/client/T03SC9DTT/C01GTK53T8Q/thread/C01GTK53T8Q-1630093303.074700, my recommendation would be to reduce the button size for the chats (and similar other pages if required). [image: image (1)] https://user-images.githubusercontent.com/3069065/131225262-bf8e57e3-4199-4024-b929-b92bf1cf2e87.png In ReportActionItemMessageEdit update the following button lines with small props
<View style={[styles.flexRow, styles.mt1]}> <Button small style={[styles.mr2]} onPress={this.deleteDraft} text={this.props.translate('common.cancel')} /> <Button success small style={[styles.mr2]} onPress={this.publishDraft} text={this.props.translate('common.saveChanges')} />
[image: image] https://user-images.githubusercontent.com/3069065/131225269-2afd6c2e-383b-409a-bac8-d23681496db6.png [image: image (1)] https://user-images.githubusercontent.com/3069065/131225286-bef30527-3c70-4ae2-ab08-58aececfaddf.png
In addition to this, we're using borderRadius: variables.componentBorderRadiusNormal for both normal button and buttonSmall in styles.js. We should instead use variables.componentBorderRadiusSmall
β You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/Expensify/App/issues/4896#issuecomment-907654670, or unsubscribe https://github.com/notifications/unsubscribe-auth/AARWH5SYN5T3ZQNKLZUAWRTT7EJCZANCNFSM5C7JGCYQ . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.
@michelle-thompson Whoops! This issue is 2 days overdue. Let's get this updated quick!
@michelle-thompson Huh... This is 4 days overdue. Who can take care of this?
@michelle-thompson Now this issue is 8 days overdue. Are you sure this should be a Daily? Feel free to change it!
Adjusting the size sounds great! Doesn't look anything is needed from Design here, so gonna add the External label.
Triggered auto assignment to @NicMendonca (External), see https://stackoverflow.com/c/expensify/questions/8582 for more details.
All set: https://www.upwork.com/jobs/~01b9ba3ee6baa3a61b
Triggered auto assignment to @AndrewGable (Exported), see https://stackoverflow.com/c/expensify/questions/7972 for more details.
Hi does this still need to be done?
Proposal:
In ReportActionItemMessageEdit.js
add small props to buttons:
<Button
small
style={[styles.mr2]}
onPress={this.deleteDraft}
text={this.props.translate('common.cancel')}
/>
<Button
small
success
style={[styles.mr2]}
onPress={this.publishDraft}
text={this.props.translate('common.saveChanges')}
/>
</View>
</View>```
My proposal's here in the comment: https://github.com/Expensify/App/issues/4896#issuecomment-907654670
cc - @AndrewGable Let me know if any other information is needed and as per design comments won't be changing the borderRadius
@NicMendonca - Can we hire @mananjadhav since the solution was first and discussed in Slack. Thanks!
@mananjadhav all set π
:hand: This PR was not deployed to staging yet because QA is ongoing. It will be automatically deployed to staging after the next production release.
π Deployed to staging by @AndrewGable in version: 1.0.96-1 π
| platform | result |
|---|---|
| π€ android π€ | success β |
| π₯ desktop π₯ | success β |
| π iOS π | success β |
| πΈ web πΈ | success β |
π Deployed to production by @francoisl in version: 1.0.97-0 π
| platform | result |
|---|---|
| π€ android π€ | success β |
| π₯ desktop π₯ | success β |
| π iOS π | success β |
| πΈ web πΈ | success β |
Paid!