File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 2020 <FluentNavLink Icon =" @(new Icons.Regular.Size24.LeafOne())" Tooltip =" Item 5.1 tooltip" >Item 5.1</FluentNavLink >
2121 </FluentNavGroup >
2222 <FluentNavLink Icon =" @(new Icons.Regular.Size24.CalendarAgenda())" Disabled =" true" Href =" https://microsoft.com" Tooltip =" Item 6 tooltip" >Item 6</FluentNavLink >
23+ <FluentNavGroup Title =" Item 7" Tooltip =" Item 7 tooltip" Disabled =" true" >
24+ <FluentNavLink Icon =" @(new Icons.Regular.Size24.LeafOne())" Tooltip =" Item 7.1 tooltip" >Item 7.1</FluentNavLink >
25+ </FluentNavGroup >
2326 </FluentNavMenu >
2427 </div >
2528 <div style =" width : 100% ;" >
Original file line number Diff line number Diff line change @@ -104,6 +104,10 @@ public FluentNavGroup()
104104
105105 private async Task ToggleExpandedAsync ( )
106106 {
107+ if ( Disabled )
108+ {
109+ return ;
110+ }
107111
108112 if ( ! Owner . Expanded && Owner . CollapsedChildNavigation )
109113 {
Original file line number Diff line number Diff line change 1414 min-width : 20px ;
1515}
1616
17- ::deep .fluent-nav-group .disabled {
18- color : var (--neutral-fill-secondary-rest ) !important ;
19- pointer-events : none;
20- }
21-
22- ::deep .fluent-nav-group .disabled .fluent-nav-icon {
23- fill : var (--neutral-stroke-rest ) !important ;
24- }
25-
26-
2717/* Group expand/collapse */
2818::deep .expand-collapse-button {
2919 position : absolute;
Original file line number Diff line number Diff line change 11/* NavMenu */
22.fluent-nav-menu {
33 padding : 0 2px ;
4-
54}
65
76::deep .fluent-nav-item .expander : focus-within {
1514}
1615
1716 /* Hover and active highlighting */
18- ::deep .fluent-nav-item .positioning-region : hover : not (: has (.disabled )) {
17+ ::deep .fluent-nav-item : not (. disabled ) .positioning-region : hover : not (: has (.disabled )) {
1918 cursor : pointer;
2019 background : var (--neutral-fill-secondary-rest );
2120 }
2221
23- /* Active item indicator */
24- ::deep .fluent-nav-item .active .positioning-region ::before {
25- content : "" ;
26- display : block;
27- position : absolute;
28- right : unset;
29- width : 3px ;
30- height : calc (((var (--base-height-multiplier ) + var (--density )) * var (--design-unit ) / 2 ) * 1px );
31- background : var (--accent-fill-rest );
32- border-radius : calc (var (--control-corner-radius ) * 1px );
33- margin : calc (var (--design-unit ) * 2px ) 2px ;
34- z-index : 5 ;
35- }
22+ /* Active item indicator */
23+ ::deep .fluent-nav-item .active .positioning-region ::before {
24+ content : "" ;
25+ display : block;
26+ position : absolute;
27+ right : unset;
28+ width : 3px ;
29+ height : calc (((var (--base-height-multiplier ) + var (--density )) * var (--design-unit ) / 2 ) * 1px );
30+ background : var (--accent-fill-rest );
31+ border-radius : calc (var (--control-corner-radius ) * 1px );
32+ margin : calc (var (--design-unit ) * 2px ) 2px ;
33+ z-index : 5 ;
34+ }
35+
36+ ::deep .fluent-nav-group .disabled {
37+ color : var (--neutral-fill-secondary-rest ) !important ;
38+ pointer-events : none;
39+ }
40+
41+ ::deep .fluent-nav-group .disabled .fluent-nav-icon {
42+ fill : var (--neutral-stroke-rest ) !important ;
43+ }
3644
3745[dir = 'rtl' ] * ::deep .fluent-nav-item a .active .positioning-region ::before {
3846 left : unset;
You can’t perform that action at this time.
0 commit comments