Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Slide Toggle: Opacity is not added to the background when using CSS variables to define a custom theme #17610

Open
JoakimZebic opened this issue Nov 5, 2019 · 0 comments
Labels
area: material/slide-toggle P3 An issue that is relevant to core functions, but does not impede progress. Important, but not urgent

Comments

@JoakimZebic
Copy link
Contributor

JoakimZebic commented Nov 5, 2019

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-slide-toggle-bug-report

Steps to reproduce:

  1. Look at the 'checked' slide toggle

Expected Behavior
The background color of mat-slide-toggle should have opacity.

Actual Behavior
The background color of mat-slide-toggle doesn't have opacity and it's the same as 'thumb' color.

Environment

  • Angular: 7.2.0
  • CDK/Material: 7.3.7
  • Browser(s): Chrome, Firefox
  • Operating System (e.g. Windows, macOS, Ubuntu): Windows 10
@crisbeto crisbeto added the has pr label Nov 5, 2019
@mmalerba mmalerba added the needs triage This issue needs to be triaged by the team label May 20, 2020
@crisbeto crisbeto added area: material/slide-toggle P3 An issue that is relevant to core functions, but does not impede progress. Important, but not urgent and removed needs triage This issue needs to be triaged by the team labels May 27, 2020
@crisbeto crisbeto self-assigned this May 27, 2020
@mmalerba mmalerba removed the has pr label Dec 8, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: material/slide-toggle P3 An issue that is relevant to core functions, but does not impede progress. Important, but not urgent
Projects
None yet
Development

No branches or pull requests

3 participants