Skip to content

Commit 790b53e

Browse files
crisbetommalerba
authored andcommitted
fix(popover-edit): incorrect spacing for form field inside pop… (#17600)
For some reason the padding on `mat-form-field` was reset inside the popover edit overlay which made it looked weird. From what I can tell, there's no reason to do this so these changes remove the override.
1 parent 4cc69d2 commit 790b53e

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/material-experimental/popover-edit/_popover-edit.scss

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,8 +105,10 @@
105105
mat-form-field {
106106
display: block;
107107

108+
// Clear the top padding, because we don't have a label on it and the reserved space
109+
// can throw off the alignment when there isn't a header (see discussion in #17600).
108110
&:not(.mat-form-field-has-label) .mat-form-field-infix {
109-
padding: 0;
111+
padding-top: 0;
110112
}
111113
}
112114
}

0 commit comments

Comments
 (0)