MudExpansionPanel: Fix Gutters property not affecting header padding#12036
Merged
danielchalmers merged 3 commits intodevfrom Nov 5, 2025
Merged
MudExpansionPanel: Fix Gutters property not affecting header padding#12036danielchalmers merged 3 commits intodevfrom
danielchalmers merged 3 commits intodevfrom
Conversation
…tent padding Co-authored-by: danielchalmers <7112040+danielchalmers@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Fix gutters property issue in MudExpansionPanel
ExpansionPanel: Fix Gutters property not affecting header padding
Nov 2, 2025
Member
|
@copilot Update the Padding example in the docs to showcase this |
Co-authored-by: danielchalmers <7112040+danielchalmers@users.noreply.github.com>
Contributor
Author
Updated the Padding example with clear sections demonstrating:
Commit: f161428 The example now clearly shows how both header and content respect the Gutters property, with a highlighted section explaining the fix. |
Member
|
Before (https://try.mudblazor.com/snippet/wkwplbEcTqqWygpF)
After (docs on this build)
|
danielchalmers
approved these changes
Nov 2, 2025
This was referenced Nov 5, 2025
Closed
This was referenced Jan 12, 2026
Closed
This was referenced Feb 5, 2026
Closed
This was referenced Feb 16, 2026
This was referenced Feb 23, 2026
This was referenced Mar 9, 2026
This was referenced Mar 16, 2026
This was referenced Mar 23, 2026
This was referenced Apr 1, 2026
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.



The
Guttersproperty onMudExpansionPanelonly controlled content padding, not header padding. SettingGutters="false"left the header with fixed 24px horizontal padding.Changes
SCSS (
_expansionpanel.scss).mud-expand-panel-headerbase padding from16px 24pxto16px 0px.mud-expand-panel-header-guttersmodifier that appliespadding-left: 24px; padding-right: 24pxC# (
MudExpansionPanel.razor.cs)Gutters && Parent?.Gutters != falseTests
Documentation (
ExpansionPanelPaddingExample.razor)Default behavior (Gutters=true) unchanged - only fixes the broken Gutters=false case.
Original prompt
💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.