-
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
[$500] Private Note - Left line/border of quoted text is not visible when hovering over it in Notes #28858
Comments
Triggered auto assignment to @peterdbarkerUK ( |
Job added to Upwork: https://www.upwork.com/jobs/~01a4212fb13e89f5bb |
Bug0 Triage Checklist (Main S/O)
|
Triggered auto assignment to Contributor-plus team member for initial proposal review - @hoangzinh ( |
ProposalPlease re-state the problem that we are trying to solve in this issue.Blockquote has the same color as the selected color What is the root cause of that problem?Blockquote has the same color as the private note background color while hovering In the styles we use for blockquote Therefore, after hovering over an element, the blockquote merges with the background What changes do you think we should make in order to solve the problem?Due to the latest updates, there was a decision to update the background color for menu items We need to update getButtonBackgroundColorStyle
Lines 521 to 532 in 55f86ce
What alternative solutions did you explore? (Optional)To display text for MenuItem we use RenderHTMLSource Which use one global set of styles App/src/components/RenderHTML.js Lines 15 to 23 in 4078503
If we decide to change the color on hover we will have to refactor this component And use RenderHTML
And after that, we will be able to pass custom styles For example
App/src/components/MenuItem.js Lines 254 to 256 in f878fbd
Or we can pass these styles as props to MenuItem |
ProposalPlease re-state the problem that we are trying to solve in this issue.The left border on quoted text is not visible when hovering in Notes. What is the root cause of that problem?This can be caused by a CSS styling issue. I believe it may be the What changes do you think we should make in order to solve the problem?make sure the What alternative solutions did you explore? (Optional)N/A Contributor details |
📣 @dannysanchez559! 📣
|
ProposalPlease re-state the problem that we are trying to solve in this issue.The left border on quoted text is not visible when hovering in Notes. What is the root cause of that problem?The reason of this issue is that the background color of "Private notes" and the color of left bar is same. And this image shows the background color of "Notes" What changes do you think we should make in order to solve the problem?We should change the color of left bar or background color of the "Notes". What alternative solutions did you explore? (Optional)N/A Contributor details |
✅ Contributor details stored successfully. Thank you for contributing to Expensify! |
@ZhenjaHorbach, Thanks for your proposal. Could you add more details to your RCA? and do you mean "hover" instead of "selected color"? |
@dannysanchez559 Thanks for your proposal, but your proposal is not clear enough to me. I couldn't get the root cause and also the idea to fix the issue. Do you mind to check your proposal again? Thanks |
@hoangzinh plus update proposal ) |
@Kunkka0822 Thanks for your proposal. You have the correct RCA, but next time, it's better if you can link to the current code into your RCA (so we can have broader information based on the codebase). Unforturnely, Your approach is almost the same as @ZhenjaHorbach's approach. And I prefer the idea of @ZhenjaHorbach with changing to Anyway, keep up your great work in other issues. |
@ZhenjaHorbach yeah, but RCA needs to clear as much as possible to we can ensure we're fixing the root cause. Btw, could you help to take screenshots of before and after change to |
@hoangzinh Before Screen.Recording.2023-10-05.at.15.46.30.movAfter Screen.Recording.2023-10-05.at.15.45.31.mov |
@shawnborton @peterdbarkerUK , we need your help to review if the new border color of the blockquote looks good to you. In this GH, We identified that the current blockquote's border and hover background of menu item have the same color theme.border (#1A3D32). It makes the blockquote hidden when we hover over the menu item. @ZhenjaHorbach suggested in his proposal #28858 (comment) that we should update blockquote's borderline to theme.borderLighter (#184E3D). Could you help to review if the blockquote still looks good? Thanks Below are screenshots before & after of blockquote in Private notes and Chat Message
Default state
Hover state
Default state
Hover state
And recording video of @ZhenjaHorbach here #28858 (comment) |
I think we should only change the border color on :hover for the notes push rows for private notes. We should keep it the same elsewhere though. |
I think we can do it To display text for MenuItem we use Which use one global set of styles App/src/components/RenderHTML.js Lines 15 to 23 in 4078503
If we decide to change the color on hover we will have to refactor this component And use
Which will have to pass a custom set of styles
But in this solution we have problem I tried a little to get rid of this warning Since our parent element changes very often, especially when we hover over the element and change the state In case the style set is static, I think we can use this But if we are talking about color changes on hover, it looks very complicated and unjustifiably What do you think ? |
What do you think about if we change the default color only on private notes? |
I think we should use our standard border color where ever we can, and only use this exception on hover. That being said, I'm actually surprised we're showing the border here: Why aren't we just rendering this as plain text? That seems odd to me that we'd show that kind of styling in a push-to-page input. cc @Expensify/design for thoughts, as well as @techievivek @JmillsExpensify @trjExpensify |
There are 2 reasons that I think we can use a lighter color of our standard border for blockquote:
Screen.Recording.2023-10-06.at.05.38.31.mov
I have the same thought. But I realize we're supporting markdown on various pages I.e: Welcome message, Task description... |
Can't we start using a new color only for left line that will be slightly different from the current one? |
@ZhenjaHorbach I think no ^, we should use our existing theme colors |
If you are the assigned CME please investigate whether the linked PR caused a regression and leave a comment with the results. If a regression has occurred and you are the assigned CM follow the instructions here. If this regression could have been avoided please consider also proposing a recommendation to the PR checklist so that we can avoid it in the future. |
@ZhenjaHorbach our PR has been reverted because of #30952 |
What a pity ( Apparently, we need to add a new parameter for this function Lines 521 to 532 in 55f86ce
|
I don't think it's a good idea. Because it will cause inconsistency :hover background in other places using the menu item. |
Another alternative could be |
@ZhenjaHorbach Can you give the screenshot of those places? then we can ask for suggestions from our design team |
Where does the new color match the background color during hover? |
Yes, I'm curious how many are there. |
Perfect. Can you raise your question/opinion to our design team (@shawnborton or @dubielzyk-expensify) to ask their advice on that issue? Thanks. |
Asked a question on Slack |
This issue has not been updated in over 15 days. @hoangzinh, @peterdbarkerUK, @grgia, @ZhenjaHorbach eroding to Monthly issue. P.S. Is everyone reading this sure this is really a near-term priority? Be brave: if you disagree, go ahead and close it out. If someone disagrees, they'll reopen it, and if they don't: one less thing to do! |
Triggered auto assignment to @sakluger ( |
@grgia do we still need this issue? Based on the Slack thread, you created a separate GH issue which I think will fix this bug. If we close this issue, do we owe payments to anyone for work done up until now? |
According to @grgia we can close out this issue. There was a PR merged in Oct but then reverted, so no payment is due. |
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:
Expected Result:
The left line should remain visible when hovering
Actual Result:
The left line is hidden
Workaround:
Unknown
Platforms:
Which of our officially supported platforms is this issue occurring on?
Version Number: 1.3.77.5
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
Desktop-_issue.mov
hover.mp4
Recording.4855.mp4
Expensify/Expensify Issue URL:
Issue reported by: @aman-atg
Slack conversation: https://expensify.slack.com/archives/C049HHMV9SM/p1696349601547269
View all open jobs on GitHub
Upwork Automation - Do Not Edit
The text was updated successfully, but these errors were encountered: