Skip to content

Commit

Permalink
fix(material/form-field): don't toggle hover state over subscript (#2…
Browse files Browse the repository at this point in the history
…7683)

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.
  • Loading branch information
crisbeto authored Aug 21, 2023
1 parent 2dc5997 commit cf456a2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/material/form-field/_form-field-focus-overlay.scss
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
tokens-mat-form-field.$prefix, tokens-mat-form-field.get-token-slots()) {
@include token-utils.create-token-slot(background-color, state-layer-color);

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

Expand Down

0 comments on commit cf456a2

Please sign in to comment.