-
Notifications
You must be signed in to change notification settings - Fork 3k
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
[$2000] Cursor is overlapping with amount digit on amount page - Reported by @aneequeahmad #10366
Comments
Triggered auto assignment to @bfitzexpensify ( |
Triggered auto assignment to @tylerkaraszewski ( |
This is pretty minor, but now that I see it, I can't unsee it. Guessing it will be a pretty simple external fix. |
I agree, should likely be straightforward and external. |
Current assignee @bfitzexpensify is eligible for the External assigner, not assigning anyone new. |
Upwork job here |
Triggered auto assignment to Contributor-plus team member for initial proposal review - @Santhosh-Sellavel ( |
Triggered auto assignment to @Luke9389 ( |
@bfitzexpensify applied to this job. Thanks |
Sounds Interesting !!! |
I'm open to seeing proposals |
@dimasna I really like the idea of decreasing cursor width. Can you share the changes you are proposing (2) to decrease cursor width:? Also, why should we remove the placeholderTextColor? @shawnborton What are your thoughts above options? |
thanks, for the cursor width, I add new style in styles.xml (android/app/src/main/res/values) :
with value :
I think we should remove placeholderTextColor because overlapping cursor behind placeholder regarding #10604 issue, and actually the default color of placeholder (without placeholderTextColor )is looks similar with the existing placeholderText color |
I don't think we should remove the placeholder color, because then we end up using a non-brand color. Even when we remove it, it does look like there is still overlap between placeholder and cursor. We could reduce the width but my fear there is that we then override the native cursors and that might feel a bit strange. |
Okay @shawnborton, let's wait for other options! |
Native cursors not mWeb! |
Doubled to $2000 |
ProposalProblem: Cursor is overlapping with amount digit due to the following reasons.
Solution:
font-family-change-effect-f.movAfter fix Mweb: mWeb-with-bold.MP4After fix IOS: fix-ios-with-bold.movNOTE:
cc: @shawnborton |
That is not a valid solution as we do not want to change our brand font. |
Video: fix-font-weight-bug-f.mov |
We don't want to change the font weight either, as that would be a branding change. |
Triggered auto assignment to @puneetlath ( |
reassigning - ooo for 2 weeks. @puneetlath we're still looking for proposals, last doubled on Friday |
ProposalHi, I'm also interested in this issue and have found some information these days, hoping it can be helpful. 🙂 related concepts from fontforge:
Platform differencesAndroid (app) vs IOS (app / mWeb)Their cursor width is 2, but Android draws the cursor first and then draws the text, IOS is the opposite Android app vs Android chromeCursor width is 1 and color is black in chrome. Causesome glyph metrics for some glyph metrics for
Cursor is acutally a movable rectangle at the insertion point.(sometimes called caret) For example, for In different fonts, each glyph may have a different android-app.mp4android-chrome.mp4In summaryI think this overlap may be normal. And this is a screen recording of WhatsApp (also overlaps): android-WhatsApp.mp4If we still want to move the placeholder letters to the right for a short distance: diff --git a/src/components/TextInput/BaseTextInput.js b/src/components/TextInput/BaseTextInput.js
index eec708d91..151a09f83 100644
--- a/src/components/TextInput/BaseTextInput.js
+++ b/src/components/TextInput/BaseTextInput.js
@@ -18,6 +18,7 @@ import variables from '../../styles/variables';
import Checkbox from '../Checkbox';
import getSecureEntryKeyboardType from '../../libs/getSecureEntryKeyboardType';
import CONST from '../../CONST';
+import prefixSpace from './prefixSpace';
class BaseTextInput extends Component {
constructor(props) {
@@ -263,7 +264,7 @@ class BaseTextInput extends Component {
}}
// eslint-disable-next-line
{...inputProps}
- placeholder={placeholder}
+ placeholder={prefixSpace(placeholder)}
placeholderTextColor={themeColors.placeholderText}
underlineColorAndroid="transparent"
style={[ Finally, We couldn't just move the placeholder in the native component while keeping the cursor position unchanged. In addition. |
This is such a great and comprehensive proposal @ntdiary - thanks for putting it together. Ultimately after some discussion in Slack (cc @Julesssss), we agree that it's not worth solving this one and we should just close this out. That being said, we think you should be rewarded for the diagnostic work that went into your proposal, so we'd like to pay you 25% of the bug amount - cc @puneetlath to process that. Let me know how that sounds, thanks! |
@ntdiary - please apply to the Upwork job here, thanks! https://www.upwork.com/jobs/~01017a317b4168596f |
@shawnborton, I'm glad we have the same opinion, and thank you very much for the 25% reward. I will also pick up more issues in the repo, believe we will meet again, pleasant experience. 😄 @puneetlath Thanks, I've applied. 🙂 |
@ntdiary glad to hear it! Excited to see more of your wonderful proposals, and hope to work together soon! |
Paid, thanks! |
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:
Cursor shouldn't overlap with digit
Actual Result:
Cursor is overlapping with digit.
Workaround:
unknown
Platform:
Where is this issue occurring?
Version Number: 1.1.88-0
Reproducible in staging?: Y
Reproducible in production?: Y
Email or phone of affected tester (no customers):
Logs: https://stackoverflow.com/c/expensify/questions/4856
Notes/Photos/Videos: Any additional supporting documentation
WhatsApp.Video.2022-07-28.at.3.09.44.PM.mp4
Expensify/Expensify Issue URL:
Issue reported by: @aneequeahmad
Slack conversation: https://expensify.slack.com/archives/C01GTK53T8Q/p1659004018311559
View all open jobs on GitHub
The text was updated successfully, but these errors were encountered: