-
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
[HOLD for payment 2024-12-07] [$250] mWeb/Chrome - Inbox - Blue frame on search icon after returning from finder with device back button #52128
Comments
Triggered auto assignment to @MitchExpensify ( |
ProposalPlease re-state the problem that we are trying to solve in this issue.mWeb/Chrome - Inbox - Blue frame on search icon after returning from finder with device back button What is the root cause of that problem?This code applies a What changes do you think we should make in order to solve the problem?Add What alternative solutions did you explore? (Optional)Use
Result mWeb.Chrome.mp4 |
ProposalPlease re-state the problem that we are trying to solve in this issue.
What is the root cause of that problem?
relates to conditions in points 1 and 3 above.
Device Back Button or Swipe-Right Action: When the search icon is clicked and a keyboard interaction occurs, the focus-visible class is applied, marking the element as focused. Exiting via the device’s back button or swipe-right keeps the focus-visible indicator on the search icon. App Back Button (‘<’): If the search icon is clicked, then a keyboard action occurs, the focus-visible class is initially applied. However, when the app’s back button is pressed, the browser, recognizing this as a mouse action, suppresses the focus-visible indicator, leaving the search icon without the focus-visible class. What changes do you think we should make in order to solve the problem?
What alternative solutions did you explore? (Optional) |
Job added to Upwork: https://www.upwork.com/jobs/~021854990083710446627 |
Triggered auto assignment to Contributor-plus team member for initial proposal review - @rojiphil ( |
ProposalPlease re-state the problem that we are trying to solve in this issueA blue frame is displayed around search icon after navigating to finder, writing on search input and returning to inbox using device back button. What is the root cause of that problem?We are applying the Lines 65 to 67 in 0f03601
and Lines 83 to 86 in 0f03601
the root cause of our issue being that the pseudo-class style is applied globally to all web based platforms, including mWeb without any exclusion. What changes do you think we should make in order to solve the problem?There's a simple and practical CSS-based solution to keep the To do this we will use the widely supported feature
In order to cover both instances where we use the /* Our first pseudo-class style */
:focus-visible {
outline: 0;
box-shadow: inset 0px 0px 0px 1px #5AB0FF;
}
/* ... */
/* Our second pseudo-class style */
:focus[data-focusvisible-polyfill] {
outline: 0;
box-shadow: inset 0px 0px 0px 1px #5AB0FF;
}
/* Disable the box-shadow for coarse (touch) pointers */ <- Added our fix right here
@media (pointer: coarse) {
:focus-visible, :focus[data-focusvisible-polyfill] {
box-shadow: none;
}
}
<- End of fix ✅ This ensures the focus effect still stands on Web / Desktop but it won't show up on Android / iOS mWeb anymore, fulfilling the issue's Expected result. Note I think it is paramount that we keep the focus visual feedback on the search icon for Web / Desktop platforms for accessibility reasons. Videos (before / after)Android: mWeb
|
@rojiphil, @MitchExpensify Uh oh! This issue is overdue by 2 days. Don't forget to update your issues! |
@rojiphil can you review the proposals here please? |
@rojiphil, @MitchExpensify Huh... This is 4 days overdue. Who can take care of this? |
Sorry for the delay here. Will review today. |
📣 It's been a week! Do we have any satisfactory proposals yet? Do we need to adjust the bounty for this issue? 💸 |
Thanks for all your proposals. @nyomanjyotisa Adding style.boxShadowNone does not seem to be the way to go as the blue frame on search icon will not be displayed when needed (e.g. navigation using tab) @truph01 Preventing the search button from being focused also does not seem like a good idea as keyboard access is still needed on the button.
@ikevin127 I think the expected result is to not display the blue frame on android mweb chrome when device back button is pressed. It does not look like we don’t want to show that on iOS/Android mWeb anymore. Or am I missing something here? |
@rojiphil What I understand is that we don't want to see the focus effect in our case on any mWeb platform (touch devices, narrow layout) - meaning to have consistency with Native platforms. The only place where the focus effect should be kept is Web / Desktop for accessibility reasons (because here we can navigate with keyboard and need visual feedback). |
Not overdue, proposals actively being reviewed |
@rojiphil, @MitchExpensify Whoops! This issue is 2 days overdue. Let's get this updated quick! |
Sure. Will update today |
@rojiphil I don't believe this is a regression caused by my proposal, as we are preserving the focus state in the LHN screen when returning from the search route screen. But if we consider it as a bug, we can update my code change in the proposal to:
|
@truph01 Thanks for the response. But that seems more like a workaround to me. The selected proposal is better. Hope to work together with you in some other issue. @madmax330 Let us go with @nyomanjyotisa proposal with alternative solution if it is fine with you. The proposal was already reviewed here and still LGTM. Thanks. |
@rojiphil Thanks for your feedback. I just have one more question in case:
|
@truph01 Well! I think this issue is not about preserving the focused state. In fact, going this way would mean making it generic with application level implications for all screens. But if you still think this is the way to go, feel free to raise a discussion in slack and take it from there. |
I agree with @rojiphil , looks like @nyomanjyotisa's proposal is the way to go. |
📣 @rojiphil 🎉 An offer has been automatically sent to your Upwork account for the Reviewer role 🎉 Thanks for contributing to the Expensify app! |
📣 @nyomanjyotisa 🎉 An offer has been automatically sent to your Upwork account for the Contributor role 🎉 Thanks for contributing to the Expensify app! Offer link |
|
The solution for this issue has been 🚀 deployed to production 🚀 in version 9.0.68-7 and is now subject to a 7-day regression period 📆. Here is the list of pull requests that resolve this issue: If no regressions arise, payment will be issued on 2024-12-07. 🎊 For reference, here are some details about the assignees on this issue:
|
@rojiphil @MitchExpensify @rojiphil The PR fixing this issue has been merged! The following checklist (instructions) will need to be completed before the issue can be closed. Please copy/paste the BugZero Checklist from here into a new comment on this GH and complete it. If you have the K2 extension, you can simply click: [this button] |
BugZero Checklist:
Bug classificationSource of bug:
Where bug was reported:
Who reported the bug:
Regression Test ProposalPrecondition:Note: Test on android native/mweb platform Test:
Do we agree 👍 or 👎 |
@MitchExpensify Completed BZ checklist and accepted the offer too. All yours now. Thanks. |
Test GH here: https://github.com/Expensify/Expensify/issues/451967 Paid and contracts ended |
If you haven’t already, check out our contributing guidelines for onboarding and email [email protected] to request to join our Slack channel!
Version Number: 9.0.58-0
Reproducible in staging?: Y
Reproducible in production?: Y
If this was caught on HybridApp, is this reproducible on New Expensify Standalone?: N/A
If this was caught during regression testing, add the test name, ID and link from TestRail: N/A
Issue reported by: Applause - Internal Team
Action Performed:
Expected Result:
No difference should be seen on search icon after opening finder, writing on search input and returning to inbox
Actual Result:
A blue frame is displayed around search icon after navigating to finder, writing on search input and returning to inbox using device back button
Workaround:
Unknown
Platforms:
Which of our officially supported platforms is this issue occurring on?
Screenshots/Videos
Add any screenshot/video evidence
Bug6656631_1730902841381.Frame.mp4
View all open jobs on GitHub
Upwork Automation - Do Not Edit
Issue Owner
Current Issue Owner: @MitchExpensifyThe text was updated successfully, but these errors were encountered: