-
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
Workspace - Incorrect left padding for the button which has a left icon #29967
Comments
ProposalPlease re-state the problem that we are trying to solve in this issue.Incorrect left padding for the button which has a left icon What is the root cause of that problem?We don’t have any additional left padding for left-icon of button. App/src/components/Button/index.js Line 236 in 279ce1b
What changes do you think we should make in order to solve the problem?We can add additional left padding
App/src/components/Button/index.js Line 236 in 279ce1b
What alternative solutions did you explore? (Optional) |
👋 Friendly reminder that deploy blockers are time-sensitive ⏱ issues! Check out the open
|
Triggered auto assignment to @amyevans ( |
ProposalPlease re-state the problem that we are trying to solve in this issue.Incorrect left padding for the button which has a left icon What is the root cause of that problem?This is a regression from #29787. It changes the ![]() What changes do you think we should make in order to solve the problem?We should add a condition to set buttonLarge: (hasIcon: Boolean) => ({
borderRadius: variables.buttonBorderRadius,
minHeight: variables.componentSizeLarge,
paddingTop: 8,
paddingRight: 10,
paddingBottom: 8,
paddingLeft: hasIcon ? 18 : 10,
backgroundColor: theme.buttonDefaultBG,
}), Change this LOC: App/src/components/Button/index.js Line 297 in ed59d4e
To: this.props.large ? styles.buttonLarge(Boolean(this.props.icon)) : undefined, |
@yh-0218 go ahead and create a PR - let's resolve this quick |
|
The blocker is stemming from #29759 so I'll assign the original authors/reviewers |
Hi, @narefyev91 PR is ready for review. Please check. |
Thanks for triaging this @amyevans! |
Removed the |
Given that the fix for this is production and it was a regression and no payment is due, I'm going to close this one. |
If you haven’t already, check out our contributing guidelines for onboarding and email contributors@expensify.com to request to join our Slack channel!
Version Number: 1.3.87.0
Reproducible in staging?: y
Reproducible in production?: n
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
Expensify/Expensify Issue URL:
Issue reported by: Pujan92
Slack conversation: https://expensify.slack.com/archives/C049HHMV9SM/p1697713080450809
Action Performed:
Expected Result:
Left icon should not be much closer to the left border
Actual Result:
Left icon is closer to the left border
Workaround:
Unknown
Platforms:
Which of our officially supported platforms is this issue occurring on?
Screenshots/Videos
Android: Native
Android: mWeb Chrome
iOS: Native
iOS: mWeb Safari
MacOS: Chrome / Safari
MacOS: Desktop
View all open jobs on GitHub
The text was updated successfully, but these errors were encountered: