Skip to content

[NavGroup] Fix disabled state for top-level FluentNavGroup - #4647

Merged
vnbaaij merged 1 commit into
microsoft:devfrom
MarvinKlein1508:menu-fix
Mar 27, 2026
Merged

[NavGroup] Fix disabled state for top-level FluentNavGroup#4647
vnbaaij merged 1 commit into
microsoft:devfrom
MarvinKlein1508:menu-fix

Conversation

@MarvinKlein1508

Copy link
Copy Markdown
Collaborator

Pull Request

📖 Description

This PR fixes the disabled state for top-level FluentNavGroup elements. When you had a FluentNavGroup with Disabled="true" on the top level of FluentNavMenu then it was still possible to open it.

Before:

before

After:

after

🎫 Issues

Fixes #4645

👩‍💻 Reviewer Notes

📑 Test Plan

✅ Checklist

General

  • I have added tests for my changes.
  • I have tested my changes.
  • I have updated the project documentation to reflect my changes.
  • I have read the CONTRIBUTING documentation and followed the standards for this project.

Component-specific

  • I have added a new component
  • I have added Unit Tests for my new component
  • I have modified an existing component
  • I have validated the Unit Tests for an existing component

⏭ Next Steps

@vnbaaij
vnbaaij merged commit 84f3b9c into microsoft:dev Mar 27, 2026
2 checks passed
@dvoituron

Copy link
Copy Markdown
Collaborator

Why the design is not the same between the two "disabled"?
{940F66DE-8525-4E40-822A-B26A06793735}

@MarvinKlein1508

Copy link
Copy Markdown
Collaborator Author

@dvoituron this is either another bug or on purpose. it's using different colors for FluentNavGroup and FluentNavItem. Was like this before my PR as well:

grafik

@MarvinKlein1508
MarvinKlein1508 deleted the menu-fix branch March 27, 2026 12:54
@MarvinKlein1508

Copy link
Copy Markdown
Collaborator Author

@dvoituron @vnbaaij By default disabled items do not change color. Instead there is an opacity applied.

We can change this behaviour for the NavGroup with this CSS as well

::deep .fluent-nav-group.disabled {
    pointer-events: none;
}

    ::deep .fluent-nav-group.disabled .fluent-nav-icon {
        fill: var(--neutral-stroke-rest) !important;
    }

    ::deep .fluent-nav-group.disabled .fluent-nav-text {
        opacity: var(--disabled-opacity);
    }

Result:

grafik

Let me know what you think and I'll create a second PR for this change :)

@dvoituron

Copy link
Copy Markdown
Collaborator

I find that better, to have the same color.

@vnbaaij

vnbaaij commented Mar 27, 2026

Copy link
Copy Markdown
Collaborator

Yup, much better. Bring on the PR!

