Skip to content
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

bug(MatSelect): placeholder overrules disabled styling #29807

Open
1 task
Releef opened this issue Oct 1, 2024 · 0 comments · May be fixed by #29870
Open
1 task

bug(MatSelect): placeholder overrules disabled styling #29807

Releef opened this issue Oct 1, 2024 · 0 comments · May be fixed by #29870
Labels
area: material/select P3 An issue that is relevant to core functions, but does not impede progress. Important, but not urgent

Comments

@Releef
Copy link

Releef commented Oct 1, 2024

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 Releef added the needs triage This issue needs to be triaged by the team label Oct 1, 2024
@crisbeto crisbeto added P3 An issue that is relevant to core functions, but does not impede progress. Important, but not urgent area: material/select and removed needs triage This issue needs to be triaged by the team labels Oct 9, 2024
naaajii added a commit to naaajii/components that referenced this issue Oct 12, 2024
this commit ensures select with disabled placeholder matches the color with label

fixes angular#29807
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: material/select P3 An issue that is relevant to core functions, but does not impede progress. Important, but not urgent
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants