Skip to content

Commit 218c98b

Browse files
committed
fix some firefox issues
1 parent 6c0c7b0 commit 218c98b

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
@@ -100,8 +100,7 @@
100100
translateZ(0.001px);
101101
// The tricks above used to smooth out the animation on chrome and firefox actually make things
102102
// worse on IE, so we don't include them in the IE version.
103-
-ms-transform: translateY(-$infix-margin-top - $infix-padding)
104-
scale($font-scale);
103+
-ms-transform: translateY(-$infix-margin-top - $infix-padding) scale($font-scale);
105104

106105
width: 100% / $font-scale;
107106
}
@@ -176,11 +175,15 @@
176175
}
177176

178177
.mat-form-field-can-float {
179-
&.mat-form-field-should-float .mat-form-field-placeholder,
178+
&.mat-form-field-should-float .mat-form-field-placeholder {
179+
@include _mat-form-field-placeholder-floating(
180+
$subscript-font-scale, $infix-padding, $infix-margin-top);
181+
}
182+
180183
.mat-form-field-autofill-float:-webkit-autofill + .mat-form-field-placeholder-wrapper
181184
.mat-form-field-placeholder {
182185
@include _mat-form-field-placeholder-floating(
183-
$subscript-font-scale, $infix-padding, $infix-margin-top);
186+
$subscript-font-scale, $infix-padding, $infix-margin-top);
184187
}
185188
}
186189

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)