components icon indicating copy to clipboard operation
components copied to clipboard

bug(MatSelect): placeholder overrules disabled styling

Open Releef opened this issue 1 year ago • 0 comments
trafficstars

Is this a regression?

  • [ ] Yes, this behavior used to work in the previous version

The previous version in which this bug was not present was

No response

Description

When you use placeholder on a Mat Select and disable the Mat Select, the placeholder text color is unchanged.

Reproduction

StackBlitz link: https://stackblitz.com/edit/vuewqf?file=src%2Fexample%2Fselect-reset-example.ts Steps to reproduce:

  1. instead of using <mat-label> use placeholder="my placeholder" and disable the mat-select

Expected Behavior

When you use placeholder on a Mat Select and disable the Mat Select, the placeholder text should be grayed-out. Just like when you would use <mat-label>

Actual Behavior

When you use placeholder on a Mat Select and disable the Mat Select, the placeholder text color is unchanged.

Environment

  • Angular: 18.2.6
  • CDK/Material: 18.2.6
  • Browser(s): Chrome Version 129.0.6668.60
  • Operating System (e.g. Windows, macOS, Ubuntu): macOS 15.0

Releef avatar Oct 01 '24 09:10 Releef