fix: added option to disable tooltip on topic chip component
LocationBasedServices/smartguide/pipeline/head This commit looks good
LocationBasedServices/smartguide/pipeline/head This commit looks good
This commit is contained in:
+1
-1
@@ -198,11 +198,11 @@
|
||||
<div class="chart-topic-tabs">
|
||||
@for (topic of selectedTrendTopics(); track $index) {
|
||||
<app-topic-chip
|
||||
[topicId]="topic"
|
||||
[label]="getMappedTopic(topic)"
|
||||
[active]="activeChartTopic() === topic"
|
||||
[color]="getTopicColor(topic)"
|
||||
[disabled]="isTopicEmpty(topic)"
|
||||
[tooltipDisabled]="true"
|
||||
(chipClick)="updateActiveChartTopic(topic)">
|
||||
</app-topic-chip>
|
||||
}
|
||||
|
||||
@@ -6,6 +6,7 @@
|
||||
[attr.aria-pressed]="active() ? 'true' : null"
|
||||
[appComponentTooltip]="AppTopicTooltipComponent"
|
||||
[tooltipInputs]="tooltipInputs()"
|
||||
[tooltipDisabled]="tooltipDisabled() || disabled()"
|
||||
[tooltipMaxWidth]="'500px'"
|
||||
(click)="handleClick()">
|
||||
<span class="topic-chip__label">
|
||||
|
||||
@@ -99,6 +99,7 @@ export class TopicChipComponent {
|
||||
color = input<TopicChipColor>('purple');
|
||||
size = input<TopicChipSize>('normal');
|
||||
disabled = input<boolean>(false);
|
||||
tooltipDisabled = input<boolean>(false);
|
||||
active = input<boolean>(false);
|
||||
descriptionTooltipTarget = input<TopicChipTooltipTarget>('label');
|
||||
topicId = input<string | null | undefined>(undefined);
|
||||
|
||||
Reference in New Issue
Block a user