Skip to content

Chips: Opacity is not added to the ripple element when using CSS variables to define a custom theme #17577

@JoakimZebic

Description

@JoakimZebic

In the bug demo below, I use CSS variables to define a custom theme (so I can change it dynamically). Please see the 'styles.scss' file.

Demo: https://stackblitz.com/github/JoakimZebic/angular-material-chips-bug-report

Steps to reproduce:

  1. Click on any 'colored' chips

Expected Behavior
Ripple effect should have opacity.

Actual Behavior
Ripple is a solid color (depending on the contrast color of the theme) and doesn't have opacity.

Environment

  • Angular: 7.2.0
  • CDK/Material: 7.3.7
  • Browser(s): Chrome, Firefox
  • Operating System (e.g. Windows, macOS, Ubuntu): Windows 10

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions