Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion projects/components/src/beta-tag/beta-tag.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,13 @@ import { Color } from '@hypertrace/common';
selector: 'ht-beta-tag',
changeDetection: ChangeDetectionStrategy.OnPush,
template: `
<ht-label-tag label="Beta" backgroundColor="${Color.Purple2}" labelColor="${Color.Purple5}"></ht-label-tag>
<ht-label-tag
htTooltip="Beta Feature"
class="beta-tag"
label="Beta"
backgroundColor="${Color.Purple2}"
labelColor="${Color.Purple5}"
></ht-label-tag>
`
})
export class BetaTagComponent {}
3 changes: 2 additions & 1 deletion projects/components/src/beta-tag/beta-tag.module.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
import { NgModule } from '@angular/core';
import { LabelTagModule } from '../label-tag/label-tag.module';
import { TooltipModule } from '../tooltip/tooltip.module';
import { BetaTagComponent } from './beta-tag.component';

@NgModule({
declarations: [BetaTagComponent],
imports: [LabelTagModule],
imports: [LabelTagModule, TooltipModule],
exports: [BetaTagComponent]
})
export class BetaTagModule {}
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,11 @@
margin-left: 14px;
display: flex;
flex-direction: row;
align-items: center;

.beta {
margin-left: 8px;
}
}

.icon {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ import { NavItemLinkConfig } from '../navigation-list.component';
<span *ngIf="featureState === '${FeatureState.Preview}'" class="soon-container">
<span class="soon">SOON</span>
</span>
<ht-beta-tag *ngIf="config.isBeta" class="beta"></ht-beta-tag>
</div>
</div>
`
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -84,5 +84,5 @@
}

.expanded {
width: 220px;
width: 228px;
}
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,7 @@ export interface NavItemLinkConfig {
matchPaths: string[]; // For now, default path is index 0
features?: string[];
replaceCurrentHistory?: boolean;
isBeta?: boolean;
}

export type FooterItemConfig = FooterItemLinkConfig;
Expand Down