31 lines
816 B
HTML
31 lines
816 B
HTML
<button
|
|
type="button"
|
|
class="topic-chip__button"
|
|
[class.topic-chip__button--without-count]="!hasCount"
|
|
[disabled]="disabled"
|
|
[attr.aria-pressed]="active ? 'true' : null"
|
|
[matTooltip]="buttonTooltip"
|
|
[matTooltipDisabled]="!buttonTooltip"
|
|
matTooltipClass="topic-chip-tooltip"
|
|
(click)="handleClick()">
|
|
<span
|
|
class="topic-chip__label"
|
|
[matTooltip]="labelTooltip"
|
|
[matTooltipDisabled]="!labelTooltip"
|
|
matTooltipClass="topic-chip-tooltip">
|
|
{{ label }}
|
|
</span>
|
|
|
|
@if (hasCount) {
|
|
<span
|
|
class="topic-chip__count"
|
|
[matTooltip]="normalizedCountTooltip"
|
|
[matTooltipDisabled]="!normalizedCountTooltip">
|
|
{{ count }}
|
|
@if (countIconName) {
|
|
<mat-icon class="topic-chip__count-icon">{{ countIconName }}</mat-icon>
|
|
}
|
|
</span>
|
|
}
|
|
</button>
|