-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
MudExpansionPanel: Fix Gutters property not affecting header padding #12036
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
…tent padding Co-authored-by: danielchalmers <7112040+danielchalmers@users.noreply.github.com>
|
@copilot Update the Padding example in the docs to showcase this |
Co-authored-by: danielchalmers <7112040+danielchalmers@users.noreply.github.com>
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. |
|
Before (https://try.mudblazor.com/snippet/wkwplbEcTqqWygpF)
After (docs on this build)
|
|
@danielchalmers Razor code: |
|
@icistrate Thanks for the heads up! Would you be able to create an issue for this with reproduction and ping me so I can take a further look? |
|
@danielchalmers Thanks for the message. Very strange, I started to extract it into a simpler example and now I see correct behaviour. So, I guess it is something with the whole setup in my application. I cannot seem to figure it out for the moment. If I manage to reproduce outside, I will create an issue. Thanks again |





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.