App icon indicating copy to clipboard operation
App copied to clipboard

[HOLD for payment 2021-09-20] Buttons - Reduce button size

Open isagoico opened this issue 5 years ago β€’ 19 comments

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:

  1. Navigate to NewDot
  2. Navigate to a conversation
  3. 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

image

Expensify/Expensify Issue URL:

View all open jobs on GitHub


From @AndrewGable https://expensify.slack.com/archives/C01GTK53T8Q/p1630093303074700

Do these buttons feel a little big?

isagoico avatar Aug 28 '21 16:08 isagoico

Triggered auto assignment to @flodnv (Engineering), see https://stackoverflow.com/c/expensify/questions/4319 for more details.

MelvinBot avatar Aug 28 '21 16:08 MelvinBot

Triggered auto assignment to @michelle-thompson (Design), see these Stack Overflow questions for more details.

MelvinBot avatar Aug 28 '21 16:08 MelvinBot

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). image (1)

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>

image image (1)

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

mananjadhav avatar Aug 28 '21 17:08 mananjadhav

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.

shawnborton avatar Aug 29 '21 09:08 shawnborton

@michelle-thompson Whoops! This issue is 2 days overdue. Let's get this updated quick!

MelvinBot avatar Sep 01 '21 19:09 MelvinBot

@michelle-thompson Huh... This is 4 days overdue. Who can take care of this?

MelvinBot avatar Sep 03 '21 19:09 MelvinBot

@michelle-thompson Now this issue is 8 days overdue. Are you sure this should be a Daily? Feel free to change it!

MelvinBot avatar Sep 07 '21 19:09 MelvinBot

Adjusting the size sounds great! Doesn't look anything is needed from Design here, so gonna add the External label.

michelle-thompson avatar Sep 07 '21 19:09 michelle-thompson

Triggered auto assignment to @NicMendonca (External), see https://stackoverflow.com/c/expensify/questions/8582 for more details.

MelvinBot avatar Sep 07 '21 19:09 MelvinBot

All set: https://www.upwork.com/jobs/~01b9ba3ee6baa3a61b

NicMendonca avatar Sep 08 '21 19:09 NicMendonca

Triggered auto assignment to @AndrewGable (Exported), see https://stackoverflow.com/c/expensify/questions/7972 for more details.

MelvinBot avatar Sep 08 '21 19:09 MelvinBot

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>```

equationalapplications avatar Sep 08 '21 22:09 equationalapplications

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

mananjadhav avatar Sep 08 '21 23:09 mananjadhav

@NicMendonca - Can we hire @mananjadhav since the solution was first and discussed in Slack. Thanks!

AndrewGable avatar Sep 09 '21 16:09 AndrewGable

@mananjadhav all set πŸ™‚

NicMendonca avatar Sep 09 '21 16:09 NicMendonca

: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.

botify avatar Sep 10 '21 03:09 botify

πŸš€ Deployed to staging by @AndrewGable in version: 1.0.96-1 πŸš€

platform result
πŸ€– android πŸ€– success βœ…
πŸ–₯ desktop πŸ–₯ success βœ…
🍎 iOS 🍎 success βœ…
πŸ•Έ web πŸ•Έ success βœ…

botify avatar Sep 10 '21 20:09 botify

πŸš€ Deployed to production by @francoisl in version: 1.0.97-0 πŸš€

platform result
πŸ€– android πŸ€– success βœ…
πŸ–₯ desktop πŸ–₯ success βœ…
🍎 iOS 🍎 success βœ…
πŸ•Έ web πŸ•Έ success βœ…

botify avatar Sep 13 '21 18:09 botify

Paid!

NicMendonca avatar Sep 21 '21 13:09 NicMendonca