-
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
Fix for: Web – 2FA - The copy icon placed in "copy code" button is clicked, the icon remains in a hovered state. #22430
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] |
I opted to render the text inside the |
@Ollyws Checklist is not complete? Is the PR not ready to review? |
@abdulrahuman5196 Sorry clocked off for the weekend. Checklist complete, ready for review. |
@abdulrahuman5196 Friendly bump. |
Sorry for the delay will complete the review tomorrow morning |
@Ollyws Is this solving some issue? Could you provide some details on this? |
@abdulrahuman5196 If we just always render the text inside pressable, inline is vertically misaligned on Android: |
@abdulrahuman5196 can you keep moving this forward? |
Sorry for the delay. Will close this out today |
@Ollyws Sorry for the delay. Can we fix the merge conflicts? I will close this review today itself as a first thing. |
@abdulrahuman5196 No worries, merge conflicts fixed. |
@Ollyws But this change is causing the original issue of "on text hover, icon is not highlighted" issue to come up here. Even pressing on the email only copies. Screen.Recording.2023-07-18.at.3.26.46.AM.mov |
@abdulrahuman5196 |
@arosiclair What do you think of this CopyTextToClipboard behaviour? Should we keep the same behaviour as in production or change it as per the current behaviour changes? |
The original issue never occurs on |
What exactly is the existing behavior of |
@arosiclair This is the current behavior of copytexttoclipboard.mp4You can check it on the Contact Methods Page. It's not changed in this PR the only buttons that are changed are the ones on the 2FA codes page. |
Existing behaviour of CopyTextToClipboard is not changed yet in this PR The question would be, Do we want to change the existing behaviour with the current new behaviour we are implementing in the 2FA page buttons ("If we hover over the button text, icon should be also in hover state") in the Current behaviour video here #22430 (comment) |
Okay since it's unchanged, I think we can consider that out of scope for now. Consider reporting it as its own bug. |
Reviewer Checklist
Screenshots/VideosWebScreen.Recording.2023-07-21.at.12.22.20.AM.mp4Mobile Web - Chromeaz_recorder_20230721_010223.mp4Mobile Web - SafariUntitled.1.mp4DesktopScreen.Recording.2023-07-21.at.12.55.04.AM.mp4iOSScreen.Recording.2023-07-21.at.12.49.18.AM.mp4Androidaz_recorder_20230721_011804.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.
The changes looks good and works well. Reviewers checklist is also complete.
All yours @arosiclair
🎀 👀 🎀
C+ Reviewed
✋ 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/arosiclair in version: 1.3.44-0 🚀
|
🚀 Deployed to production by https://github.com/marcaaron in version: 1.3.44-2 🚀
|
🚀 Deployed to staging by https://github.com/arosiclair in version: 1.3.45-0 🚀
|
🚀 Deployed to production by https://github.com/mountiny in version: 1.3.45-7 🚀
|
Details
Fixed Issues
$ #21673
PROPOSAL: #21673 (comment)
Tests
Offline tests
QA Steps
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
MacOS_Web.mp4
Mobile Web - Chrome
Android_Chrome.mp4
Mobile Web - Safari
iOS_Safari.mp4
Desktop
MacOS_Desktop.mp4
iOS
iOS_Native.mp4
Android
Android_Native.mp4