Skip to content

bug(MatSelect): placeholder overrules disabled styling #29807

Closed
@Releef

Description

@Releef

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    P3An issue that is relevant to core functions, but does not impede progress. Important, but not urgentarea: material/select

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions