Skip to content

Update Fluent UI to fix tall dashboard submenu overflow - #20197

Merged
James Newton-King (JamesNK) merged 2 commits into
mainfrom
jamesnk/fix-submenu-viewport
Sep 18, 2026
Merged

James Newton-King (JamesNK) merged 2 commits into
mainfrom
jamesnk/fix-submenu-viewport

Conversation

@JamesNK

@JamesNK James Newton-King (JamesNK) commented Sep 17, 2026 •

Copy link
Copy Markdown
Member

Description

Update Microsoft.FluentUI.AspNetCore.Components from 5.0.0-preview.26259.4 to 5.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-commands under stress-telemetryservice with 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.cmd completed successfully with the updated package.
  • Started the Stress AppHost in isolated mode and waited for stress-telemetryservice to become healthy.
  • Used Playwright at a 962 x 788 viewport to open the 23-item Actions > Commands submenu. Its bounds were left=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 --check passed.

Checklist

  • Is this feature complete?
    • Yes. Ready to ship.
    • No. Follow-up changes expected.
  • Are you including unit tests for the changes and scenario tests if relevant?
    • Yes
    • No
  • Did you add public API?
    • Yes
      • If yes, did you have an API Review for it?
        • Yes
        • No
      • Did you add <remarks /> and <code /> elements on your triple slash comments?
        • Yes
        • No
    • No
  • Does the change make any security assumptions or guarantees?
    • Yes
      • If yes, have you done a threat model and had a security review?
        • Yes
        • No
    • No

@github-actions

Copy link
Copy Markdown
Contributor

🚀 Dogfood this PR with:

⚠️ WARNING: Do not do this without first carefully reviewing the code of this PR to satisfy yourself it is safe.

curl -fsSL https://raw.githubusercontent.com/microsoft/aspire/main/eng/scripts/get-aspire-cli-pr.sh | bash -s -- 20197

Or

  • Run remotely in PowerShell:
iex "& { $(irm https://raw.githubusercontent.com/microsoft/aspire/main/eng/scripts/get-aspire-cli-pr.ps1) } 20197"

@aspire-repo-bot
aspire-repo-bot Bot requested a balanced review from Copilot September 17, 2026 02:50
@github-actions

This comment has been minimized.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🔵 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 Commands menu is reachable, but the existing Playwright coverage only opens and measures a top-level menu (AspireMenuLayoutTests lines 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.

@github-actions

Copy link
Copy Markdown
Contributor

Retrying the failed CI jobs for this pull request from the CI run attempt. The rerun is being tracked in the rerun attempt.

@github-actions

This comment has been minimized.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 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.

Comment thread Directory.Packages.props Resolved
@github-actions

Copy link
Copy Markdown
Contributor

Retrying the failed CI jobs for this pull request from the CI run attempt. The rerun is being tracked in the rerun attempt.

@github-actions

Copy link
Copy Markdown
Contributor

Retrying the failed CI jobs for this pull request from the CI run attempt. The rerun is being tracked in the rerun attempt.

@github-actions

Copy link
Copy Markdown
Contributor

Retrying the failed CI jobs for this pull request from the CI run attempt. The rerun is being tracked in the rerun attempt.

@github-actions

Copy link
Copy Markdown
Contributor

Tests selector

Selects the full PR test matrix + all PR-gated jobs (ALL) — a rule matching 'Directory.Packages.props' selects ALL


Selection computed for commit 765c2fe.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟢 Approval recommended

The upstream fix and package consumption were verified, with appropriate manual validation for the visual behavior.

Review details
  • Files reviewed: 1/1 changed files
  • Comments generated: 0 new
  • Review effort level: Balanced

@github-actions

Copy link
Copy Markdown
Contributor

Retrying the failed CI jobs for this pull request from the CI run attempt. The rerun is being tracked in the rerun attempt.

@JamesNK
James Newton-King (JamesNK) merged commit 2695118 into main Sep 18, 2026
812 of 816 checks passed
@JamesNK
James Newton-King (JamesNK) deleted the jamesnk/fix-submenu-viewport branch September 18, 2026 07:16
@github-actions github-actions Bot added this to the 13.6 milestone Sep 18, 2026
@aspire-repo-bot

Copy link
Copy Markdown
Contributor

✅ No documentation update needed.

Step 5 branch taken: docs_required → false positive (no genuine documentation gap)

Triggered signals (2):

  • pr_body_has_cli_flag_mention — matched on PR-body checklist checkbox syntax (- [x]), not an actual --flag mention. Hint: "isible. - \git diff --check` passed. ## Checklist - Is this feature complete? - [x]"`.
  • pr_body_has_user_facing_section — matched the ### User-facing usage heading, but the content underneath is a manual QA/reproduction recipe for the reviewer (open Actions > Commands on interaction-commands at a specific viewport size to confirm the submenu no longer opens off-screen), not a new feature, flag, config, or API surface.

Why there is nothing to document: The only file changed is Directory.Packages.props, bumping Microsoft.FluentUI.AspNetCore.Components from 5.0.0-preview.26259.4 to 5.0.0-preview.26260.3 to pick up an upstream Fluent UI fix for a submenu-overflow rendering bug (fluentui-blazor#5288). No dashboard source files, CSS, APIs, options, or behaviors were added or changed by this PR itself — the CSS workaround previously on this branch was simply removed since the underlying library now handles it. The docs site (src/frontend/src/content/docs/dashboard/*) contains no description of submenu positioning/overflow behavior to update, and there is no new capability, config, or flag for users to learn about — this is an internal rendering-correctness fix, not a documented feature change.

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.

@github-actions github-actions Bot locked and limited conversation to collaborators Oct 18, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants