-
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
fix issue 6326: Chat - Magnifying glass displayed anywhere #6437
Conversation
CLA Assistant Lite bot All contributors have signed the CLA ✍️ ✅ |
I have read the CLA Document and I hereby sign the CLA |
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.
The code looks good and tests well when the image is zoomed out, but once the image is zoomed in, the magnifying glass goes back to appearing everywhere. Can you update the zoomed in behavior to match the zoomed out?
2021-11-23_15-38-08.mp4
Fair, though it didn't really make sense till I saw it in action — after seeing it, I think it makes more sense to have it behave the same.
Thanks! |
@deetergp |
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 and tests well. Thanks!
@railway17, Great job getting your first Expensify/App pull request over the finish line! 🎉 I know there's a lot of information in our contributing guidelines, so here are some points to take note of 📝:
So it might take a while before you're paid for your work, but we typically post multiple new jobs every day, so there's plenty of opportunity. I hope you've had a positive experience contributing to this repo! 😊 |
✋ This PR was not deployed to staging yet because QA is ongoing. It will be automatically deployed to staging after the next production release. |
The accessibility issue found in this PR:
No.keyboard.alternative.provided.to.zoom-in.functionality.mp4 |
Was there any keyboard functionality before I've changed before? |
@railway17 no, there was no keyboard alternative provided for zoom-in functionality before the latest changes. Tagging @roryabraham for an input on accessibility issues, but I think they are not deploy blockers for any PR. |
Sorry, but I didn't understand your issue. |
@railway17 We're piloting an in-sprint accessibility testing program to improve the UI/UX of our app as it is consumed by users with various forms of impairments. This program is still in its infancy, and we don't need to address accessibility issues at this time. @ogumen (and their team) test PRs and post issues found to gain familiarity with our process and application, and to provide educational opportunities for us as engineers to be able to identify and fix these accessibility issues. Thanks @ogumen! I'll create a follow-up issue to address this shortcoming. Quick question before I do: our zoom-in functionality zooms into different areas on the image depending on where you click on it (i.e cursor position). How do you recommend we implement that sort of functionality with a keyboard alternative? |
Ok, I got it. @ogumen |
Thank you @roryabraham. As of now after hovering over and clicking on the image in the Attachment dialog, a portion of the image is zoomed in, and user can move over the other parts of the image using arrow keys (this is great!). My recommendation is to provide a toggle button which will zoom in / zoom out the image once activated (the same functionality as the magnifying glass icon does on click). |
🚀 Deployed to production by @roryabraham in version: 1.1.17-7 🚀
|
Details
cursor: zoom-in
style was assigned to the ancient of theImage
component, this cursor was displayed out of the image area.To resolve it, I reassign this style to image (Actually, I assigned it to
Pressable
component because theImage
component is wrapped by it).For center alignment, I calculated the offset based on modal size and image size.
Fixed Issues
$ GH_LINK
Tests
QA Steps
Tested On
This issue is just a hovering issue, don't need to check for mobile platforms.
Screenshots
Web
web fix video
Desktop
desktop fix video