Skip to content

Commit cf456a2

Browse files
authored
fix(material/form-field): don't toggle hover state over subscript (#27683)
Fixes that the form field was showing its hover state when hovering over the hint/error area. This looked off, because while these elements are connected to the form field, they aren't part of the main container.
1 parent 2dc5997 commit cf456a2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/material/form-field/_form-field-focus-overlay.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
tokens-mat-form-field.$prefix, tokens-mat-form-field.get-token-slots()) {
2020
@include token-utils.create-token-slot(background-color, state-layer-color);
2121

22-
.mat-mdc-form-field:hover & {
22+
.mat-mdc-text-field-wrapper:hover & {
2323
@include token-utils.create-token-slot(opacity, hover-state-layer-opacity);
2424
}
2525

0 commit comments

Comments
 (0)