Skip to content

bug(components): After upgrading from Angular 19 to 20, the bg of many components became transparent #31630

@doucsag

Description

@doucsag

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

19

Description

I upgraded my app to angular 20 and material 20 with M2. After the upgrade, lots of components became transparent or color-less like dropdowns, buttons etc:

Image Image

These are screenshots from the Stackblitz provided.

Reproduction

StackBlitz link: https://stackblitz.com/~/github.com/doucsag/angular-20-material-issue
Steps to reproduce:

  1. Click on a dropdown (It might look like its working normally if there is nothing behind it, but its transparent)

Expected Behavior

Should be white and not transparent.

Actual Behavior

Is transparent.

Environment

  • Angular: 20.1.4
  • CDK/Material: 20.1.4
  • Browser(s): Chrome, Brave
  • Operating System: Windows

Metadata

Metadata

Assignees

No one assigned

    Labels

    needs 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