Skip to content

Commit

Permalink
Update src/material-experimental/mdc-form-field/form-field.ts
Browse files Browse the repository at this point in the history
Co-authored-by: Paul Gschwendtner <[email protected]>
  • Loading branch information
mmalerba and devversion authored May 25, 2022
1 parent 63d3d82 commit f430c87
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/material-experimental/mdc-form-field/form-field.ts
Original file line number Diff line number Diff line change
Expand Up @@ -670,7 +670,7 @@ export class MatFormField

// Update the translateX of the floating label to account for the prefix container,
// but allow the CSS to override this setting via a CSS variable when the label is
// docked.
// floating.
floatingLabel.style.transform = `var(
--mat-mdc-form-field-label-transform,
${FLOATING_LABEL_DEFAULT_DOCKED_TRANSFORM} translateX(${labelHorizontalOffset}px
Expand Down

0 comments on commit f430c87

Please sign in to comment.