-
Notifications
You must be signed in to change notification settings - Fork 2.9k
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
[HOLD for payment 2023-06-30] [Hold 18658][$1000] When only link is added in header text, app adds extra padding above link which has cursor as pointer #17488
Comments
Triggered auto assignment to @flaviadefaria ( |
Bug0 Triage Checklist (Main S/O)
|
Job added to Upwork: https://www.upwork.com/jobs/~0143b139f54244d059 |
Current assignee @flaviadefaria is eligible for the External assigner, not assigning anyone new. |
Triggered auto assignment to Contributor-plus team member for initial proposal review - @0xmiroslav ( |
Triggered auto assignment to @amyevans ( |
External label added, waiting for proposals. |
ProposalPlease re-state the problem that we are trying to solve in this issue.When only link is added in header text, app adds extra padding above link which has cursor as pointer What is the root cause of that problem?
RULE: In that case The element shouldn't be like rule What changes do you think we should make in order to solve the problem?Just remove What alternative solutions did you explore? (Optional)N/A Resultscreen-capture.22.webm |
ProposalPlease re-state the problem that we are trying to solve in this issue.When h1 applied to link there's an area above with pointer cursor. What is the root cause of that problem?The root cause is here:
What changes do you think we should make in order to solve the problem?We could just delete containerStyles prop |
ProposalPlease re-state the problem that we are trying to solve in this issue.When only link is added in header text, app adds extra padding above link which has cursor as pointer What is the root cause of that problem?
What changes do you think we should make in order to solve the problem?We should remove
What alternative solutions did you explore? (Optional)We could create new |
This comment was marked as off-topic.
This comment was marked as off-topic.
ProposalPlease re-state the problem that we are trying to solve in this issue.When only link is added in header text, app adds extra padding above link which has cursor as pointer What is the root cause of that problem?We are wrapping anchor element with tooltip and pressable.They are getting their height based on parent element styling because they are inline element App/src/components/AnchorForCommentsOnly/BaseAnchorForCommentsOnly.js Lines 52 to 88 in 4607dcb
Since we are supplying Lines 134 to 137 in 4607dcb
font-size is not applied to h1 itself and rather supplied to child element renderer. I think this is explained on their doc here https://meliorence.github.io/react-native-render-html/docs/flow/css-processing Thus The issue What changes do you think we should make in order to solve the problem?We should also apply styles to top level component of our custom anchor component, specifically apply styles to pressable component here App/src/components/AnchorForCommentsOnly/BaseAnchorForCommentsOnly.js Lines 52 to 55 in 4607dcb
What alternative solutions did you explore? (Optional) |
@0xmiroslav any thoughts on the proposal above? |
@0xmiroslav friendly bump here... |
@MahmudjonToraqulov thanks for your proposal. I am not sure where you're proposing to remove |
Fixed up the title/labels manually |
So just to confirm, we're still waiting to see if the reverted PR fixes this issue before we make a decision, right? |
After the revert, a new PR was put up (#20996), so yes we're waiting to see if this PR fixes the issue. |
|
The solution for this issue has been 🚀 deployed to production 🚀 in version 1.3.31-3 and is now subject to a 7-day regression period 📆. Here is the list of pull requests that resolve this issue: If no regressions arise, payment will be issued on 2023-06-30. 🎊 After the hold period is over and BZ checklist items are completed, please complete any of the applicable payments for this issue, and check them off once done.
As a reminder, here are the bonuses/penalties that should be applied for any External issue:
|
BugZero Checklist: The PR fixing this issue has been merged! The following checklist (instructions) will need to be completed before the issue can be closed:
|
Waiting for @0xmiroslav to fill out the checklist above so that I can process payment. |
Friendly bump @0xmiroslav! |
Bumped @0xmiroslav in Slack as I think he has missed my previous bumps here. |
Ok so it looks like we're issuing the following payments: @dhanashree-sawant - $250 |
Offers sent! |
Paid! |
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:
App should only keep the link area clickable like does for normal text message and header message with both text and link
Actual Result:
App keeps area above link clickable but does nothing on click when only link is added in header text
Workaround:
unknown
Platforms:
Which of our officially supported platforms is this issue occurring on?
Version Number: 1.3.0
Reproducible in staging?: y
Reproducible in production?: y
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
Notes/Photos/Videos: Any additional supporting documentation
Recording.250.mp4
clickable.area.over.header.text.link.mp4
Expensify/Expensify Issue URL:
Issue reported by: @dhanashree-sawant
Slack conversation: https://expensify.slack.com/archives/C049HHMV9SM/p1681575226770749
View all open jobs on GitHub
Upwork Automation - Do Not Edit
The text was updated successfully, but these errors were encountered: