Skip to content

ui: Don't show tooltip when ButtonLike is selected#13857

Merged
mrnugget merged 1 commit intomainfrom
ui/no-tooltip-when-selected
Jul 5, 2024
Merged

ui: Don't show tooltip when ButtonLike is selected#13857
mrnugget merged 1 commit intomainfrom
ui/no-tooltip-when-selected

Conversation

@mrnugget
Copy link
Copy Markdown
Contributor

@mrnugget mrnugget commented Jul 5, 2024

This fixes the issue of a tooltip covering the thing that the button has revealed.

It also mirrors what other UI frameworks do. Chrome on Linux behaves the same, and Safari does the same thing on macOS.

It fixes this:

Screenshot from 2024-07-05 12-39-22

Release Notes:

  • N/A

This fixes the issue of a tooltip covering the thing that the button has
revealed.

It also mirrors what other UI frameworks do. Chrome on Linux behaves the
same, and Safari does the same thing on macOS.
@cla-bot cla-bot bot added the cla-signed The user has signed the Contributor License Agreement label Jul 5, 2024
@mrnugget mrnugget merged commit f2711b2 into main Jul 5, 2024
@mrnugget mrnugget deleted the ui/no-tooltip-when-selected branch July 5, 2024 12:27
ConradIrwin pushed a commit that referenced this pull request Jul 19, 2024
…ected (#14832)

Release Notes:

- Fixed sometime tooltip will continuously display when the button is
selected.

---

@mrnugget The #13857 This change has led into a bug, the selected item
before tooltip will continuous display if there are no other tooltips.



https://github.com/user-attachments/assets/06b4a9a4-dede-4c18-b020-e20b6090341f
gcp-cherry-pick-bot bot pushed a commit that referenced this pull request Jul 19, 2024
…ected (#14832)

Release Notes:

- Fixed sometime tooltip will continuously display when the button is
selected.

---

@mrnugget The #13857 This change has led into a bug, the selected item
before tooltip will continuous display if there are no other tooltips.



https://github.com/user-attachments/assets/06b4a9a4-dede-4c18-b020-e20b6090341f
ConradIrwin pushed a commit that referenced this pull request Jul 19, 2024
…ected (cherry-pick #14832) (#14835)

Cherry-picked Fix tooltips sometimes continuously displaying when the
button is selected (#14832)

Release Notes:

- Fixed sometime tooltip will continuously display when the button is
selected.

---

@mrnugget The #13857 This change has led into a bug, the selected item
before tooltip will continuous display if there are no other tooltips.




https://github.com/user-attachments/assets/06b4a9a4-dede-4c18-b020-e20b6090341f

Co-authored-by: Jason Lee <huacnlee@gmail.com>
bennetbo added a commit that referenced this pull request Sep 27, 2024
Reverts #13857. Hiding tooltips for selected buttons prevents tooltips
like "Close x dock" from showing up, see #14938 for an example.
The intention of the original PR was to hide the "Show application menu"
tooltip, while the context menu is open.
In order to fix this without breaking other UI elements, we track the
state of the context menu using `PopoverMenuHandle` now, which allows us
to prevent the tooltip from showing up while the context menu is open.

Closes #14938

Release Notes:

- Fixed an issue where some tooltips would not show up
noaccOS pushed a commit to noaccOS/zed that referenced this pull request Oct 19, 2024
Reverts zed-industries#13857. Hiding tooltips for selected buttons prevents tooltips
like "Close x dock" from showing up, see zed-industries#14938 for an example.
The intention of the original PR was to hide the "Show application menu"
tooltip, while the context menu is open.
In order to fix this without breaking other UI elements, we track the
state of the context menu using `PopoverMenuHandle` now, which allows us
to prevent the tooltip from showing up while the context menu is open.

Closes zed-industries#14938

Release Notes:

- Fixed an issue where some tooltips would not show up
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cla-signed The user has signed the Contributor License Agreement

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant