Skip to content
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

GrafanaUI: Support Tooltip as Dropdown child #68521

Merged
merged 1 commit into from
May 16, 2023

Conversation

joshhunt
Copy link
Contributor

What is this feature?

Support using Dropdown with a child button with a tooltip like

<Dropdown overlay={menu}>
  <Button tooltip="Menu">Open me</Button>
</Dropdown>

Why do we need this feature?

Especially so IconButton can be used better as a Dropdown trigger

Who is this feature for?

UI and Plugin developers :)

Which issue(s) does this PR fix?:

Fixes #65632

Special notes for your reviewer:

Have a nice day :)

@joshhunt joshhunt added this to the 10.0.x milestone May 16, 2023
@joshhunt joshhunt requested a review from polibb May 16, 2023 09:37
@joshhunt joshhunt requested a review from a team as a code owner May 16, 2023 09:37
@joshhunt joshhunt requested review from ashharrison90 and L-M-K-B and removed request for a team May 16, 2023 09:37
Copy link
Contributor

@ashharrison90 ashharrison90 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

good mob 🔱

@joshhunt joshhunt merged commit 7b3221d into main May 16, 2023
16 checks passed
@joshhunt joshhunt deleted the joshhunt/mob-dropdown-with-tooltips branch May 16, 2023 10:15
@grafanabot
Copy link
Contributor

The backport to v10.0.x failed:

The process '/usr/bin/git' failed with exit code 1

To backport manually, run these commands in your terminal:

# Fetch latest updates from GitHub
git fetch
# Create a new branch
git switch --create backport-68521-to-v10.0.x origin/v10.0.x
# Cherry-pick the merged commit of this pull request and resolve the conflicts
git cherry-pick -x 7b3221d494bd6aea82cda5ccef2bec4d42fa19b1
# Push it to GitHub
git push --set-upstream origin backport-68521-to-v10.0.x
git switch main
# Remove the local backport branch
git branch -D backport-68521-to-v10.0.x

Then, create a pull request where the base branch is v10.0.x and the compare/head branch is backport-68521-to-v10.0.x.

@grafanabot grafanabot added the backport-failed Failed to generate backport PR. Please resolve conflicts and create one manually. label May 16, 2023
ryantxu pushed a commit that referenced this pull request May 16, 2023
Co-authored-by: eledobleefe <laura.fernandez@grafana.com>
Co-authored-by: Ashley Harrison <ashley.harrison@grafana.com>
Co-authored-by: L-M-K-B <48948963+L-M-K-B@users.noreply.github.com
joshhunt added a commit that referenced this pull request May 17, 2023
Co-authored-by: eledobleefe <laura.fernandez@grafana.com>
Co-authored-by: Ashley Harrison <ashley.harrison@grafana.com>
Co-authored-by: L-M-K-B <48948963+L-M-K-B@users.noreply.github.com
(cherry picked from commit 7b3221d)
joshhunt added a commit that referenced this pull request May 17, 2023
GrafanaUI: Support Tooltip as Dropdown child (#68521)

Co-authored-by: eledobleefe <laura.fernandez@grafana.com>
Co-authored-by: Ashley Harrison <ashley.harrison@grafana.com>
Co-authored-by: L-M-K-B <48948963+L-M-K-B@users.noreply.github.com
(cherry picked from commit 7b3221d)
@zerok zerok modified the milestones: 10.0.x, 10.0.0-preview, 10.1.x May 31, 2023
@ricky-undeadcoders ricky-undeadcoders modified the milestones: 10.1.x, 10.1.0 Aug 1, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
add to changelog area/frontend backport v10.0.x backport-failed Failed to generate backport PR. Please resolve conflicts and create one manually. mob session Something solved during a mob session type/bug
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Grafana UI: Nested usage of react-popper-tooltip's setTriggerRef causes the inner tooltips to not show
5 participants