-
Notifications
You must be signed in to change notification settings - Fork 2.6k
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
[$1000] Dev - "Pay with Expensify" button style is broken #13687
Comments
👋 Friendly reminder that deploy blockers are time-sensitive ⏱ issues! Check out the open
|
Looks like it was caused by this PR #13377 |
Screen.Recording.2022-12-19.at.10.06.50.AM.movcc @shawnborton @marcaaron |
Triggered auto assignment to @flaviadefaria ( |
Job added to Upwork: https://www.upwork.com/jobs/~01e2c7bdef927162e8 |
Triggered auto assignment to Contributor-plus team member for initial proposal review - @mollfpr ( |
Current assignee @grgia is eligible for the External assigner, not assigning anyone new. |
@0xmiroslav Thank you, I do prefer this method! I have posted a PR using your suggestions that I am testing to get merged today. Because I am using your solution, we will make sure you get compensated for it. |
@grgia I have another suggestion: (to fix divider involved in press highlight)
<Button
success
onPress={props.onButtonPress}
text={props.buttonText}
isDisabled={props.isDisabled}
isLoading={props.isLoading}
shouldRemoveRightBorderRadius
- style={[styles.flex1]}
+ style={[styles.flex1, styles.pr0]}
pressOnEnter
/>
+ <View style={styles.buttonDivider} />
<Button
success
isDisabled={props.isDisabled}
- style={[styles.buttonDropdown]}
+ style={[styles.pl0]}
onPress={props.onDropdownPress}
shouldRemoveLeftBorderRadius
ContentComponent={() => (
<Icon src={Expensicons.DownArrow} fill={themeColors.textLight} />
)}
/> Define this in styles.js buttonDivider: {
width: 1,
alignSelf: 'stretch',
backgroundColor: themeColors.textLight,
marginVertical: 1,
}, |
Proposaldiff --git a/src/components/Button.js b/src/components/Button.js
index d14d6db5b3..281ee65860 100644
--- a/src/components/Button.js
+++ b/src/components/Button.js
@@ -257,6 +257,8 @@ class Button extends Component {
this.props.isDisabled ? {...styles.cursorDisabled, ...styles.noSelect} : {},
...StyleUtils.parseStyleAsArray(this.props.style),
styles.buttonContainer,
+ this.props.shouldRemoveRightBorderRadius ? styles.noRightBorderRadius : undefined,
+ this.props.shouldRemoveLeftBorderRadius ? styles.noLeftBorderRadius : undefined,
]}
nativeID={this.props.nativeID}
>
@@ -277,8 +279,6 @@ class Button extends Component {
(this.props.isDisabled && !this.props.danger && !this.props.success) ? styles.buttonDisable : undefined,
(this.props.success && activeAndHovered) ? styles.buttonSuccessHovered : undefined,
(this.props.danger && activeAndHovered) ? styles.buttonDangerHovered : undefined,
- this.props.shouldRemoveRightBorderRadius ? styles.noRightBorderRadius : undefined,
- this.props.shouldRemoveLeftBorderRadius ? styles.noLeftBorderRadius : undefined,
...this.props.innerStyles,
]}
>
diff --git a/src/styles/styles.js b/src/styles/styles.js
index 27195c89ac..6438357733 100644
--- a/src/styles/styles.js
+++ b/src/styles/styles.js
@@ -343,16 +343,15 @@ const styles = {
},
button: {
- backgroundColor: themeColors.buttonDefaultBG,
- borderRadius: variables.buttonBorderRadius,
height: variables.componentSizeLarge,
justifyContent: 'center',
...spacing.ph3,
},
buttonContainer: {
- padding: 1,
+ backgroundColor: themeColors.buttonDefaultBG,
borderRadius: variables.buttonBorderRadius,
+ overflow: 'hidden',
},
buttonText: {
@@ -368,32 +367,26 @@ const styles = {
},
buttonSmall: {
- borderRadius: variables.buttonBorderRadius,
height: variables.componentSizeSmall,
paddingTop: 4,
paddingHorizontal: 14,
paddingBottom: 4,
- backgroundColor: themeColors.buttonDefaultBG,
},
buttonMedium: {
- borderRadius: variables.buttonBorderRadius,
height: variables.componentSizeNormal,
paddingTop: 12,
paddingRight: 16,
paddingBottom: 12,
paddingLeft: 16,
- backgroundColor: themeColors.buttonDefaultBG,
},
buttonLarge: {
- borderRadius: variables.buttonBorderRadius,
height: variables.componentSizeLarge,
paddingTop: 8,
paddingRight: 10,
paddingBottom: 8,
paddingLeft: 18,
- backgroundColor: themeColors.buttonDefaultBG,
},
buttonSmallText: {
diff --git a/web/index.html b/web/index.html
index d7074a03d3..a208a7c9f9 100644
--- a/web/index.html
+++ b/web/index.html
@@ -35,11 +35,11 @@
}
:focus-visible {
outline: 0;
- box-shadow: inset 0px 0px 0px 1px #5AB0FF;
+ box-shadow: 0px 0px 0px 1px #5AB0FF;
}
:focus[data-focusvisible-polyfill] {
outline: 0;
- box-shadow: inset 0px 0px 0px 1px #5AB0FF;
+ box-shadow: 0px 0px 0px 1px #5AB0FF;
}
input:focus-visible, input:focus[data-focusvisible-polyfill],
select:focus-visible, select:focus[data-focusvisible-polyfill] { Sorry I'm a little late, i started working on this before dropping the Details
|
Heads up! If you are going to apply my proposal above, first apply this css fix: diff --git a/src/styles/styles.js b/src/styles/styles.js
index 27195c89ac..a21ac19f4d 100644
--- a/src/styles/styles.js
+++ b/src/styles/styles.js
@@ -466,7 +466,7 @@ const styles = {
},
buttonCTA: {
- paddingVertical: 6,
+ marginVertical: 6,
...spacing.mh4,
}, |
@s77rt thank you for your proposal, but I already accepted @0xmiroslav's suggestions. |
@grgia I think proposals gets reviewed by 2 reviewers. @0xmiroslav has not been assigned yet, besides I think my proposal is cleaner and global. cc @mollfpr |
@s77rt this is a deploy blocker, so I will be finishing this internally. Because @0xmiroslav was assisting in the original thread and posted a solution first, we decided to compensate for their suggestions. |
@s77rt your proposal causes serious regressions in various parts. bug.movAnd as @grgia commented already, this is intended to be fixed internally since this is a deploy blocker. @grgia marked this as External just to unlock my comment posted. |
@grgia If an issue is internal it should be internal for everybody. It does not make sense to make an issue internal in GH but not on slack. @0xmiroslav This is due to the use of overflow hidden (and the use of outset box-shadow) |
Hey @s77rt, you'll notice that the We appreciate your eagerness to contribute, so please feel free make proposals on any of the issues that currently have the |
I wonder if we should make the left border use the same color as the appBG as well? No worries if that's not really part of the issue though. |
As a note, I'm going to be OOO from Dec 23rd to January 9th. In case this needs to be paid before the week of January 9th then please reassign. |
The solution was deployed to production on Dec 21 (#13697 (comment)) but issue title was not updated. |
@mollfpr, @grgia, @flaviadefaria Eep! 4 days overdue now. Issues have feelings too... |
@mollfpr who is due payment here and how much? |
@mallenexpensify I did not review any proposals or PR so I’m not eligible for payment here. |
@mallenexpensify I think I am eligible for 1250 - reporting compensation and bonus for my solution being used. |
Thanks @0xmiroslav and @mollfpr @0xmiroslav can you please accept the job and reply here once you have? |
Checking on regression test steps https://expensify.slack.com/archives/C01SKUP7QR0/p1672785670352739 |
^ TestRail steps added, once @0xmiroslav accepts offer I'll pay then close |
@0xmiroslav paid, thanks! Closing |
If you haven’t already, check out our contributing guidelines for onboarding and email contributors@expensify.com to request to join our Slack channel!
Action Performed:
Expected Result:
No white border around arrow on "Pay with Expensify" button
Actual Result:
There's white border around arrow on "Pay with Expensify" button
Workaround:
unknown
Platform:
Where is this issue occurring?
Version Number: 1.2.41-1
![1](https://user-images.githubusercontent.com/43996225/208450607-e9aada25-27d1-4118-81f0-7dc2eab6703a.png)
![2](https://user-images.githubusercontent.com/43996225/208450613-e85f4b0e-f944-472c-ae23-3f59c682b561.png)
Reproducible in staging?: Need reproduction
Reproducible in production?: Need reproduction
Email or phone of affected tester (no customers):
Logs: https://stackoverflow.com/c/expensify/questions/4856
Notes/Photos/Videos:
Expensify/Expensify Issue URL:
Issue reported by: @0xmiroslav
Slack conversation: https://expensify.slack.com/archives/C049HHMV9SM/p1671442540501379
View all open jobs on GitHub
Upwork Automation - Do Not Edit
The text was updated successfully, but these errors were encountered: