Skip to content
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

MDDialog headline should be optional #1680

Open
ddauer opened this issue Apr 17, 2024 · 0 comments
Open

MDDialog headline should be optional #1680

ddauer opened this issue Apr 17, 2024 · 0 comments
Labels
Type: Enhancement Feature request/Feature implementation

Comments

@ddauer
Copy link

ddauer commented Apr 17, 2024

According to M3 design spec the headline is optional.

https://m3.material.io/components/dialogs/guidelines#0cff8b6b-d4f3-4442-8194-31212f5d1a12

However, when leaving the part out, the dialog retains its height (probably due to all height: self.minimum_height in dialog.kv, e.g.:

height: self.minimum_height

Expected result: Only display provided content, e.g. the follow code should show no whitespaces but it does:

MDDialog(            
   MDDialogContentContainer(
      MDIcon(icon="weight")
   )
).open()

red areas indicate too much whitespace:

screen1
@HeaTTheatR HeaTTheatR added the Type: Enhancement Feature request/Feature implementation label Apr 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: Enhancement Feature request/Feature implementation
Projects
None yet
Development

No branches or pull requests

2 participants