Browse Source

Add icon to indicate external link

pull/7081/head
Thomas Kaul 4 weeks ago
parent
commit
0b15fc224a
  1. 4
      libs/ui/src/lib/page-tabs/page-tabs.component.html
  2. 9
      libs/ui/src/lib/page-tabs/page-tabs.component.scss
  3. 4
      libs/ui/src/lib/page-tabs/page-tabs.component.ts

4
libs/ui/src/lib/page-tabs/page-tabs.component.html

@ -20,6 +20,10 @@
<ng-container
*ngTemplateOutlet="tabContent; context: { $implicit: tab }"
/>
<ion-icon
class="d-none d-sm-block external-link-icon ml-auto text-muted"
name="open-outline"
/>
</button>
} @else {
<a

9
libs/ui/src/lib/page-tabs/page-tabs.component.scss

@ -6,6 +6,10 @@
height: 100%;
width: 100%;
.external-link-icon {
font-size: 0.75rem;
}
@include mat.tabs-overrides(
(
active-indicator-height: 0,
@ -65,6 +69,11 @@
background-color: rgba(var(--palette-foreground-base), 0.05);
font-weight: 500;
}
.mdc-tab__content,
.mdc-tab__text-label {
width: 100%;
}
}
}
}

4
libs/ui/src/lib/page-tabs/page-tabs.component.ts

@ -8,6 +8,8 @@ import {
import { MatTabsModule } from '@angular/material/tabs';
import { RouterModule } from '@angular/router';
import { IonIcon } from '@ionic/angular/standalone';
import { addIcons } from 'ionicons';
import { openOutline } from 'ionicons/icons';
import { DeviceDetectorService } from 'ngx-device-detector';
import { TabConfiguration } from './interfaces/interfaces';
@ -27,5 +29,7 @@ export class GfPageTabsComponent {
public constructor() {
this.deviceType = this.deviceService.getDeviceInfo().deviceType;
addIcons({ openOutline });
}
}

Loading…
Cancel
Save