/
githubmirror
/
components
Обзор
Документация
Войти
/
githubmirror
/
components
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
src/material/button/button.html
31 строка
920 B
Jeremy Mowery
feat(material/button): Add support for showing a progress indicator inside the button (#32698)
27 фев 2026, 02:02
Не верифицирован
27 фев 2026, 02:02
b4a89d5
Код
Авторство
О чём код?
<span class="mat-mdc-button-persistent-ripple" [class.mdc-button__ripple]="!_isFab" [class.mdc-fab__ripple]="_isFab" ></span> <ng-content select=".material-icons:not([iconPositionEnd]), mat-icon:not([iconPositionEnd]), [matButtonIcon]:not([iconPositionEnd])" > </ng-content> <span class="mdc-button__label"><ng-content></ng-content></span> <ng-content select=".material-icons[iconPositionEnd], mat-icon[iconPositionEnd], [matButtonIcon][iconPositionEnd]" > </ng-content> @if (showProgress()) { <div class="mat-mdc-button-progress-indicator-container"> <ng-content select="[progressIndicator]" /> </div> } <!-- The indicator can't be directly on the button, because MDC uses ::before for high contrast indication and it can't be on the ripple, because it has a border radius and overflow: hidden. --> <span class="mat-focus-indicator"></span> <span class="mat-mdc-button-touch-target"></span>