diff options
Diffstat (limited to 'client/src/app/shared/shared-main')
6 files changed, 18 insertions, 19 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 | } |
diff --git a/client/src/app/shared/shared-main/feeds/feed.component.html b/client/src/app/shared/shared-main/feeds/feed.component.html index a748be873..7032c4cd0 100644 --- a/client/src/app/shared/shared-main/feeds/feed.component.html +++ b/client/src/app/shared/shared-main/feeds/feed.component.html | |||
@@ -1,4 +1,4 @@ | |||
1 | <div class="feed" *ngIf="syndicationItems && syndicationItems.length !== 0"> | 1 | <button class="feed border-0 p-0" *ngIf="syndicationItems && syndicationItems.length !== 0"> |
2 | <my-global-icon | 2 | <my-global-icon |
3 | role="button" aria-label="Open syndication dropdown" i18n-aria-label | 3 | role="button" aria-label="Open syndication dropdown" i18n-aria-label |
4 | *ngIf="syndicationItems.length !== 0" [ngbPopover]="feedsList" [autoClose]="true" placement="bottom left auto" | 4 | *ngIf="syndicationItems.length !== 0" [ngbPopover]="feedsList" [autoClose]="true" placement="bottom left auto" |
@@ -9,4 +9,4 @@ | |||
9 | <ng-template #feedsList> | 9 | <ng-template #feedsList> |
10 | <a *ngFor="let item of syndicationItems" [href]="item.url" target="_blank" rel="noopener noreferrer">{{ item.label }}</a> | 10 | <a *ngFor="let item of syndicationItems" [href]="item.url" target="_blank" rel="noopener noreferrer">{{ item.label }}</a> |
11 | </ng-template> | 11 | </ng-template> |
12 | </div> | 12 | </button> |
diff --git a/client/src/app/shared/shared-main/feeds/feed.component.scss b/client/src/app/shared/shared-main/feeds/feed.component.scss index bf1f4eeeb..25afe9c6c 100644 --- a/client/src/app/shared/shared-main/feeds/feed.component.scss +++ b/client/src/app/shared/shared-main/feeds/feed.component.scss | |||
@@ -3,15 +3,19 @@ | |||
3 | 3 | ||
4 | .feed { | 4 | .feed { |
5 | width: 100%; | 5 | width: 100%; |
6 | color: inherit; | ||
6 | 7 | ||
7 | a { | 8 | a { |
8 | color: #000; | 9 | color: pvar(--mainForegroundColor); |
9 | display: block; | 10 | display: block; |
10 | min-width: 100px; | 11 | min-width: 100px; |
12 | |||
13 | &:hover { | ||
14 | text-decoration: underline; | ||
15 | } | ||
11 | } | 16 | } |
12 | } | 17 | } |
13 | 18 | ||
14 | my-global-icon { | 19 | my-global-icon { |
15 | cursor: pointer; | ||
16 | width: 100%; | 20 | width: 100%; |
17 | } | 21 | } |
diff --git a/client/src/app/shared/shared-main/misc/help.component.html b/client/src/app/shared/shared-main/misc/help.component.html index 360a476f6..0252ad5cb 100644 --- a/client/src/app/shared/shared-main/misc/help.component.html +++ b/client/src/app/shared/shared-main/misc/help.component.html | |||
@@ -22,11 +22,9 @@ | |||
22 | </p> | 22 | </p> |
23 | </ng-template> | 23 | </ng-template> |
24 | 24 | ||
25 | <span | 25 | <button |
26 | role="button" | 26 | class="help-tooltip-button p-0 border-0 mx-1" |
27 | class="help-tooltip-button" | ||
28 | [title]="title" | 27 | [title]="title" |
29 | tabindex=0 | ||
30 | popoverClass="help-popover" | 28 | popoverClass="help-popover" |
31 | [attr.aria-pressed]="isPopoverOpened" | 29 | [attr.aria-pressed]="isPopoverOpened" |
32 | [ngbPopover]="tooltipTemplate" | 30 | [ngbPopover]="tooltipTemplate" |
@@ -36,4 +34,4 @@ | |||
36 | (onShown)="onPopoverShown()" | 34 | (onShown)="onPopoverShown()" |
37 | > | 35 | > |
38 | <my-global-icon [iconName]="iconName"></my-global-icon> | 36 | <my-global-icon [iconName]="iconName"></my-global-icon> |
39 | </span> | 37 | </button> |
diff --git a/client/src/app/shared/shared-main/misc/help.component.scss b/client/src/app/shared/shared-main/misc/help.component.scss index 6ccef9f2c..46f533f61 100644 --- a/client/src/app/shared/shared-main/misc/help.component.scss +++ b/client/src/app/shared/shared-main/misc/help.component.scss | |||
@@ -2,12 +2,6 @@ | |||
2 | @use '_mixins' as *; | 2 | @use '_mixins' as *; |
3 | 3 | ||
4 | .help-tooltip-button { | 4 | .help-tooltip-button { |
5 | @include disable-outline; | ||
6 | |||
7 | cursor: pointer; | ||
8 | border: 0; | ||
9 | margin: 5px; | ||
10 | |||
11 | my-global-icon { | 5 | my-global-icon { |
12 | @include apply-svg-color(pvar(--greyForegroundColor)); | 6 | @include apply-svg-color(pvar(--greyForegroundColor)); |
13 | 7 | ||