bug(MatSlideToggle): MAT_SLIDE_TOGGLE_DEFAULT_OPTIONS doesn't provide ability to set default color #22012
Labels
area: material/slide-toggle
feature
This issue represents a new feature or feature request rather than a bug or bug fix
P3
An issue that is relevant to core functions, but does not impede progress. Important, but not urgent
Reproduction
There is no way to set default color for MatSlideToggle component at application level.
Expected Behavior
It would be great to have ability to set default color in the same way as it is implemented for MatCheckBox or MatRadioButton:
Actual Behavior
MatSlideToggleDefaultOptions has no
color
property. 'accent' value is hardcoded, please checkout slide-toggle.ts#75components/src/material/slide-toggle/slide-toggle.ts
Line 75 in 5b30c4c
Environment
The text was updated successfully, but these errors were encountered: