diff options
Diffstat (limited to 'client/src/app/shared/shared-main/angular')
-rw-r--r-- | client/src/app/shared/shared-main/angular/link.component.scss | 2 | ||||
-rw-r--r-- | client/src/app/shared/shared-main/angular/link.component.ts | 9 |
2 files changed, 7 insertions, 4 deletions
diff --git a/client/src/app/shared/shared-main/angular/link.component.scss b/client/src/app/shared/shared-main/angular/link.component.scss index f54240d31..d288afab1 100644 --- a/client/src/app/shared/shared-main/angular/link.component.scss +++ b/client/src/app/shared/shared-main/angular/link.component.scss | |||
@@ -1,4 +1,4 @@ | |||
1 | .no-class { | 1 | .inherit-parent { |
2 | color: inherit; | 2 | color: inherit; |
3 | text-decoration: inherit; | 3 | text-decoration: inherit; |
4 | position: inherit; | 4 | position: inherit; |
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 { | |||
14 | @Input() title?: string | 14 | @Input() title?: string |
15 | 15 | ||
16 | @Input() className?: string | 16 | @Input() className?: string |
17 | @Input() inheritParentCSS = false | ||
17 | 18 | ||
18 | @Input() tabindex: string | number | 19 | @Input() tabindex: string | number |
19 | 20 | ||
20 | builtClasses: string | 21 | builtClasses: string |
21 | 22 | ||
22 | ngOnInit () { | 23 | ngOnInit () { |
23 | this.builtClasses = this.className | 24 | this.builtClasses = this.className || '' |
24 | ? this.className | 25 | |
25 | : 'no-class' | 26 | if (!this.builtClasses || this.inheritParentCSS) { |
27 | this.builtClasses += ' inherit-parent' | ||
28 | } | ||
26 | } | 29 | } |
27 | } | 30 | } |