Repository navigation
[Dialog] Fix height for fixed dialogs - #5657
Merged
Merged
Conversation
Denis Voituron (dvoituron)
requested a review
from Vincent Baaij (vnbaaij)
as a code owner
November 20, 2026 15:19
Contributor
There was a problem hiding this comment.
🟡 Changes recommended
Centered dialogs with explicit heights set through DialogOptions.Style or declarative Style lose body fill-height behavior, leaving the footer above the bottom when content is short.
1 open issue
What changed in this PR
This PR adjusts fixed-header/footer dialog sizing so the body receives full height only when an explicit height option is set.
Changes:
- Moves unconditional CSS height styling into conditional component logic.
- Excludes drawers and non-fixed bodies from the inline height rule.
- Adds parameterized tests for explicit-height behavior.
| File | Description |
|---|---|
tests/Core/Components/Dialog/FluentDialogBodyTests.razor |
Tests height styling across dialog configurations. |
src/Core/Components/Dialog/FluentDialogBody.razor.css |
Removes the unconditional height: 100% rule. |
src/Core/Components/Dialog/FluentDialogBody.razor.cs |
Applies full body height conditionally using dialog options. |
Review effort: Balanced
|
✅ All tests passed successfully Details on your Workflow / Core Tests page. |
Summary - Unit Tests Code CoverageSummary
CoverageMicrosoft.FluentUI.AspNetCore.Components - 98.9%
Microsoft.FluentUI.AspNetCore.Components.Charts - 100%
|
Vincent Baaij (vnbaaij)
requested changes
Nov 23, 2026
Vincent Baaij (vnbaaij)
left a comment
Collaborator
There was a problem hiding this comment.
Can you check the Copilot comment
…s for explicit height
…m/microsoft/fluentui-blazor into users/dvoituron/fix-dialog-height
Collaborator
Author
Done |
Vincent Baaij (vnbaaij)
approved these changes
Nov 23, 2026
Vincent Baaij (vnbaaij)
deleted the
users/dvoituron/fix-dialog-height
branch
November 23, 2026 14:15
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

[Dialog] Fix height for fixed dialogs
Adjust height handling for fixed dialogs to ensure proper styling based on explicit height options. Include tests to verify that the height is applied correctly in various scenarios.