Skip to content

Commit 8feb21f

Browse files
committed
fix some firefox issues
1 parent 7f52971 commit 8feb21f

File tree

2 files changed

+8
-4
lines changed

2 files changed

+8
-4
lines changed

src/lib/form-field/_form-field-theme.scss

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -106,8 +106,7 @@
106106
translateZ(0.001px);
107107
// The tricks above used to smooth out the animation on chrome and firefox actually make things
108108
// worse on IE, so we don't include them in the IE version.
109-
-ms-transform: translateY(-$infix-margin-top - $infix-padding)
110-
scale($font-scale);
109+
-ms-transform: translateY(-$infix-margin-top - $infix-padding) scale($font-scale);
111110

112111
width: 100% / $font-scale;
113112
}
@@ -182,11 +181,15 @@
182181
}
183182

184183
.mat-form-field-can-float {
185-
&.mat-form-field-should-float .mat-form-field-placeholder,
184+
&.mat-form-field-should-float .mat-form-field-placeholder {
185+
@include _mat-form-field-placeholder-floating(
186+
$subscript-font-scale, $infix-padding, $infix-margin-top);
187+
}
188+
186189
.mat-form-field-autofill-control:-webkit-autofill + .mat-form-field-placeholder-wrapper
187190
.mat-form-field-placeholder {
188191
@include _mat-form-field-placeholder-floating(
189-
$subscript-font-scale, $infix-padding, $infix-margin-top);
192+
$subscript-font-scale, $infix-padding, $infix-margin-top);
190193
}
191194
}
192195

src/lib/select/select.scss

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ $mat-select-placeholder-arrow-space: 2 * ($mat-select-arrow-size + $mat-select-a
1313

1414
.mat-select {
1515
display: inline-block;
16+
width: 100%;
1617
outline: none;
1718
}
1819

0 commit comments

Comments
 (0)