diff --git a/CHANGELOG.md b/CHANGELOG.md index 36c787c0..434ce4ec 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,6 @@ +## NEXT +* fix: Resolved issue where `PaneItem` within `PaneItemExpander` remained accessible in `NavigationPane` compact mode ([#1081](https://github.com/bdlukaa/fluent_ui/issues/1081)) + ## 4.9.0 * fix: ¹ `DropDownButton.closeAfterClick` is now correctly applied. ² Added `MenuFlyoutItem.closeAfterClick`, which defaults to `true`. ([#1016](https://github.com/bdlukaa/fluent_ui/issues/1016)) diff --git a/lib/src/controls/navigation/navigation_view/pane_items.dart b/lib/src/controls/navigation/navigation_view/pane_items.dart index 7adb3472..b8fea2af 100644 --- a/lib/src/controls/navigation/navigation_view/pane_items.dart +++ b/lib/src/controls/navigation/navigation_view/pane_items.dart @@ -937,9 +937,9 @@ class _PaneItemExpanderMenuItem extends MenuFlyoutItemBase { forceEnabled: item.enabled, builder: (context, states) { final textStyle = (isSelected - ? navigationTheme.selectedTextStyle?.resolve(states) - : navigationTheme.unselectedTextStyle?.resolve(states)) - ?? const TextStyle(); + ? navigationTheme.selectedTextStyle?.resolve(states) + : navigationTheme.unselectedTextStyle?.resolve(states)) ?? + const TextStyle(); final iconTheme = IconThemeData( color: textStyle.color ?? (isSelected