[dev-v5][Nav] Part 1 - Add the FluentNav components #4419
Merged
Conversation
Contributor
There was a problem hiding this comment.
Pull request overview
This pull request introduces a new FluentNav component family for navigation in the Fluent UI Blazor library. The implementation follows the Fluent Design System specification and provides a flexible, collapsible navigation menu with support for icons, categories, section headers, and programmatic control.
Key changes:
- Complete implementation of FluentNav, FluentNavItem, FluentNavCategory, FluentNavSectionHeader, and FluentNavDivider components
- Comprehensive test coverage with unit tests for all components
- TypeScript-based animations using Web Animations API for smooth expand/collapse transitions
Reviewed changes
Copilot reviewed 29 out of 29 changed files in this pull request and generated 18 comments.
Show a summary per file
| File | Description |
|---|---|
| src/Core/Components/Nav/FluentNav.razor(.cs/.css) | Main navigation container component with hamburger menu support |
| src/Core/Components/Nav/FluentNavItem.razor(.cs/.css) | Navigation item supporting both links and buttons with active state tracking |
| src/Core/Components/Nav/FluentNavCategory.razor(.cs/.css) | Collapsible category grouping for hierarchical navigation |
| src/Core/Components/Nav/FluentNavSectionHeader.razor(.cs/.css) | Section header for organizing navigation groups |
| src/Core/Components/Nav/FluentNavDivider.razor(.cs/.css) | Visual divider component for separating navigation sections |
| src/Core/Components/Nav/NavUtils.cs | Utility class for handling icon variants (active/inactive states) |
| src/Core/Components/Nav/FluentNav.razor.ts | TypeScript animations for expand/collapse with Fluent motion tokens |
| src/Core/Enums/NavDensity.cs | Enum defining navigation density options (Medium/Small) |
| src/Core/Components/Icons/CoreIcons.cs | Added ChevronUp and Folder icons to support navigation UI |
| src/Core/Localization/LanguageResource.resx | Added localized "Toggle navigation" string |
| tests/Core/Components/Nav/*.razor | Comprehensive unit tests covering all component scenarios |
| examples/Demo/.../Nav/FluentNav.md | Documentation explaining usage, features, and migration notes |
| examples/Demo/.../Nav/Examples/NavDefault.razor | Interactive demo showcasing all navigation features |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
examples/Demo/FluentUI.Demo.Client/Documentation/Components/Nav/Examples/NavDefault.razor
Outdated
Show resolved
Hide resolved
examples/Demo/FluentUI.Demo.Client/Documentation/Components/Nav/Examples/NavDefault.razor
Outdated
Show resolved
Hide resolved
|
✅ All tests passed successfully Details on your Workflow / Core Tests page. |
Summary - Unit Tests Code CoverageSummary
CoverageMicrosoft.FluentUI.AspNetCore.Components - 98.8%
|
dvoituron
requested changes
Dec 23, 2025
Collaborator
Collaborator
Author
dvoituron
requested changes
Dec 29, 2025
- Fix tests (because of switchiog to DisposeAsync)
MarvinKlein1508
suggested changes
Dec 30, 2025
examples/Demo/FluentUI.Demo.Client/Documentation/Components/Nav/FluentNav.md
Show resolved
Hide resolved
examples/Demo/FluentUI.Demo.Client/Documentation/Components/Nav/Examples/NavDefault.razor
Outdated
Show resolved
Hide resolved
…icrosoft/fluentui-blazor into users/vnbaaij/dev-v5/nav-part1
dvoituron
approved these changes
Dec 30, 2025
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Add the
FluentNavfamily of components including docs and tests (100% coverage). This is part 1 containing docs, components and tests. Next part will contain the changes to use this component in the demo site.This is an implementation of the Nav as described in the FluentDesign System (and implemented in React).
There is no upgrade/migration path vor the v4 FluentNavMenu and associated components as those offer multi level navigation. This implementation is simpler and only has one-level of nesting.
Unit tests Line coverage :

This pull request introduces a new
FluentNavnavigation component for Fluent UI, including its implementation, styling, documentation, and usage example. The component provides a flexible, collapsible navigation menu with support for icons, categories, section headers, and programmatic control. Additionally, new icon classes are added to the icon library to support navigation visuals.