Skip to content

bug(MatChip): CSS Chip override specificity #33630

Description

@lupatrick-stack

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

Using @include mat.chips-overrides() at the root level to match with theme is not applied due to chips overriding variables at a lower level: .mat-mdc-standard-chip

Reproduction

StackBlitz link:
Steps to reproduce:

  1. @include mat.chips-overrides((label-text-color: some color)) in global css
  2. color will not change

Expected Behavior

I would expect overriding themes through sass to be highest priority.

Actual Behavior

theme is still being controlled by base class.

Environment

  • Angular: up-to-date
  • CDK/Material: most up to date
  • Browser(s): Chrome
  • Operating System (e.g. Windows, macOS, Ubuntu): macOS

Metadata

Metadata

Assignees

No one assigned

    Labels

    area: material/chipsgemini-triagedLabel noting that an issue has been triaged by geminineeds triageThis issue needs to be triaged by the team

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions