/
githubmirror
/
components
Обзор
Документация
Войти
/
githubmirror
/
components
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
src/material/progress-bar/progress-bar.html
22 строки
893 B
Kristiyan Kostadinov
fix(material/progress-bar): avoid CSP issues for apps not using buffer mode (#28946)
24 апр 2024, 17:46
Не верифицирован
24 апр 2024, 17:46
cf3506a
Код
Авторство
О чём код?
<!-- All children need to be hidden for screen readers in order to support ChromeVox. More context in the issue: https://github.com/angular/components/issues/22165. --> <div class="mdc-linear-progress__buffer" aria-hidden="true"> <div class="mdc-linear-progress__buffer-bar" [style.flex-basis]="_getBufferBarFlexBasis()"></div> <!-- Remove the dots outside of buffer mode since they can cause CSP issues (see #28938) --> @if (mode === 'buffer') { <div class="mdc-linear-progress__buffer-dots"></div> } </div> <div class="mdc-linear-progress__bar mdc-linear-progress__primary-bar" aria-hidden="true" [style.transform]="_getPrimaryBarTransform()"> <span class="mdc-linear-progress__bar-inner"></span> </div> <div class="mdc-linear-progress__bar mdc-linear-progress__secondary-bar" aria-hidden="true"> <span class="mdc-linear-progress__bar-inner"></span> </div>