Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

danielchalmers
Copy link
Member

Description

Apparently this was a regression which I expect was caused by the addition of a Focus Trap. The dialog content was expecting a flex parent, but the focus trap intercepted that.

This adds classes to the MudFocusTrap and the container for the child content so you can apply styles and debug the layout easier by default.

With those extra classes I applied flex to the intemediary components to make the dialog content grow as intended. Flex is the easier way to do this.

Resolves #5651
Resolves #6994

How Has This Been Tested?

visually

Type of Changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • Documentation (fix or improvement to the website or code docs)

Before

image

After

image

I had to hide the Scroll to Top FAB in those images because for some reason they are visible over the dialog.

Checklist

  • The PR is submitted to the correct branch (dev).
  • My code follows the code style of this project.
  • I've added relevant tests.

Apparently this was a regression which I expect was caused by the addition of a Focus Trap. The dialog content was expecting a flex parent, but the focus trap intercepted that.

This adds classes to the MudFocusTrap and the container for the child content so you can apply styles and debug the layout easier by default.

With those extra classes I applied flex to the intemediary components to make the dialog content grow as intended.
@danielchalmers danielchalmers requested a review from henon April 18, 2024 18:34
@github-actions github-actions bot added bug Unexpected behavior or functionality not working as intended PR: needs review labels Apr 18, 2024
@henon henon changed the title Dialog: Stretch content so actions are at the end MudDialog: Stretch content so actions are at the end Apr 18, 2024
@danielchalmers
Copy link
Member Author

@henon Title may want to mention that this is a fix or that it only applies to fullscreen

Copy link

codecov bot commented Apr 18, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 90.09%. Comparing base (28bc599) to head (74443a9).
Report is 77 commits behind head on dev.

Additional details and impacted files
@@            Coverage Diff             @@
##              dev    #8743      +/-   ##
==========================================
+ Coverage   89.82%   90.09%   +0.26%     
==========================================
  Files         412      419       +7     
  Lines       11878    12182     +304     
  Branches     2364     2397      +33     
==========================================
+ Hits        10670    10975     +305     
+ Misses        681      667      -14     
- Partials      527      540      +13     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@henon henon changed the title MudDialog: Stretch content so actions are at the end MudDialog: Fix content not stretched in fullscreen mode Apr 18, 2024
@henon henon merged commit 09cb257 into MudBlazor:dev Apr 18, 2024
@henon
Copy link
Collaborator

henon commented Apr 18, 2024

Thanks!

@KimBorrmann
Copy link

Hi, I am not sure if this is the right place to ask, if not, I am sorry. This is not yet in the newest version but a preview if I understand right? I am slightly confused because the similar issue with the cards #8933 is in the v.7 migration guide. I need to make sure the buttons stay at the same height/place in our dialog with a fixed height when the content changes and am wondering if I should try something custom or if it is going to be included soon because it isn't that urgent. Thank you for all the work you do, I really love Mudblazor :)

@danielchalmers
Copy link
Member Author

@KimBorrmann Hi and thanks! This is included in v7 - if you're not seeing the right result please send me a https://try.mudblazor.com link and I'll take a look!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Unexpected behavior or functionality not working as intended
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Dialogs] DialogActions should be at the bottom Cannot set DialogContent to Full Height of MudDialog Container
3 participants