-
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
Add focus trap to the RHP (v2) #27670
Add focus trap to the RHP (v2) #27670
Conversation
I want to flag with this PR #27230 (comment) we faced some issues with the focusTrap. Lets make sure we wait for that and we address it here. |
Hey @mountiny, can we remove HOLD from this as the other PR was merged? I merged the main and resolved conflicts but didn't thoroughly test it yet (as it is on hold). |
@kosmydel thank you! Please go ahead and test away |
All yours @fedirjh |
I've resolved merged & resolved conflicts. I have to test it thoroughly again but will do it tomorrow. Marking as draft |
Hey, @fedirjh I've tested it, and it looks like it is ready for review |
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.
Re-tested and everything is working fine. Not sure what to do about the failing tests.
We have an open support ticket with snyk as these tests are failing on all PRs (at least, all PRs from forks) |
✋ 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/roryabraham in version: 1.4.2-0 🚀
|
This PR caused above deploy blockers with the same root cause. |
@kosmydel @roryabraham @blazejkustra we're reverting this PR since it caused the following blockers:
Could you please work on the PR and a fix for the issues above? |
@@ -100,6 +100,7 @@ | |||
"domhandler": "^4.3.0", | |||
"expensify-common": "git+ssh://git@github.com/Expensify/expensify-common.git#886f90cbd5e83218fdfd7784d8356c308ef05791", | |||
"fbjs": "^3.0.2", | |||
"focus-trap-react": "^10.2.1", |
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.
Please use v10.2.3 to include focus-trap/focus-trap#1068
🚀 Deployed to production by https://github.com/luacmartins in version: 1.4.2-3 🚀
|
Hey, sure I will check it. However, currently, I am focusing on the ideal nav project, as it has the highest priority. |
Sure, no rush |
@kosmydel any new updates ? |
Hey, I hope that next week I will have some more time to look at this. |
Details
This is a new version of this PR. The previous one was reverted due to two bugs:
This PR addresses the above issues and reintroduces the
FocusTrap
. I've updated the test plan and posted new videos to cover the above issues.Fixed Issues
$ #15631
PROPOSAL: #15631 (comment)
Tests
InitialSettingsPage
), verify that the focus trap works without focusable elements insideOffline tests
Doesn't change anything network-related.
QA Steps
AnimatedStepProvider
, currently it is only theTwoFactorAuthPage
.The background button should blur(the modal was changed)Verify that the button is focused againClose acctount
. Verify if the focus trap is working in the confirmation modalPR Author Checklist
### Fixed Issues
section aboveTests
sectionOffline steps
section.QA 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
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
Fixed:
fix-web.mov
web-2.mov
Workspace creation:
web-fix.mov
Old version:
https://github.com/Expensify/App/assets/104823336/4521b3e2-b25c-427c-a1e6-5294242e39e1
Mobile Web - Chrome
Fixed:
fix-mWeb-android.mov
mWeb-android.mov
Mobile Web - Safari
Fixed:
fix-mWeb-ios.MP4
mWeb-iOS.mp4
Desktop
Fixed:
fix-desktop.mov
desktop-2.mov
Workspace creation:
desktop-fix.mov
Old version:
https://github.com/Expensify/App/assets/104823336/43e3570d-5293-4804-890d-c8675f25d934
iOS
Fixed:
fix-ios.mp4
iOS.mp4
Android
Fixed:
fix-android.mov
android.mov