Skip to content

Ability to modify padding in mwc-dialog #2660

@kartikwatwani

Description

@kartikwatwani

Is your feature request related to a problem? Please describe.
Previously I was using mdc-dialog so I had control over padding inside the dialog but now with mwc-dialog I can't modify the mdc-dialog__content padding. Currently, there is around 24px of padding but I want 0 paddings. I want to remove the green padding shown in the image below.

Describe the solution you'd like
I would like a CSS property something like --mdc-dialog__content-padding which I can set to get the desired padding.

Describe alternatives you've considered
I can't think of an alternative as shadow roots can't be modified easily.

Screenshot from 2021-08-30 20-09-15

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions