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

fix: Problems in FluentMenu weren't correctly fixed #2788

Closed
JamesNK opened this issue Oct 10, 2024 · 8 comments
Closed

fix: Problems in FluentMenu weren't correctly fixed #2788

JamesNK opened this issue Oct 10, 2024 · 8 comments
Labels
status:in-progress Work is in progress
Milestone

Comments

@JamesNK
Copy link
Member

JamesNK commented Oct 10, 2024

🐛 Bug Report

I tried out 4.10.2 and the fixes in it don't work. This PR is wrong: #2744

It added display:fixed. It should be position:fixed.

Also, a PR added a z-index to fix content not being hidden: #2772. However, it is incomplete.

It added the z-index to FluentMenuProvider but it didn't add it to FluentTooltipProvider which was supposed to get position: fixed in #2744

💻 Repro or Code Sample

🤔 Expected Behavior

I suggest creating a page to test the various scenarios. Changes appear to be made without testing.

The page would have a way to test menus and tooltips don't add scroll bars. Menus and tooltips appear above other content, etc.

😯 Current Behavior

Current output:

Image

💁 Possible Solution

🔦 Context

🌍 Your Environment

  • OS & Device: [e.g. MacOS, iOS, Windows, Linux] on [iPhone 7, PC]
  • Browser [e.g. Microsoft Edge, Google Chrome, Apple Safari, Mozilla FireFox]
  • .NET and Fluent UI Blazor library Version [e.g. 8.0.2 and 4.4.1]
@microsoft-github-policy-service microsoft-github-policy-service bot added the triage New issue. Needs to be looked at label Oct 10, 2024
@vnbaaij
Copy link
Collaborator

vnbaaij commented Oct 10, 2024

Hmm. I think I mixed some stuff up there. Sorry about that. I'll see if we can get a fix to fix that out asap.

@vnbaaij vnbaaij added status:in-progress Work is in progress and removed triage New issue. Needs to be looked at labels Oct 10, 2024
@vnbaaij vnbaaij added this to the v4.10.3 milestone Oct 10, 2024
@ksbecker
Copy link
Contributor

ksbecker commented Oct 10, 2024

I'm curious, would this impact the FluentMenuButton control? After upgrading to v4.10.1 it stopped working on my site and v4.10.2 didn't fix it either. I created a new project, copied the example site code to the home page and it's not working. I also downloaded the VS 2022 preview and latest 9.0rc to see if that fixes it, but no such luck.

https://github.com/ksbecker/FluentUIMenuButtonBug

If I roll back to v4.9.3 it works.

@JamesNK
Copy link
Member Author

JamesNK commented Oct 11, 2024

You probably need to add FluentMenuProvider. IMO it shouldn't silently fail if a provider is missing. It should either display menu without using the provider, or throw an error and say that the provider is missing.

@ksbecker
Copy link
Contributor

I think I tried that, but I’ll try it again when I get into the office tomorrow. I was able to roll back to v4.9.3 for now. If that is the case, maybe I’ll update the documentation with a PR.

I just noticed your name, @JamesNK. Thanks for your many years of contribution to .NET development.

@vnbaaij
Copy link
Collaborator

vnbaaij commented Oct 11, 2024

I'm curious, would this impact the FluentMenuButton control? After upgrading to v4.10.1 it stopped working on my site and v4.10.2 didn't fix it either. I created a new project, copied the example site code to the home page and it's not working. I also downloaded the VS 2022 preview and latest 9.0rc to see if that fixes it, but no such luck.

https://github.com/ksbecker/FluentUIMenuButtonBug

If I roll back to v4.9.3 it works.

It is probably related indeed. Will try to take a look at your repro steps later today.

Just checked. You are just missing the MenuProvider. After adding it (in MainLayout.razor):

Image

@vnbaaij
Copy link
Collaborator

vnbaaij commented Oct 11, 2024

I think I tried that, but I’ll try it again when I get into the office tomorrow. I was able to roll back to v4.9.3 for now. If that is the case, maybe I’ll update the documentation with a PR.

I just noticed your name, @JamesNK. Thanks for your many years of contribution to .NET development.

#2792

@dvoituron
Copy link
Collaborator

You probably need to add FluentMenuProvider. IMO it shouldn't silently fail if a provider is missing. It should either display menu without using the provider, or throw an error and say that the provider is missing.

You're right... I've added a test to check the presence of this provider: #2793

@ksbecker
Copy link
Contributor

Confirmed in my project, adding FluentMenuProvider works for me with v4.10.2.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
status:in-progress Work is in progress
Projects
None yet
Development

No branches or pull requests

4 participants