Skip to content

Commit 158d5f3

Browse files
felhagcrisbeto
authored andcommitted
fix(material/form-field): style the cursor the same way as the rest of the input (#26491) (#27795)
(cherry picked from commit 8c3d8d6)
1 parent 80acf79 commit 158d5f3

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/material/form-field/_mdc-text-field-structure-overrides.scss

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,11 @@
3838
pointer-events: all;
3939
}
4040

41+
.mat-mdc-form-field:not(.mat-form-field-disabled) .mat-mdc-floating-label.mdc-floating-label {
42+
// Style the cursor the same way as the rest of the input
43+
cursor: inherit;
44+
}
45+
4146
// Reset the height that MDC sets on native input elements. We cannot rely on their
4247
// fixed height as we handle vertical spacing differently. MDC sets a fixed height for
4348
// inputs and modifies the baseline so that the textfield matches the spec. This does

0 commit comments

Comments
 (0)