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

[Tooltip] Update zindex and title display condition #631

Merged
merged 2 commits into from
May 29, 2024

Conversation

dragon-slayer875
Copy link
Contributor

@dragon-slayer875 dragon-slayer875 commented May 29, 2024

Notes for Reviewers

  • In meshery UI, ziCalc is used to give tooltips a zindex of ziCalc(5), so I instead migrated it here, thus eliminating the need for ziCalc in meshery and meshery cloud.
    Moreover, in meshmap many components are given a high zindex which results in the tooltip not displaying properly.
    In meshmap, no ziCalc value exceeds ziCalc(9) and thus I have set this value to remedy the problem there too.

  • The tooltip was also not rendering content which was not in string format making it hard to catch bugs and refactor.
    So I updated the condition for title usage.

Signed commits

  • Yes, I signed my commits.

@@ -39,11 +39,12 @@ function CustomTooltip({
},
popper: {
sx: {
zIndex: 9999999999,
Copy link
Contributor

Choose a reason for hiding this comment

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

@dragon-slayer875 why this large of zindex , make zIndex a prop .

@aabidsofi19 aabidsofi19 merged commit 44eb969 into layer5io:master May 29, 2024
8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants