Skip to content

Commit

Permalink
Update FluentUI (#6228)
Browse files Browse the repository at this point in the history
  • Loading branch information
JamesNK authored Nov 7, 2024
1 parent 7007cf6 commit e4ee02e
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 8 deletions.
4 changes: 2 additions & 2 deletions Directory.Packages.props
Original file line number Diff line number Diff line change
Expand Up @@ -117,8 +117,8 @@
<PackageVersion Include="KubernetesClient" Version="15.0.1" />
<PackageVersion Include="JsonPatch.Net" Version="3.1.1" />
<PackageVersion Include="Microsoft.Data.SqlClient" Version="5.2.2" />
<PackageVersion Include="Microsoft.FluentUI.AspNetCore.Components" Version="4.10.1" />
<PackageVersion Include="Microsoft.FluentUI.AspNetCore.Components.Icons" Version="4.10.1" />
<PackageVersion Include="Microsoft.FluentUI.AspNetCore.Components" Version="4.10.3" />
<PackageVersion Include="Microsoft.FluentUI.AspNetCore.Components.Icons" Version="4.10.3" />
<PackageVersion Include="Milvus.Client" Version="2.3.0-preview.1" />
<PackageVersion Include="MongoDB.Driver" Version="[2.30.0,3.0.0)" />
<PackageVersion Include="MongoDB.Driver.Core.Extensions.DiagnosticSources" Version="1.5.0" />
Expand Down
5 changes: 1 addition & 4 deletions src/Aspire.Dashboard/Components/Layout/MainLayout.razor
Original file line number Diff line number Diff line change
Expand Up @@ -72,10 +72,7 @@

<FluentDialogProvider/>
<FluentTooltipProvider />
@* Temporary work around for https://github.com/microsoft/fluentui-blazor/issues/2736 *@
<div style="position: fixed; bottom: 0; z-index: 9900;">
<FluentMenuProvider />
</div>
<FluentMenuProvider />
<div id="blazor-error-ui">
@Loc[nameof(Layout.MainLayoutUnhandledErrorMessage)]
<a href="" class="reload">@Loc[nameof(Layout.MainLayoutUnhandledErrorReload)]</a>
Expand Down
4 changes: 2 additions & 2 deletions src/Aspire.Dashboard/Components/Layout/MainLayout.razor.css
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@
grid-area: head;
}

::deep.layout > .nav-menu-container {
::deep.layout > .fluent-appbar {
grid-area: nav;
overflow-y: auto;
background: var(--neutral-layer-4);
Expand Down Expand Up @@ -165,7 +165,7 @@
grid-area: head;
}

::deep.layout > .nav-menu-container {
::deep.layout > .fluent-appbar {
grid-area: nav;
overflow-y: auto;
background: var(--neutral-layer-4);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -158,6 +158,11 @@ private IRenderedFragment SetUpDialog(out IDialogService dialogService, ThemeMan
builder.CloseComponent();
});

// Setting a provider ID on menu service is required to simulate <FluentMenuProvider> on the page.
// This makes FluentMenu render without error.
var menuService = Services.GetRequiredService<IMenuService>();
menuService.ProviderId = "Test";

dialogService = Services.GetRequiredService<IDialogService>();
return cut;
}
Expand Down

0 comments on commit e4ee02e

Please sign in to comment.