-
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 2023-06-19] [$1000] Checkbox border turns green once another window is opened and revert back #18801
Comments
Triggered auto assignment to @mallenexpensify ( |
Bug0 Triage Checklist (Main S/O)
|
ProposalPlease re-state the problem that we are trying to solve in this issue.Checkbox border turns green once focus is shifted back to window What is the root cause of that problem?When we un-select the checkbox, we're simply calling What changes do you think we should make in order to solve the problem?We need to take the What alternative solutions did you explore? (Optional)None |
This is decided is not a bug here: #11283 (comment) |
Yes, not a big deal. We can close this. |
@parasharrajat It might not be something of a higher priority, but this IS a bug IMO. |
Why do you think this is a bug? When you move to focus back to the old tab, the browser focuses on the previously active element for A11Y. It is the same as pressing the Tab key to highlight an element. This is not a bug but a feature. |
@parasharrajat If the element was active previously, then IT should have the |
This is happening with Screen.Recording.2023-05-12.at.3.22.18.PM.mov |
This does not answer my question but repel it. Even does not align with your proposal where you are trying to remove the focus #18801 (comment). |
I mean, if you look at the code, you can clearly see that we're removing the focus styles without removing the actual focus. This is something that doesn't feel correct and is actually causing this inconsistency when compared with other components that we have in our App. Regardless of what I'm proposing, what makes it a bug IMO is that if an active element does not have a border before the tab switching, then it should not have a border after tab switching as well. |
Why? What is the reasoning behind this? I don't think we should be worrying about this issue at all. This is not worth solving. IMO, it gives an advantage to the user. When the user returns back to the App, they can easily see which element was last active. Also, this is browser-native behavior. |
@mallenexpensify Whoops! This issue is 2 days overdue. Let's get this updated quick! |
Oooooof, I feel like there are so many small, edge case, possible-bugs that require a bunch of random-ish steps in order to reproduce. Like... if we didn't fix this, would any user/customer ever think it was a bug? (end.. rant). I'll come back to this tomorrow |
@mallenexpensify I agree with you fully. I think adding a |
Triggered auto assignment to @MariaHCD ( |
Agreed but... then we'd like just end up with a lot of these lil bugs never getting fixed then we'd have an app with ton of tiny bugs! (well.. maybe. I'm way less grumpy today, glad I slept on it). So.. is this a small and edge case bug, yup. |
I definitely agree that this is a small, edge case situation. I don't think a customer would actually notice but it is odd that the checkbox would still be highlighted when the user navigates away. So, I agree with @allroundexperts, if the element wasn't highlighted before the tab switch, then it shouldn't be highlighted after. While I don't necessarily think this is a bug since it's more of an small improvement, I still think we should fix it. Like @mallenexpensify said we don't want to end up with an app that has tiny, weird issues like these. |
Job added to Upwork: https://www.upwork.com/jobs/~01f763eb9e34751150 |
|
The solution for this issue has been 🚀 deployed to production 🚀 in version 1.3.26-4 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 2023-06-19. 🎊 After the hold period is over and BZ checklist items are completed, please complete any of the applicable payments for this issue, and check them off once done.
As a reminder, here are the bonuses/penalties that should be applied for any External issue:
|
BugZero Checklist: The PR fixing this issue has been merged! The following checklist (instructions) will need to be completed before the issue can be closed:
|
|
I just noticed that we are using CSS styles in the implemented solution. That style is using theme colors that are hard-coded and not controlled with our theme variables. IMO, it should be changed. |
Nice catch, @parasharrajat! @s77rt @bernhardoj let's find a way to have this controlled by our theme variables instead of hardcoding it and create a follow up PR.
I think the consensus on Slack will still be that we shouldn't be hardcoding this. So I think we should first try to find an alternative solution and if we can't, we can move the conversation to Slack. Thoughts? |
Here is the alternative solution I find from ChatGPT + SO:
We will create a new style element and append it to Lines 109 to 115 in 862955c
|
I prefer to keep this hard-coded for now. We already have the blue outline and the splash background hard-coded. Those need to be fixed too and I think such change can be handled once we add the light/dark theme switch feature. Otherwise if you have a strong preference on fixing this now we can probably use |
That's a fair point. Removing those hardcoded colors from index.html might already be a consideration for the @shawnborton @grgia Can you confirm if removing hardcoded color values such as for the background color of the splash screen from index.html is something that is or should be part of Lines 109 to 115 in 862955c
We introduced another hardcoded color here for focused checkboxes and we'd like to know whether we should fix that now but also don't want to cause any conflicts if there is already a plan in place to replace those hardcoded values. |
for the hardcoded color on the splash, I believe that will remain theme-independent because it is created before the app is loaded. However, we should avoid hard-coding any colors that are seen after the app is loaded, especially ones that would be affected by a theme change. Does that help @MariaHCD? |
Thanks, @grgia! So I think we'll need to fix the hardcoded color now. Thoughts, @bernhardoj @s77rt? |
@MariaHCD At this point looks like we have nothing to do. We have this PR #20997 that applied this discussed solution i.e add padding. Except that they didn't change the border color. @shawnborton seems okay with that so looks we all set for now. (The green hardcoded is also removed since it's no longer used and the generic blue one is used instead - the blue color is still hard coded though) |
I see a lot of conversation after the PR hit production, any reason I shouldn't pay everyone now? It's been over 7 days |
I think it's ready for payment. No further action is required from our end. cc @MariaHCD can you please confirm the same |
eeeeps, the old job closed. I was going to try to get this paid before the weekend. |
@mallenexpensify Accepted! |
@mallenexpensify offer accepted |
@mallenexpensify accepted |
Perfect, thanks! Yes, looks like we're good to close this out. |
Thanks all, everyone is paid (inc. bonus for timeliness, I added this to our design guideline sheet |
If you haven’t already, check out our contributing guidelines for onboarding and email contributors@expensify.com to request to join our Slack channel!
Action Performed:
Expected Result:
The checkbox should always have a white border when the admin is the only member present, as the admin cannot be selected when using the "Select all" option.
Actual Result:
The border of checkbox "Select all" turns green once another window is opened and reverted back.
Workaround:
Can the user still use Expensify without this being fixed? Have you informed them of the workaround?
Platforms:
Which of our officially supported platforms is this issue occurring on?
Version Number: 1.3.13.0
Reproducible in staging?: y
Reproducible in production?: y
If this was caught during regression testing, add the test name, ID and link from TestRail:
Email or phone of affected tester (no customers):
Logs: https://stackoverflow.com/c/expensify/questions/4856
Notes/Photos/Videos: Any additional supporting documentation
Bug.1.mp4
Recording.560.mp4
Expensify/Expensify Issue URL:
Issue reported by: @usmantariq96
Slack conversation: https://expensify.slack.com/archives/C049HHMV9SM/p1683739504158529
View all open jobs on GitHub
Upwork Automation - Do Not Edit
The text was updated successfully, but these errors were encountered: