Skip to content

bug(mat-form-field): error colors are applied only to suffix, but not to prefix #30682

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
kainiedziela opened this issue Mar 21, 2025 · 1 comment
Labels
needs triage This issue needs to be triaged by the team

Comments

@kainiedziela
Copy link

kainiedziela commented Mar 21, 2025

If it's intentional I'd love to know why... otherwise this seems like an oversight

Image

Reproduction

StackBlitz link: https://stackblitz.com/edit/hiuhi6zf?file=src%2Fexample%2Fform-field-appearance-example.html
Steps to reproduce:

  1. Click or otherwise focus the form field
  2. Exit focus from the focused form field

Expected Behavior

I would expect the same behavior to apply to both prefix and suffix

Actual Behavior

The actual behavior is that prefix behaves differently from suffix, where prefix does not change colors, but suffix does

Environment

  • Angular: 19
  • CDK/Material: 19
  • Browser(s): Any
  • Operating System (e.g. Windows, macOS, Ubuntu): Any
@kainiedziela kainiedziela added the needs triage This issue needs to be triaged by the team label Mar 21, 2025
@crisbeto
Copy link
Member

crisbeto commented May 2, 2025

@crisbeto crisbeto closed this as completed May 2, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
needs triage This issue needs to be triaged by the team
Projects
None yet
Development

No branches or pull requests

2 participants