Skip to content

Commit 16cab0b

Browse files
committed
avoid changing specificity of old selectors
1 parent 635ed62 commit 16cab0b

File tree

1 file changed

+11
-6
lines changed

1 file changed

+11
-6
lines changed

src/material-experimental/mdc-form-field/_form-field-subscript.scss

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -16,25 +16,30 @@
1616

1717
.mat-mdc-form-field-hint-wrapper,
1818
.mat-mdc-form-field-error-wrapper {
19+
position: absolute;
20+
top: 0;
21+
left: 0;
22+
right: 0;
1923
padding: 0 mdc-textfield-variables.$padding-horizontal;
2024
}
2125

22-
.mat-mdc-form-field-bottom-align:not(.mat-mdc-form-field-subscript-dynamic-size) {
26+
.mat-mdc-form-field-subscript-dynamic-size {
2327
.mat-mdc-form-field-hint-wrapper,
2428
.mat-mdc-form-field-error-wrapper {
25-
position: absolute;
26-
top: 0;
27-
left: 0;
28-
right: 0;
29+
position: static;
2930
}
3031
}
3132

32-
.mat-mdc-form-field-bottom-align:not(.mat-mdc-form-field-subscript-dynamic-size)::before {
33+
.mat-mdc-form-field-bottom-align::before {
3334
content: '';
3435
display: inline-block;
3536
height: 16px;
3637
}
3738

39+
.mat-mdc-form-field-bottom-align.mat-mdc-form-field-subscript-dynamic-size::before {
40+
content: unset;
41+
}
42+
3843
.mat-mdc-form-field-hint-end {
3944
order: 1;
4045
}

0 commit comments

Comments
 (0)