/
githubmirror
/
components
Обзор
Документация
Войти
/
githubmirror
/
components
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
src/material/button/icon-button.html
17 строк
542 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 mdc-icon-button__ripple"></span> <ng-content></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>