From 158d5f37abfcf457720c79558aee9215fb26607d Mon Sep 17 00:00:00 2001 From: Felix <62592273+felhag@users.noreply.github.com> Date: Wed, 20 Sep 2023 11:21:34 +0200 Subject: [PATCH] fix(material/form-field): style the cursor the same way as the rest of the input (#26491) (#27795) (cherry picked from commit 8c3d8d645857a381cb2a752a600796c36338ea9e) --- .../form-field/_mdc-text-field-structure-overrides.scss | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/material/form-field/_mdc-text-field-structure-overrides.scss b/src/material/form-field/_mdc-text-field-structure-overrides.scss index 5c35f0a32563..ba8a583424e5 100644 --- a/src/material/form-field/_mdc-text-field-structure-overrides.scss +++ b/src/material/form-field/_mdc-text-field-structure-overrides.scss @@ -38,6 +38,11 @@ pointer-events: all; } + .mat-mdc-form-field:not(.mat-form-field-disabled) .mat-mdc-floating-label.mdc-floating-label { + // Style the cursor the same way as the rest of the input + cursor: inherit; + } + // Reset the height that MDC sets on native input elements. We cannot rely on their // fixed height as we handle vertical spacing differently. MDC sets a fixed height for // inputs and modifies the baseline so that the textfield matches the spec. This does