Skip to content

Fix dashboard layout and disabled control styling - #20170

Merged
Ella Hathaway (ellahathaway) merged 4 commits into
mainfrom
fix-dashboard-styling-regressions
Sep 16, 2026
Merged

Ella Hathaway (ellahathaway) merged 4 commits into
mainfrom
fix-dashboard-styling-regressions

Conversation

@JamesNK

Copy link
Copy Markdown
Member

Description

Fix dashboard styling regressions that caused empty message bar space, premature dialog scrolling, and inconsistent disabled controls in dark mode.

  • Hide only an empty top message bar while preserving its layout container.
  • Let dialogs expand vertically to fit their content and scroll only when constrained by the viewport.
  • Restore the dashboard dark-theme background for disabled controls.
  • Align disabled checkbox colors and cursors with other disabled inputs.

User-facing usage

Dialogs now use the available vertical space before showing a scrollbar. Disabled text inputs, dropdowns, number inputs, and checkboxes use consistent dark-theme surfaces and disabled affordances.

Screenshots / Recordings

This PR includes UI changes. The screenshot below shows the updated disabled inputs in dark mode.

Disabled inputs in dark mode

Validation

  • Manually verified dialog sizing in the running Stress dashboard at unconstrained and viewport-constrained heights.
  • Manually verified disabled text inputs, dropdowns, number inputs, and checkboxes in dark mode.
  • Verified the changed stylesheets have no VS Code diagnostics.

Fixes # (issue)

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 -- 20170

Or

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

@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

The message-box margin override loses to Fluent UI’s higher-specificity isolated style.

Get a fresh assessment by requesting another Copilot review.

Pull request overview

Updates dashboard CSS to fix layout gaps, dialog scrolling, and dark-theme disabled states.

Changes:

  • Adjusts empty message-bar and dialog sizing behavior.
  • Aligns disabled control colors and cursors.
  • Repositions the selected dropdown indicator.
File summaries
File Description
layout.css Updates dialog sizing, padding, and message-box spacing.
design.css Restores dark-theme disabled backgrounds.
controls.css Updates disabled checkboxes and dropdown indicators.
MainLayout.razor.css Hides only the empty message-bar element.
Review details
  • Files reviewed: 4/4 changed files
  • Comments generated: 1
  • Review effort level: Balanced

💡 Add a code-review agent skill for context-aware, tailored reviews. Learn more in the docs.

Co-authored-by: Copilot Autofix powered by AI <[email protected]>
@github-actions

Copy link
Copy Markdown
Contributor

Tests selector

10 / 99 PR test projects · 3 PR jobs, from 4 changed files.

Selected PR test projects (10 / 99)

Aspire.Cli.EndToEnd.Tests, Aspire.Dashboard.Components.Tests, Aspire.Dashboard.Tests, Aspire.Hosting.DotnetTool.Tests, Aspire.Hosting.JavaScript.Tests, Aspire.Hosting.RemoteHost.Tests, Aspire.Hosting.Testing.Tests, Aspire.Managed.Tests, Aspire.Playground.Tests, Aspire.Templates.Tests

Selected PR jobs (3)

cli-starter-validation, extension-e2e, polyglot


How these were chosen — grouped by what changed

⚠️ 7 of the 10 selected test projects come from a single change — src/Aspire.Dashboard/Components/Layout/MainLayout.razor.css.

🔧 src/Aspire.Dashboard/Components/Layout/MainLayout.razor.css (changed source)
→ 7 via the project graph: Aspire.Dashboard.Components.Tests, Aspire.Hosting.DotnetTool.Tests (2 hops), Aspire.Hosting.JavaScript.Tests, Aspire.Hosting.RemoteHost.Tests (2 hops), Aspire.Hosting.Testing.Tests, Aspire.Managed.Tests (2 hops), Aspire.Playground.Tests (2 hops)

📦 affected project Aspire.Dashboard
→ 1 test: Aspire.Templates.Tests

📦 affected project Aspire.Managed
→ 1 test: Aspire.Cli.EndToEnd.Tests

🔧 src/Aspire.Dashboard/wwwroot/css/controls.css (changed source)
→ 1 via the project graph: Aspire.Dashboard.Tests

Job reasons

Job Triggered by
cli-starter-validation affected project Aspire.Managed
extension-e2e • src/Aspire.Dashboard/Components/Layout/MainLayout.razor.css, src/Aspire.Dashboard/wwwroot/css/controls.css, src/Aspire.Dashboard/wwwroot/css/design.css, src/Aspire.Dashboard/wwwroot/css/layout.css
• affected project Aspire.Dashboard
polyglot affected project Aspire.Managed

Selection computed for commit 2743658.

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

The new dialog message-box selector does not match the rendered Fluent UI class, leaving the spacing fix ineffective.

Review details

Suppressed comments (1)

Previously missed (1) — in code that hasn't changed since the last review.

src/Aspire.Dashboard/wwwroot/css/layout.css:573

  • This selector does not match Fluent UI's MessageBox markup, which renders class="fluent-messagebox" (without the extra hyphen). As written, the margin override is never applied, so the dialog spacing regression remains.
  • Files reviewed: 4/4 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.

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

@ellahathaway
Ella Hathaway (ellahathaway) merged commit a9c654f into main Sep 16, 2026
617 of 630 checks passed
@ellahathaway
Ella Hathaway (ellahathaway) deleted the fix-dashboard-styling-regressions branch September 16, 2026 16:54
@microsoft-github-policy-service microsoft-github-policy-service Bot added this to the 13.6 milestone Sep 16, 2026
@aspire-repo-bot

Copy link
Copy Markdown
Contributor

Pull request created: #1682

Generated by PR Documentation Check · auto · 31.2 AIC · ⌖ 7.71 AIC · ⊞ 18.5K

@aspire-repo-bot

Copy link
Copy Markdown
Contributor

📝 Documentation has been drafted in microsoft/aspire.dev#1682 targeting release/13.6.

Added a bullet to the "Other dashboard improvements" list in whats-new/aspire-13-6.mdx noting that dialogs now expand vertically to use available space before scrolling, and disabled text inputs, dropdowns, number inputs, and checkboxes use consistent dark-theme surfaces and disabled affordances.

  • Modified: src/frontend/src/content/docs/whats-new/aspire-13-6.mdx

Note

This draft PR needs human review before merging.

@github-actions github-actions Bot locked and limited conversation to collaborators Oct 17, 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.

4 participants