/
githubmirror
/
components
Обзор
Документация
Войти
/
githubmirror
/
components
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
src/material/chips/chip-option.html
37 строк
1 KB
Kristiyan Kostadinov
fix(material/chips): add presentation role to container elements (#33611)
31 июл 2026, 14:28
Не верифицирован
31 июл 2026, 14:28
b2f3a08
Код
Авторство
О чём код?
<span class="mat-mdc-chip-focus-overlay"></span> <span class="mdc-evolution-chip__cell mdc-evolution-chip__cell--primary" role="presentation"> <button matChipAction [_allowFocusWhenDisabled]="true" [attr.aria-description]="ariaDescription" [attr.aria-label]="ariaLabel" [attr.aria-selected]="ariaSelected" role="option"> @if (_hasLeadingGraphic()) { <span class="mdc-evolution-chip__graphic mat-mdc-chip-graphic"> <ng-content select="mat-chip-avatar, [matChipAvatar]"></ng-content> <span class="mdc-evolution-chip__checkmark"> <svg class="mdc-evolution-chip__checkmark-svg" viewBox="-2 -3 30 30" focusable="false" aria-hidden="true"> <path class="mdc-evolution-chip__checkmark-path" fill="none" stroke="currentColor" d="M1.73,12.91 8.1,19.28 22.79,4.59" /> </svg> </span> </span> } <span class="mdc-evolution-chip__text-label mat-mdc-chip-action-label"> <ng-content></ng-content> <span class="mat-mdc-chip-primary-focus-indicator mat-focus-indicator"></span> </span> </button> </span> @if (_hasTrailingIcon()) { <span class="mdc-evolution-chip__cell mdc-evolution-chip__cell--trailing" role="presentation"> <ng-content select="mat-chip-trailing-icon,[matChipRemove],[matChipTrailingIcon]"></ng-content> </span> }