Commit b8d8511
MudStaticNavGroup: Fix Visibility and Animation
* fix: resolve MudStaticNavGroup visibility and add smooth transitions
- Updated JavaScript initialization for NavGroups to correctly manage the 'invisible' class on expansion.
- Implemented smooth height transitions using scrollHeight for a native feel in Static SSR.
- Updated NavMenu unit tests to accommodate animation timing and class changes.
Co-authored-by: google-labs-jules[bot] <161369871+google-labs-jules[bot]@users.noreply.github.com>
* fix: resolve MudStaticNavGroup visibility, highlighting, and navigation issues
- Fixed visibility of NavGroup items by explicitly managing the 'invisible' class and 'display' style.
- Implemented smooth height transitions using scrollHeight for expansion and collapse.
- Added 'mud-nav-group-expanded' class to fix background highlighting when expanded.
- Introduced WeakSet-based element tracking in JS initializer to prevent double-binding and fix visibility issues after enhanced navigation.
- Updated unit tests to support animation timing and state changes.
Co-authored-by: google-labs-jules[bot] <161369871+google-labs-jules[bot]@users.noreply.github.com>
* fix: resolve MudStaticNavGroup visibility, animation, and highlighting issues
- Fixed visibility of NavGroup items by explicitly managing 'invisible' class and 'display' style.
- Implemented smooth height transitions using scrollHeight for expansion and collapse.
- Added robust timeout management to prevent race conditions during rapid clicks.
- Addressed persistent highlight issue by using 'button.blur()' and optimizing class usage.
- Introduced WeakSet-based element tracking in JS initializer to support enhanced navigation.
- Updated unit tests to support animation timing and state changes.
Co-authored-by: google-labs-jules[bot] <161369871+google-labs-jules[bot]@users.noreply.github.com>
* fix: resolve MudStaticNavGroup visibility, animation, and highlighting
- Fixed visibility of NavGroup items by managing 'invisible' class and 'display' style.
- Implemented smooth, reliable height transitions (250ms) using scrollHeight.
- Guaranteed smooth first-time expansion by forcing reflow from height 0px.
- Resolved persistent background highlight by using 'button.blur()' and avoiding 'mud-nav-group-expanded'.
- Added robust timeout management and WeakSet tracking to prevent state corruption and double-initialization.
- Updated unit tests to match new animation timings.
Co-authored-by: google-labs-jules[bot] <161369871+google-labs-jules[bot]@users.noreply.github.com>
* cleanup
---------
Co-authored-by: Anu6is <[email protected]>
Co-authored-by: google-labs-jules[bot] <161369871+google-labs-jules[bot]@users.noreply.github.com>1 parent dc26ec0 commit b8d8511
2 files changed
Lines changed: 81 additions & 15 deletions
File tree
- src/wwwroot
- tests/StaticInput.UnitTests/Components
Lines changed: 74 additions & 14 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
| 2 | + | |
| 3 | + | |
2 | 4 | | |
3 | 5 | | |
4 | 6 | | |
| |||
35 | 37 | | |
36 | 38 | | |
37 | 39 | | |
38 | | - | |
| 40 | + | |
39 | 41 | | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
40 | 45 | | |
41 | 46 | | |
42 | 47 | | |
| |||
103 | 108 | | |
104 | 109 | | |
105 | 110 | | |
106 | | - | |
| 111 | + | |
107 | 112 | | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
108 | 116 | | |
109 | 117 | | |
110 | 118 | | |
| |||
132 | 140 | | |
133 | 141 | | |
134 | 142 | | |
135 | | - | |
| 143 | + | |
136 | 144 | | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
137 | 148 | | |
138 | 149 | | |
139 | 150 | | |
| |||
180 | 191 | | |
181 | 192 | | |
182 | 193 | | |
183 | | - | |
| 194 | + | |
184 | 195 | | |
| 196 | + | |
| 197 | + | |
| 198 | + | |
185 | 199 | | |
186 | 200 | | |
187 | 201 | | |
| |||
223 | 237 | | |
224 | 238 | | |
225 | 239 | | |
226 | | - | |
| 240 | + | |
227 | 241 | | |
| 242 | + | |
| 243 | + | |
| 244 | + | |
228 | 245 | | |
229 | 246 | | |
230 | 247 | | |
| |||
500 | 517 | | |
501 | 518 | | |
502 | 519 | | |
503 | | - | |
| 520 | + | |
504 | 521 | | |
| 522 | + | |
| 523 | + | |
| 524 | + | |
505 | 525 | | |
506 | 526 | | |
507 | 527 | | |
| |||
510 | 530 | | |
511 | 531 | | |
512 | 532 | | |
| 533 | + | |
| 534 | + | |
| 535 | + | |
513 | 536 | | |
514 | | - | |
| 537 | + | |
| 538 | + | |
| 539 | + | |
| 540 | + | |
| 541 | + | |
| 542 | + | |
515 | 543 | | |
516 | | - | |
| 544 | + | |
| 545 | + | |
517 | 546 | | |
518 | | - | |
519 | | - | |
520 | | - | |
521 | | - | |
| 547 | + | |
| 548 | + | |
| 549 | + | |
| 550 | + | |
| 551 | + | |
| 552 | + | |
| 553 | + | |
| 554 | + | |
| 555 | + | |
| 556 | + | |
| 557 | + | |
| 558 | + | |
| 559 | + | |
| 560 | + | |
| 561 | + | |
| 562 | + | |
| 563 | + | |
| 564 | + | |
| 565 | + | |
| 566 | + | |
| 567 | + | |
| 568 | + | |
| 569 | + | |
| 570 | + | |
| 571 | + | |
| 572 | + | |
| 573 | + | |
| 574 | + | |
| 575 | + | |
| 576 | + | |
| 577 | + | |
| 578 | + | |
| 579 | + | |
| 580 | + | |
| 581 | + | |
522 | 582 | | |
523 | | - | |
524 | | - | |
| 583 | + | |
| 584 | + | |
525 | 585 | | |
526 | 586 | | |
527 | 587 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
27 | 27 | | |
28 | 28 | | |
29 | 29 | | |
| 30 | + | |
| 31 | + | |
30 | 32 | | |
31 | 33 | | |
32 | | - | |
| 34 | + | |
| 35 | + | |
33 | 36 | | |
34 | 37 | | |
35 | 38 | | |
36 | 39 | | |
37 | 40 | | |
| 41 | + | |
| 42 | + | |
38 | 43 | | |
39 | 44 | | |
40 | 45 | | |
| 46 | + | |
41 | 47 | | |
42 | 48 | | |
43 | 49 | | |
| |||
0 commit comments