Repository navigation
Update Fluent UI to fix tall dashboard submenu overflow - #20197
Conversation
|
🚀 Dogfood this PR with:
curl -fsSL https://raw.githubusercontent.com/microsoft/aspire/main/eng/scripts/get-aspire-cli-pr.sh | bash -s -- 20197Or
iex "& { $(irm https://raw.githubusercontent.com/microsoft/aspire/main/eng/scripts/get-aspire-cli-pr.ps1) } 20197" |
This comment has been minimized.
This comment has been minimized.
There was a problem hiding this comment.
🔵 Needs a closer look
Add the requested regression coverage and retain the upstream tracking link.
Pull request overview
Adds CSS fallbacks to keep tall dashboard submenus within the viewport.
Changes:
- Preserves preferred placements with viewport-constrained fallbacks.
- Adds block/inline flip variants and height limits.
File summaries
| File | Summary |
|---|---|
src/Aspire.Dashboard/wwwroot/css/controls.css |
Adds submenu positioning fallbacks. Moderate comment (1 vote): add focused browser regression coverage. Nit (1 vote): retain the Fluent UI issue #5288 tracking link. |
Review details
Suppressed comments (2)
src/Aspire.Dashboard/wwwroot/css/controls.css:674
- This changes whether the nested
Commandsmenu is reachable, but the existing Playwright coverage only opens and measures a top-level menu (AspireMenuLayoutTestslines 63-105); it would still pass if this fallback were removed. Please keep a focused browser regression case for a tall nested submenu near the lower/right edges that verifies viewport bounds and keyboard selection of the last item.
position-try-fallbacks: flip-inline, flip-block, flip-block flip-inline, --aspire-submenu-viewport, --aspire-submenu-viewport flip-inline;
src/Aspire.Dashboard/wwwroot/css/controls.css:666
- This comment should retain the upstream tracking link because this rule is an application workaround for Fluent UI issue #5288, not just a CSS technique. Without the issue and removal condition here, future maintainers cannot tell when this override is safe to remove.
/* A submenu can be taller than the space both above and below its anchor. Keep Fluent's
preferred placements, then constrain the popup to the viewport if neither fits.
https://developer.mozilla.org/docs/Web/CSS/@position-try */
- Files reviewed: 1/1 changed files
- Comments generated: 0
- Review effort level: Lite (auto)
Note
Copilot is running an experiment and ran this review at Lite.
💡 Add a code-review agent skill for context-aware, tailored reviews. Learn more in the docs.
|
Retrying the failed CI jobs for this pull request from the CI run attempt. The rerun is being tracked in the rerun attempt. |
This comment has been minimized.
This comment has been minimized.
There was a problem hiding this comment.
🟡 Changes recommended
Add focused Playwright coverage to prevent the submenu overflow regression from returning.
Get a fresh assessment by requesting another Copilot review.
Review details
- Files reviewed: 1/1 changed files
- Comments generated: 1
- Review effort level: Lite (auto)
Note
Copilot is running an experiment and ran this review at Lite.
|
Retrying the failed CI jobs for this pull request from the CI run attempt. The rerun is being tracked in the rerun attempt. |
|
Retrying the failed CI jobs for this pull request from the CI run attempt. The rerun is being tracked in the rerun attempt. |
|
Retrying the failed CI jobs for this pull request from the CI run attempt. The rerun is being tracked in the rerun attempt. |
997c64b to
765c2fe
Compare
Tests selectorSelects the full PR test matrix + all PR-gated jobs (ALL) — a rule matching 'Directory.Packages.props' selects ALL Selection computed for commit |
|
Retrying the failed CI jobs for this pull request from the CI run attempt. The rerun is being tracked in the rerun attempt. |
|
✅ No documentation update needed. Step 5 branch taken: Triggered signals (2):
Why there is nothing to document: The only file changed is Conclusion: Both triggered signals are false positives against generic PR-body boilerplate (a checklist checkbox and a QA-repro heading), and inspection of the actual diff (a single dependency version line) confirms there is no concrete documentation edit to make. No docs PR is warranted. |
Description
Update
Microsoft.FluentUI.AspNetCore.Componentsfrom5.0.0-preview.26259.4to5.0.0-preview.26260.3.This build contains the upstream fix for microsoft/fluentui-blazor#5288, which keeps tall nested menus within the viewport. The dashboard-specific CSS workaround previously added on this branch is removed, so the final PR diff is only the Fluent UI version update.
User-facing usage
In the Stress playground's Resources page, open Actions > Commands for
interaction-commandsunderstress-telemetryservicewith its row in the middle or lower portion of the window. The long submenu stays within the viewport instead of opening off-screen.Validation
restore.cmdcompleted successfully with the updated package.stress-telemetryserviceto become healthy.962 x 788viewport to open the 23-item Actions > Commands submenu. Its bounds wereleft=446.7, top=4, right=746.7, bottom=655.6, leaving every edge inside the viewport, and the final Upload certificates item was visible.git diff --checkpassed.Checklist
<remarks />and<code />elements on your triple slash comments?