-
-
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 <[email protected]>
|
@copilot Update the Padding example in the docs to showcase this |
Co-authored-by: danielchalmers <[email protected]>
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)
|



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.