Skip to content

bug(mat-card): mat-card-header wrong text color #29881

Open
@CourserStudio

Description

@CourserStudio

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

I have a mat-card in a dialog with dark theme, the title text color is black.

Image

Reproduction

StackBlitz link:
Steps to reproduce:
1.
2.

Expected Behavior

The text color in mat-card-header should be white.

Actual Behavior

The text color in mat-card-header is black.

Environment

  • Angular: 18.1.0
  • CDK/Material: 18.2.8
  • Browser(s): Chrome
  • Operating System (e.g. Windows, macOS, Ubuntu): mcsOS

Metadata

Metadata

Assignees

No one assigned

    Labels

    area: material/cardcannot reproduceThe team is unable to reproduce this issue with the information providedneeds: clarificationThe issue does not contain enough information for the team to determine if it is a real bug

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions