Как сделать так, чтобы текст внутри кнопки углового материала не переполнялся, обернув текст внутри кнопки.Я пробовал следующее:
HTML
<div class="cotnainer">
<button mat-raised-button color="accent">Click me! This is a long text, but I want to to wrap if content is overflowing
</button>
</div>
CSS
.container{
width: 200px;
height:200px;
background-color: silver;
}
button{
max-width: 100%;
}
span, .mat-button-wrapper{ // I have tried all of the following options, but it does not work.
max-width: 100% !important;
word-break: break-all !important;
overflow: hidden !important;
}
Вот это Stackblitz
РЕДАКТИРОВАТЬ Текущий результат:
![Current result](https://i.stack.imgur.com/BxYQR.png)
Желаемый результат: (извините за мои плохие навыки редактирования изображений) ![Desired result](https://i.stack.imgur.com/3l0zA.png)