/
githubmirror
/
components
Обзор
Документация
Войти
/
githubmirror
/
components
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
src/material/tree/tree.scss
32 строки
871 B
Andrew Seguin
refactor: simplify component styles by removing use-tokens (#31146)
21 май 2025, 03:10
Не верифицирован
21 май 2025, 03:10
7b5d88b
Код
Авторство
О чём код?
@use '../core/tokens/token-utils'; @use './m3-tree'; $fallbacks: m3-tree.get-tokens(); .mat-tree { display: block; background-color: token-utils.slot(tree-container-background-color, $fallbacks); } .mat-tree-node, .mat-nested-tree-node { color: token-utils.slot(tree-node-text-color, $fallbacks); font-family: token-utils.slot(tree-node-text-font, $fallbacks); font-size: token-utils.slot(tree-node-text-size, $fallbacks); font-weight: token-utils.slot(tree-node-text-weight, $fallbacks); } .mat-tree-node { display: flex; align-items: center; flex: 1; word-wrap: break-word; // TODO: before tokens were introduced, the `min-height` only applied to the // non-nested tree node. Should it apply to the nested one as well? min-height: token-utils.slot(tree-node-min-height, $fallbacks); } .mat-nested-tree-node { border-bottom-width: 0; }