Skip to content

bug(mat-tab-group): ripple doesn't support custom theme with CSS variables #23681

Closed
@Selindek

Description

@Selindek

Reproduction

https://stackblitz.com/edit/angular-qrscte

Steps to reproduce:

  1. Choose Accent color as background
  2. Click any of the tabs

Expected Behavior

The ripple effect during the click should have opacity.

Actual Behavior

Ripple is solid white, and doesn't have opacity.

Environment

  • Angular: 12.2.7
  • CDK/Material: 12.2.7
  • Browser(s): tested on Chrome, Edge, Safari
  • Operating System (e.g. Windows, macOS, Ubuntu): Tested on Windows and Mac

Comment

The same issue happens in mat-tab-nav-bar too.
It seems that the ripple effect cannot handle css variable as bacground-color, so it falls back to solid white instead.

Metadata

Metadata

Assignees

Labels

P3An issue that is relevant to core functions, but does not impede progress. Important, but not urgentarea: material/tabsarea: theming

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions