Skip to content

Commit

Permalink
fix(material-experimental/mdc-form-field): update src/material-experi…
Browse files Browse the repository at this point in the history
…mental/mdc-form-field/form-field.ts

Co-authored-by: Paul Gschwendtner <[email protected]>
  • Loading branch information
mmalerba and devversion committed Jun 3, 2022
1 parent 63d3d82 commit 37139c0
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 37139c0

Please sign in to comment.