Create reusable topic chip component
LocationBasedServices/smartguide/pipeline/head This commit looks good

This commit is contained in:
2026-06-20 17:33:49 +02:00
parent 2bd12e447a
commit 535e5d165f
9 changed files with 345 additions and 263 deletions
@@ -0,0 +1,27 @@
<button
type="button"
class="topic-chip__button"
[disabled]="disabled"
[attr.aria-pressed]="active ? 'true' : null"
[matTooltip]="buttonTooltip"
[matTooltipDisabled]="!buttonTooltip"
(click)="handleClick()">
<span
class="topic-chip__label"
[matTooltip]="labelTooltip"
[matTooltipDisabled]="!labelTooltip">
{{ 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>