/
githubmirror
/
components
Обзор
Документация
Войти
/
githubmirror
/
components
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
src/material/progress-bar/_m2-progress-bar.scss
36 строк
1021 B
Kristiyan Kostadinov
fix(multiple): resolve sass if function deprecation warnings (#32674)
20 янв 2026, 09:37
Не верифицирован
20 янв 2026, 09:37
f3357c1
Код
Авторство
О чём код?
@use 'sass:color'; @use 'sass:meta'; @use 'sass:map'; @use '../core/tokens/m2-utils'; @use '../core/tokens/m3-utils'; @function get-tokens($theme) { $system: m2-utils.get-system($theme); @return ( base: ( progress-bar-active-indicator-height: 4px, progress-bar-track-height: 4px, progress-bar-track-shape: 0, ), color: private-get-color-palette-color-tokens($theme, primary), typography: (), density: (), ); } // Tokens that can be configured through Angular Material's color theming API. @function private-get-color-palette-color-tokens($theme, $color-variant) { $system: m2-utils.get-system($theme); $system: m3-utils.replace-colors-with-variant($system, primary, $color-variant); $track-color: map.get($system, primary); @if (meta.type-of($track-color) == color) { $track-color: color.adjust($track-color, $alpha: -0.75); } @return ( progress-bar-active-indicator-color: map.get($system, primary), progress-bar-track-color: $track-color, ); }