App icon indicating copy to clipboard operation
App copied to clipboard

[$500] FAB - No tooltip is displayed when hovering over FAB button when FAB menu is open

Open lanitochka17 opened this issue 1 year ago • 8 comments

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:

  1. Go to staging.new.expensify.com
  2. Click FAB button
  3. 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

View all open jobs on GitHub

Upwork Automation - Do Not Edit
  • Upwork Job URL: https://www.upwork.com/jobs/~016d5a427366019641
  • Upwork Job ID: 1754982105754923008
  • Last Price Increase: 2024-02-06

lanitochka17 avatar Feb 06 '24 21:02 lanitochka17

Job added to Upwork: https://www.upwork.com/jobs/~016d5a427366019641

melvin-bot[bot] avatar Feb 06 '24 21:02 melvin-bot[bot]

Triggered auto assignment to Contributor-plus team member for initial proposal review - @DylanDylann (External)

melvin-bot[bot] avatar Feb 06 '24 21:02 melvin-bot[bot]

Triggered auto assignment to @abekkala (Bug), see https://stackoverflow.com/c/expensify/questions/14418 for more details.

melvin-bot[bot] avatar Feb 06 '24 21:02 melvin-bot[bot]

We think that this bug might be related to #wave8 CC @zanyrenney

lanitochka17 avatar Feb 06 '24 21:02 lanitochka17

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

allgandalf avatar Feb 06 '24 21:02 allgandalf

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)

muas19 avatar Feb 06 '24 21:02 muas19

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>

Tony-MK avatar Feb 06 '24 22:02 Tony-MK

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

ZhenjaHorbach avatar Feb 06 '24 22:02 ZhenjaHorbach

@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

DylanDylann avatar Feb 07 '24 04:02 DylanDylann

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

dubielzyk-expensify avatar Feb 07 '24 04:02 dubielzyk-expensify

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 avatar Feb 07 '24 05:02 situchan

@situchan Thanks for your information. Let's close this issue

cc @abekkala

DylanDylann avatar Feb 07 '24 06:02 DylanDylann

Down to close as well!

shawnborton avatar Feb 07 '24 13:02 shawnborton

Agree that we should close this.

dannymcclain avatar Feb 08 '24 14:02 dannymcclain