App
App copied to clipboard
[$500] FAB - No tooltip is displayed when hovering over FAB button when FAB menu is open
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: 1.4-37.3 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 Expensify/Expensify Issue URL: Issue reported by: Applause - Internal Team Slack conversation:
Action Performed:
- Go to staging.new.expensify.com
- Click FAB button
- Hover over FAB button
Expected Result:
Tooltip will be displayed for FAB button when FAB menu is open (old UI behavior)
Actual Result:
Tooltip is not displayed for FAB button when FAB menu is open (old UI behavior)
Workaround:
Unknown
Platforms:
Which of our officially supported platforms is this issue occurring on?
- [ ] Android: Native
- [ ] Android: mWeb Chrome
- [ ] iOS: Native
- [ ] iOS: mWeb Safari
- [x] MacOS: Chrome / Safari
- [x] MacOS: Desktop
Screenshots/Videos
Add any screenshot/video evidence
https://github.com/Expensify/App/assets/78819774/43abe4dc-cd1e-4b1e-86a3-cbf01de9dce7
Upwork Automation - Do Not Edit
- Upwork Job URL: https://www.upwork.com/jobs/~016d5a427366019641
- Upwork Job ID: 1754982105754923008
- Last Price Increase: 2024-02-06
Job added to Upwork: https://www.upwork.com/jobs/~016d5a427366019641
Triggered auto assignment to Contributor-plus team member for initial proposal review - @DylanDylann (External
)
Triggered auto assignment to @abekkala (Bug
), see https://stackoverflow.com/c/expensify/questions/14418 for more details.
We think that this bug might be related to #wave8 CC @zanyrenney
Proposal
Please re-state the problem that we are trying to solve in this issue.
No tooltip is displayed when hovering over FAB button when FAB menu is open
What is the root cause of that problem?
We don't wrap the component in a tooltip component
What changes do you think we should make in order to solve the problem?
Wrap the component in a tooltip
<Tooltip>
...
</Tooltip>
What alternative solutions did you explore? (Optional)
N/A
Proposal
Please re-state the problem that we are trying to solve in this issue.
No tooltip is displayed when hovering over FAB button when FAB menu is open
What is the root cause of that problem?
We don't wrap component with a tooltip
What changes do you think we should make in order to solve the problem?
Wrap it in a tooltip
What alternative solutions did you explore? (Optional)
Proposal
Please re-state the problem that we are trying to solve in this issue.
What is the root cause of that problem?
In the Overlay
component, we do not warp the PressableWithoutFeedback
components (close buttons) with the Tooltip
component.
On the other hand, the FloatingActionButton
(open button) operates because it is wrapped in a Tooltip
component.
https://github.com/Expensify/App/blob/ccad06103b56b1469034658c50f1e6218cc04057/src/components/FloatingActionButton.tsx#L106-L107
What changes do you think we should make in order to solve the problem?
Similar to the FloatingActionButton
, we should wrap the PressableWithoutFeedback
components inside the Overlay
component with the Tooltip
component.
<Tooltip text={translate('common.close')}>
...
</Tooltip>
Proposal
Please re-state the problem that we are trying to solve in this issue.
FAB - No tooltip is displayed when hovering over FAB button when FAB menu is open
What is the root cause of that problem?
The main problem with issue is that we use PopoverAnchorTooltip
for FloatingActionButton which related to state of Popover
https://github.com/Expensify/App/blob/82b76c1a36cf1a01b00c14510a5812a591e7f2fd/src/components/Tooltip/PopoverAnchorTooltip.tsx#L7-L34
As a result when we have open Popover, we disable Tooltip
What changes do you think we should make in order to solve the problem?
To fix this issue we can update import and use Normal Tooltip
import Tooltip from './Tooltip';
https://github.com/Expensify/App/blob/3e5e1928177c9eab02437c40f2ebcbdae019b3d1/src/components/FloatingActionButton.tsx#L13
Optional we can update text depending on isActive
prop
<Tooltip text={isActive ? translate('common.close') : translate('common.new')}>
https://github.com/Expensify/App/blob/3e5e1928177c9eab02437c40f2ebcbdae019b3d1/src/components/FloatingActionButton.tsx#L106
What alternative solutions did you explore? (Optional)
NA
@Expensify/design Could you guys help to confirm whether this is a bug or expected?
Current behavior
https://github.com/Expensify/App/assets/141406735/19c931b5-c98f-44bf-941f-140e3ec4e4dd
After fixing
https://github.com/Expensify/App/assets/141406735/5a63584d-0e0c-4c58-9063-f2d0ba26448d
I'm not convinced this is a bug. By having the tooltip display "Close" so quickly it feels like it's giving itself too much prominence. Keen to hear what @Expensify/design thinks
Expected Result and Actual Result are reversed. In https://github.com/Expensify/App/issues/24296, we intentionally disabled tooltip when related popover is open.
Should we update TestRail?
@situchan Thanks for your information. Let's close this issue
cc @abekkala
Down to close as well!
Agree that we should close this.