On the Angular Material components overview there's an example of slide toogles with icons:
This looks really nice. Unfortunately this example isn't explained in the actual docs of the component.
So what I tried is this:
<mat-slide-toggle labelPosition="before" color="primary">
<mat-icon>dark_mode</mat-icon>
Dark Mode
</mat-slide-toggle>
I have this wrapped inside a menu and the result looks like this:
So it's almost there, but not really. Everything is not aligned correctly.
My questions are:
- How to align the icon, label and toggle correctly?
- How is it possible to increase the distance between label and toggle like in the examples from the docs?

