Is there a way to get the title in mat-slide-toggle to wrap if it's too long while keeping its default position to the right of the toggle?
<mat-slide-toggle class="slider">A really long title wrapped</mat-slide-toggle>
I attempted to use flex-wrap
, but it didn't seem to work.
.slider {
flex-wrap: wrap !important;
font-size: 13px;
}
The issue is that the text is extending outside of the container. Here's an image for reference: https://i.sstatic.net/cDIZr.png