X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=client%2Fsrc%2Fapp%2Fshared%2Fshared-main%2Fangular%2Flink.component.ts;h=f2093496fdf375fb0d9f148c40f4d885164c4fc0;hb=4b70c278a960a8d43407f0039aa03d0b08b44f9c;hp=1f5975589472880e12df07c1d41d1108b57b5577;hpb=98bd5e2256bfdeba6d5ab07f0421acfde1a0de26;p=github%2FChocobozzz%2FPeerTube.git diff --git a/client/src/app/shared/shared-main/angular/link.component.ts b/client/src/app/shared/shared-main/angular/link.component.ts index 1f5975589..f2093496f 100644 --- a/client/src/app/shared/shared-main/angular/link.component.ts +++ b/client/src/app/shared/shared-main/angular/link.component.ts @@ -14,14 +14,17 @@ export class LinkComponent implements OnInit { @Input() title?: string @Input() className?: string + @Input() inheritParentCSS = false @Input() tabindex: string | number builtClasses: string ngOnInit () { - this.builtClasses = this.className - ? this.className - : 'no-class' + this.builtClasses = this.className || '' + + if (!this.builtClasses || this.inheritParentCSS) { + this.builtClasses += ' inherit-parent' + } } }