Skip to content

MDDialog headline should be optional #1680

@ddauer

Description

@ddauer

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type: EnhancementFeature request/Feature implementation

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions