Cant get the correct sidebar behaviour when using FluentNavGroup control #2035
Replies: 3 comments
-
The code of the site is part of the repo here. You can find it in the |
Beta Was this translation helpful? Give feedback.
-
Thanks, I will try to determine the difference between the example and the template that is provided, as I am using the out of the box template in vs2022. My initial attempts failed which is why I have raised this discussion. If I can see the difference, I will let you know, I raised the discussion in case anyone knew the difference, as it is a source of frustration right now. I expect it is something in the css for the media group type, but right now, I am not familiar with the css you are using. For example I took the FluentNavGroup code from the examples folder and put it in my proof of concept code (which just uses the default template you provided for vs2022), and it is not working for the mobile size, so it does not look like the problem is in the razor file. Both sets of code as using 'fluent-nav-item fluent-nav-group' classes, so I am puzzled why the behavior is different and incorrect for the mobile size variant in the fluentui template that you provide. I will keep trying to determine the cause of this difference. I also tried the example in the Collapsible navigation sub section of the navmenutree section and it is producing the same incorrect behavior when the webpage is shrunk to mobile size. |
Beta Was this translation helpful? Give feedback.
-
I failed to get this to work. I could not find the difference in the css. Will close. If anyone can get this to work, please update this issue. |
Beta Was this translation helpful? Give feedback.
-
I can not get the correct sidebar behavior (as compared to the main website) when using FluentNavGroup, when shrunk to mobile device size. (Note: On larger sizes, e.g. desktop sizes, it works correctly.)
I am using the fluentui template and adding the FluentNavGroup to it.
Basically what I get is when I press the group item (the one with the arrow), I see the following (which is correct).
However when I click the arrow, it does not show the sub items, instead it shows the page instead, and I have to click the hamburger menu again and sometimes the sub items are shown.
How did you get it working in the fluent website, where it works properly? Can you provide a simple example as I can not see anything wrong with my code. Thanks.
My code is:
Beta Was this translation helpful? Give feedback.
All reactions