Skip to content

Commit 377792d

Browse files
feature(REPORT-518926): removed tag related codes
1 parent 62ee2a6 commit 377792d

3 files changed

Lines changed: 0 additions & 25 deletions

File tree

‎src/app/common/main-content/main-content.component.html‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
<div class="ej-header-wrapper">
33
<div class="ej-header-title-container">
44
<h1 class="ej-title" #title></h1>
5-
<span class="ej-category-pill" #categoryPill style="display: none;"></span>
65
</div>
76
<p class="ej-meta-description" #metaDescription></p>
87
</div>

‎src/app/common/main-content/main-content.component.scss‎

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -27,21 +27,6 @@
2727
padding: 0;
2828
}
2929

30-
.ej-category-pill {
31-
display: inline-flex;
32-
align-items: center;
33-
justify-content: center;
34-
padding: 4px 12px;
35-
font-size: 13px;
36-
font-weight: 500;
37-
line-height: normal;
38-
color: var(--blue-700);
39-
background-color: var(--blue-50);
40-
border: 1px solid var(--blue-100);
41-
border-radius: 9999px;
42-
text-transform: capitalize;
43-
}
44-
4530
.ej-meta-description {
4631
font-size: 14px;
4732
line-height: 22px;

‎src/app/common/main-content/main-content.component.ts‎

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,6 @@ export class MainContentComponent implements AfterViewInit {
3939
sourceData: SourceDataCollection[] = [];
4040
@ViewChild('title', { static: true }) title!: ElementRef<HTMLElement>;
4141
@ViewChild('metaDescription', { static: true }) metaDescription!: ElementRef<HTMLElement>;
42-
@ViewChild('categoryPill', { static: false }) categoryPill!: ElementRef<HTMLElement>;
4342
@ViewChild('tabContent', { static: true }) tabContent!: ElementRef<HTMLElement>;
4443
@ViewChild('demoTab', { static: true }) demoTab!: ElementRef<HTMLElement>;
4544
@ViewChild('sourceTab', { static: true }) sourceTab!: ElementRef<HTMLElement>;
@@ -68,14 +67,6 @@ export class MainContentComponent implements AfterViewInit {
6867
updateSampleDetails(sampleData: sampleInfo['samples'][0]): void {
6968
this.title.nativeElement.innerText = sampleData.sampleName;
7069
this.metaDescription.nativeElement.innerText = sampleData.metaData.description;
71-
if (this.categoryPill) {
72-
if (sampleData.category) {
73-
this.categoryPill.nativeElement.innerText = sampleData.category.charAt(0).toUpperCase() + sampleData.category.slice(1);
74-
this.categoryPill.nativeElement.style.display = 'inline-flex';
75-
} else {
76-
this.categoryPill.nativeElement.style.display = 'none';
77-
}
78-
}
7970
this.description.nativeElement.innerHTML = '';
8071
setTimeout(() => {
8172
const descriptionNode = this.tabContent.nativeElement.querySelector('#description');

0 commit comments

Comments
 (0)