-
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: clicking spacebar leaves highlight focus on emoji in emoji picker #22995
fix: clicking spacebar leaves highlight focus on emoji in emoji picker #22995
Conversation
@abdulrahuman5196 Please copy/paste the Reviewer Checklist from here into a new comment on this PR and complete it. If you have the K2 extension, you can simply click: [this button] |
@payal-lathidadiya Offline tests is also "Same as tests" since this is expected to work offline as well |
Yeah correct, it's same as test steps above. |
Could you update the same in author's checklist? |
@Julesssss It seems we have an issue of this implementation in case of mobile devices. This approved change is removing a press feedback kind of mechanism in current behaviour. With this PR. Untitled.mp4Current Production behaviour. Untitled1.mp4 |
@abdulrahuman5196 updated. thanks |
@abdulrahuman5196 I'm just wondering if we should to show it since selecting emoji is going to close the picker. Not sure if we should compare UX/behavior with other messaging apps/tools. as checked, slack doesn't show press feedback with emoji selection. |
I would expect a native Android View to highlight when pressed, even if the modal is closed. We'll need to resolve this. |
Sure @Julesssss, I'll look into possible solution. Do you think we should apply current solution only except native app? since original issue is only around desktop and web where we support keyboard interaction for navigating in emoji list. Or do you have any other thoughts or input here. |
We try to avoid any platform specific logic, but yeah using alternate components/files per platform with specific files is okay (for example .android) |
I am not sure that will work out. Since we would still face this issue in mobile web. |
@Julesssss @abdulrahuman5196 For mobile web, we can use our browser API i.e. What do you think about this approach and solution? If looks good, I can push new updates. |
@payal-lathidadiya that sounds reasonable to me 👍 |
@payal-lathidadiya I think we can also use |
I don't like this solution as it is not directly associated with the client platform (r resized desktop web client would still have the bug) |
I had the same doubt, but I am unable to check the same currently. So I am suggesting it just as an another option to try out to solve this issue. |
…ired background style logic adds separate native component to keep mobile behavior as previously and only apply style fix for web and desktop
Here we go! Also, updated PR with fresh screen recording post testing of new updates on all platforms |
@abdulrahuman5196 bump for review |
Will work on review today |
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.
👍
Reviewer Checklist
Screenshots/VideosWebScreen.Recording.2023-07-26.at.9.47.45.PM.mp4Mobile Web - Chromeaz_recorder_20230726_220924.mp4Mobile Web - SafariUntitled.mp4DesktopScreen.Recording.2023-07-26.at.9.46.43.PM.mp4iOSScreen.Recording.2023-07-26.at.10.03.06.PM.mp4Androidaz_recorder_20230726_220547.mp4 |
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.
Changes looks good and works well. Reviewers checklist is also complete.
All yours. @Julesssss Good to merge.
🎀 👀 🎀
C+ Reviewed
Tests well |
✋ This PR was not deployed to staging yet because QA is ongoing. It will be automatically deployed to staging after the next production release. |
🚀 Deployed to staging by https://github.com/Julesssss in version: 1.3.47-0 🚀
|
🚀 Deployed to production by https://github.com/Beamanator in version: 1.3.47-6 🚀
|
Details
This fixes issue in emoji picker, wherein clicking on spacebar leaves selected/highlight focus on emoji. Removes highlight style for web and desktop since pressing on the emoji is expected to close the popup
Fixed Issues
$ #21806
PROPOSAL: #21806 (comment)
Tests
Offline tests
Same as above
QA Steps
Same as above
PR Author Checklist
### Fixed Issues
section aboveTests
sectionOffline steps
sectionQA steps
sectiontoggleReport
and notonIconClick
)myBool && <MyComponent />
.src/languages/*
files and using the translation methodWaiting for Copy
label for a copy review on the original GH to get the correct copy.STYLE.md
) were followedAvatar
, I verified the components usingAvatar
are working as expected)/** comment above it */
this
properly so there are no scoping issues (i.e. foronClick={this.submit}
the methodthis.submit
should be bound tothis
in the constructor)this
are necessary to be bound (i.e. avoidthis.submit = this.submit.bind(this);
ifthis.submit
is never passed to a component event handler likeonClick
)StyleUtils.getBackgroundAndBorderStyle(themeColors.componentBG)
)Avatar
is modified, I verified thatAvatar
is working as expected in all cases)ScrollView
component to make it scrollable when more elements are added to the page.main
branch was merged into this PR after a review, I tested again and verified the outcome was still expected according to theTest
steps.Screenshots/Videos
Web
Screen.Recording.2023-07-19.at.6.01.49.PM.mov
Mobile Web - Chrome
Screen.Recording.2023-07-19.at.6.14.47.PM.mov
Mobile Web - Safari
Screen.Recording.2023-07-19.at.6.25.04.PM.mov
Desktop
Screen.Recording.2023-07-19.at.6.05.27.PM.mov
iOS
Screen.Recording.2023-07-19.at.6.22.33.PM.mov
Android
Screen.Recording.2023-07-19.at.6.12.38.PM.mov