This was referenced Apr 22, 2026
dkurepa added a commit to dotnet/arcade-services that referenced this pull request Jul 15, 2026
…AspNetCore.Components.Icons (#6497)

Updated
[Microsoft.FluentUI.AspNetCore.Components](https://github.com/microsoft/fluentui-blazor)
from 4.14.0 to 4.14.2.

<details>
<summary>Release notes</summary>

_Sourced from [Microsoft.FluentUI.AspNetCore.Components's
releases](https://github.com/microsoft/fluentui-blazor/releases)._

## 4.14.2

## What's Changed
* [Select] Fix selected items color by @​MarvinKlein1508 in
microsoft/fluentui-blazor#4760
* [DesignTheme] Tolerate blocked localStorage during startup by
@​Copilot in microsoft/fluentui-blazor#4857
* [Chore] Prep for release and update icons by @​vnbaaij in
microsoft/fluentui-blazor#4869


**Full Changelog**:
microsoft/fluentui-blazor@v4.14.1...v4.14.2

## 4.14.1

## What's Changed
* Merge changes from Main by @​vnbaaij in
microsoft/fluentui-blazor#4516
* [AppBar] Make OnClick close popover by @​vnbaaij in
microsoft/fluentui-blazor#4518
* [Docs] Update keycode docs to reflect latest interface by
@​MarvinKlein1508 in
microsoft/fluentui-blazor#4522
* Fix index.ts section causing "Illegal constructor" on older iOS
devices by @​GusPietrasanta-Polygon in
microsoft/fluentui-blazor#4531
* [Docs] Add note about render mode and required interactivity by
@​MarvinKlein1508 in
microsoft/fluentui-blazor#4540
* [Tabs] Call HandleOnTabChange when changing to a tab through the menu
by @​vnbaaij in microsoft/fluentui-blazor#4564
* [Popover] Allow tabbing inside open anchored regions, support keyboard
accessible navigation for popover by @​adamint in
microsoft/fluentui-blazor#4561
* [DataGrid] Add OnSortChanged event callback by @​vnbaaij in
microsoft/fluentui-blazor#4573
* [Templates] Fix 404 in WebAssembly temp by @​vnbaaij in
microsoft/fluentui-blazor#4578
* Bump minimatch from 3.1.2 to 3.1.5 in /src/Core.Assets by
@​dependabot[bot] in
microsoft/fluentui-blazor#4586
* fix: rename `dateselected` custom event to `fluentdateselected` to
resolve .NET 11 exception by @​Copilot in
microsoft/fluentui-blazor#4605
* fix: rename custom events matching browserEventName to use fluent
prefix by @​Copilot in
microsoft/fluentui-blazor#4609
* [General] Add accent-color in reboot.css by @​wherewhere in
microsoft/fluentui-blazor#4614
* [Dialog] Update docs by @​vnbaaij in
microsoft/fluentui-blazor#4625
* [DataGrid] Fix SelectedItems getting unselected when using pagination
(and virtualization) by @​vnbaaij in
microsoft/fluentui-blazor#4623
* Bump flatted from 3.3.1 to 3.4.2 in /src/Core.Assets by
@​dependabot[bot] in
microsoft/fluentui-blazor#4638
* [Docs] Fix incorrect Icon in search after Navigation by @​sebbogle in
microsoft/fluentui-blazor#4641
* [SplashScreen] Mark sync methods as Obsolete by @​MarvinKlein1508 in
microsoft/fluentui-blazor#4644
* Bump picomatch from 2.3.1 to 2.3.2 in /src/Core.Assets by
@​dependabot[bot] in
microsoft/fluentui-blazor#4646
* [NavGroup] Fix disabled state for top-level `FluentNavGroup` by
@​MarvinKlein1508 in
microsoft/fluentui-blazor#4647
* [NavGroup] Apply font opacity instead of color by @​MarvinKlein1508 in
microsoft/fluentui-blazor#4648
* Rollup PRs #​4677 and and #​4678 by @​vnbaaij in
microsoft/fluentui-blazor#4680

## New Contributors
* @​GusPietrasanta-Polygon made their first contribution in
microsoft/fluentui-blazor#4531
* @​sebbogle made their first contribution in
microsoft/fluentui-blazor#4641

**Full Changelog**:
microsoft/fluentui-blazor@v4.14.0...v4.14.1

Commits viewable in [compare
view](microsoft/fluentui-blazor@v4.14.0...v4.14.2).
</details>

Updated
[Microsoft.FluentUI.AspNetCore.Components.Icons](https://github.com/microsoft/fluentui-blazor)
from 4.14.2 to 4.14.3.

<details>
<summary>Release notes</summary>

_Sourced from [Microsoft.FluentUI.AspNetCore.Components.Icons's
releases](https://github.com/microsoft/fluentui-blazor/releases)._

## 4.14.3

## What's Changed
* [Chore] Publish symbols from CI builds to internal symbol server by
@​tlmii in microsoft/fluentui-blazor#4910
* [Chore] Update dependencies in package.json by @​dvoituron in
microsoft/fluentui-blazor#4946
* [Docs] Update link to v5 docs by @​MarvinKlein1508 in
microsoft/fluentui-blazor#4927
* Update icons and prep for release by @​vnbaaij in
microsoft/fluentui-blazor#4958


**Full Changelog**:
microsoft/fluentui-blazor@v4.14.2...v4.14.3

Commits viewable in [compare
view](microsoft/fluentui-blazor@v4.14.2...v4.14.3).
</details>

Dependabot will resolve any conflicts with this PR as long as you don't
alter it yourself. You can also trigger a rebase manually by commenting
`@dependabot rebase`.

[//]: # (dependabot-automerge-start)
[//]: # (dependabot-automerge-end)

---

<details>
<summary>Dependabot commands and options</summary>
<br />

You can trigger Dependabot actions by commenting on this PR:
- `@dependabot rebase` will rebase this PR
- `@dependabot recreate` will recreate this PR, overwriting any edits
that have been made to it
- `@dependabot show <dependency name> ignore conditions` will show all
of the ignore conditions of the specified dependency
- `@dependabot ignore this major version` will close this PR and stop
Dependabot creating any more for this major version (unless you reopen
the PR or upgrade to it yourself)
- `@dependabot ignore this minor version` will close this PR and stop
Dependabot creating any more for this minor version (unless you reopen
the PR or upgrade to it yourself)
- `@dependabot ignore this dependency` will close this PR and stop
Dependabot creating any more for this dependency (unless you reopen the
PR or upgrade to it yourself)


</details>

---------

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Djuradj Kurepa <dkurepa@microsoft.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

FluentNavGroup Disabled property has no effect on top-level groups

3 participants