Skip to content

bug(mat-table): SCSS token background-color does not support transparent colors #33283

@jakobgruber

Description

@jakobgruber

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 using the style token background-color to set the background color of the mat-table a transparent color is not supported.

Reproduction

StackBlitz link: https://stackblitz.com/edit/pe9hchk7?file=src%2Fexample%2Ftable-basic-example.scss
Steps to reproduce: Stackblitz example provides two mat-tables, both are similar except the second table has a css-fix so the transparent color is shown.

Expected Behavior

When using the style token background-color to set the background color of the mat-table a transparent color should be supported.

Actual Behavior

When using the style token background-color to set the background color of the mat-table a transparent color is not supported.

Environment

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

Metadata

Metadata

Assignees

No one assigned

    Labels

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

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions