From 1a74d00f025803e14375c538e03d0907d120dbcb Mon Sep 17 00:00:00 2001 From: Vincent Baaij Date: Fri, 11 Oct 2024 09:47:05 +0200 Subject: [PATCH] Make MenuProvider message more prominent and also add it to the MenuButton page --- examples/Demo/Shared/Pages/Menu/MenuPage.razor | 13 ++++++------- .../Shared/Pages/MenuButton/MenuButtonPage.razor | 11 +++++++++++ 2 files changed, 17 insertions(+), 7 deletions(-) diff --git a/examples/Demo/Shared/Pages/Menu/MenuPage.razor b/examples/Demo/Shared/Pages/Menu/MenuPage.razor index d21e7bab8b..ba0cffdbfe 100644 --- a/examples/Demo/Shared/Pages/Menu/MenuPage.razor +++ b/examples/Demo/Shared/Pages/Menu/MenuPage.razor @@ -35,16 +35,15 @@ Fluent UI design system.

-
-
FluentMenuProvider
+
+
FluentMenuProvider

- With version 4.9.4 of the library, we introduced a FluentMenuProvider. The FluentMenu component has been updated to use this provider. - The <FluentMenuProvider /> is a new component to be placed at the bottom of your HTML page (like the other Providers), - which renders all menus (and menu items) at the provider location in the HTML structure. This allows for menus to appear on top other components. + With version 4.9.4 of the library, we introduced the FluentMenuProvider component. The Menu component has been updated to use this provider. + The <FluentMenuProvider /> needs to be placed at the bottom of your HTML page (just like the other ...Providers components). + It will renders all menus (and menu items) at the provider location in the HTML structure. This allows for menus to appear on top other components.

- You can disable this feature by adding the UseMenuService="false" attribute. - In this case, the menu is drawn at the location of your HTML code. + You can disable this feature by adding the UseMenuService parameter (with a value of "false") to you FluentMenu component. In this case, the menu will be rendered at the location it is placed at in the page.

diff --git a/examples/Demo/Shared/Pages/MenuButton/MenuButtonPage.razor b/examples/Demo/Shared/Pages/MenuButton/MenuButtonPage.razor index fc9954c9d0..6e6dbe2e47 100644 --- a/examples/Demo/Shared/Pages/MenuButton/MenuButtonPage.razor +++ b/examples/Demo/Shared/Pages/MenuButton/MenuButtonPage.razor @@ -10,6 +10,17 @@ an Items parameter as well as manually as the ChildContent (at the same time).

+
+
FluentMenuProvider
+

+ With version 4.9.4 of the library, we introduced the FluentMenuProvider component. The MenuButton component has been updated to use this provider. + The <FluentMenuProvider /> needs to be placed at the bottom of your HTML page (just like the other ...Providers components). + It will renders all menus (and menu items) at the provider location in the HTML structure. This allows for menus to appear on top other components. +

+ +
+ +

Example