-
-
Notifications
You must be signed in to change notification settings - Fork 1.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
Add 'View on Hover' to Category Notes for #563 #579
Add 'View on Hover' to Category Notes for #563 #579
Conversation
✅ Deploy Preview for actualbudget ready!
To edit notification comments on pull requests, go to your Netlify site settings. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for opening the PR! Trying it out in the preview, it looks really great. I did notice a couple of small UI issues, though:
- the spacing between the text and the edge of the tooltip is slightly larger than between the texture and the edge of the tooltip. This isn’t a huge issue but it would be nice to fix if possible.
- Newlines aren’t handed properly (due to how HTML renders whitespace). Textareas default to
white-space: pre-wrap
, and the preview text should set this too.
Thanks again @gsumpster. I am loving this! But I agree, it would be great to get new lines displaying correctly. Thought - is there any merit in giving the "per month" budget (and/or accounts)notes the same hover treatment? |
Thanks for reviewing @j-f1, great catch on the new lines, didn't think to test that! That should be fixed now. I've also added a touch of padding to the textarea, I felt it looked a bit nicer with some padding but if there are strong opinions here, I can make both the textarea and the text itself have no padding. @Kidglove57, this component is shared across both of those locations, so this change will also apply to those automatically 🙌 |
Done! |
Co-authored-by: Jed Fox <[email protected]>
We love text wrapping 🙈 – I avoided |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me! I'll leave it with Jed to give the final approval since he was involved here too.
Thanks! And hah - you made me feel like an old dinosaur there 🦕 . I did not know this css attribute was deprecated. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
…get#579) * add hover state to NotesButton * switch NotesButton editability to a ternary * fix new lines, adjust padding on textarea * add workBreak to text styling * Update packages/loot-design/src/components/NotesButton.js Co-authored-by: Jed Fox <[email protected]> * change wordBreak to overflowWrap --------- Co-authored-by: Jed Fox <[email protected]>
Closes #563
This PR adds a hover to the NotesButton that displays NotesTooltip!