Skip to content

Commit dab1930

Browse files
authored
fix(material/form-field): change selector to allow density class on form field (#26075)
Fixes that one of the form field density selectors was targeting `.mat-mdc-form-field` which prevents users from setting density classes directly on the form field. Fixes #26062.
1 parent 33db089 commit dab1930

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/material/form-field/_form-field-density.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@
7878
// on whether a textarea is used. This is not possible in our implementation of the
7979
// form-field because we do not know what type of form-field control is set up. Hence
8080
// we always use a fixed position for the label. This does not have any implications.
81-
.mat-mdc-form-field .mat-mdc-text-field-wrapper .mat-mdc-floating-label {
81+
.mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-floating-label {
8282
top: math.div($height, 2);
8383
}
8484

0 commit comments

Comments
 (0)