Skip to content

mat-slide-toggle using incorrect text color in dark-theme #18701

Closed
@hfournier

Description

@hfournier

Reproduction

Steps to reproduce:

  1. Add mat-slide-toggle to menu in dark-theme
<mat-menu #userMenu="matMenu">
  <button mat-menu-item (click)="logout()">Logout</button>
  <mat-slide-toggle
     [(ngModel)]="darktheme"
     (change)="changeTheme($event)">Dark Theme
  </mat-slide-toggle>
</mat-menu>

Expected Behavior

What behavior were you expecting to see?
Expect mat-slide-toggle text to be white in dark-theme

Actual Behavior

What behavior did you actually see?
mat-slide-toggle text is black in dark-theme

image

Environment

  • Angular: 9.0.4
  • CDK/Material: 9.0.1
  • Browser(s): Firefox, Edge (chromium)
  • Operating System (e.g. Windows, macOS, Ubuntu): Windows

Metadata

Metadata

Assignees

Labels

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

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions