Skip to content

Commit b8c4f20

Browse files
committed
fixup! fix(material-experimental/mdc-form-field): use a CSS var for the floating label scale
1 parent cea7675 commit b8c4f20

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/material-experimental/mdc-form-field/directives/notched-outline.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ import {
3535
encapsulation: ViewEncapsulation.None,
3636
})
3737
export class MatFormFieldNotchedOutline implements AfterViewInit {
38-
/** Width of the notch. */
38+
/** Width of the label (original scale) */
3939
@Input('matFormFieldNotchedOutlineLabelWidth') labelWidth: number = 0;
4040

4141
/** Whether the notch should be opened. */

src/material-experimental/mdc-form-field/form-field.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -267,7 +267,7 @@ export class MatFormField
267267
/** State of the mat-hint and mat-error animations. */
268268
_subscriptAnimationState = '';
269269

270-
/** Width of the outline notch. */
270+
/** Width of the label element (at scale=1). */
271271
_labelWidth = 0;
272272

273273
/** Gets the current form field control */

0 commit comments

Comments
 (0)