Skip to content
Snippets Groups Projects
Commit 8620d451 authored by Sebastian Bergandy's avatar Sebastian Bergandy :keyboard:
Browse files

Merge branch 'OZG-7666-remove-resize-event-listener' into 'main'

OZG-7666 remove host listener

See merge request !52
parents 5095f299 b320f77e
Branches
Tags
1 merge request!52OZG-7666 remove host listener
......@@ -23,17 +23,7 @@
*/
import { isEscapeKey, isNotNull } from '@alfa-client/tech-shared';
import { InteractivityChecker } from '@angular/cdk/a11y';
import {
ComponentRef,
Directive,
ElementRef,
HostListener,
inject,
Input,
OnDestroy,
Renderer2,
ViewContainerRef,
} from '@angular/core';
import { ComponentRef, Directive, ElementRef, HostListener, inject, Input, OnDestroy, Renderer2, ViewContainerRef, } from '@angular/core';
import { isEmpty, isNull, uniqueId } from 'lodash-es';
import { TooltipComponent } from './tooltip.component';
......@@ -41,6 +31,7 @@ export enum TooltipPosition {
ABOVE = 'above',
BELOW = 'below',
}
const OUTLINE_INDENT = 4; // Outline offset (2) + outline width (2)
type TooltipAriaType = 'aria-describedby' | 'aria-labelledby';
......@@ -60,6 +51,7 @@ export class TooltipDirective implements OnDestroy {
this.createTooltip(value);
}
@Input() tooltipPosition: TooltipPosition = TooltipPosition.BELOW;
@Input() tooltipAriaType: TooltipAriaType = 'aria-describedby';
......@@ -93,7 +85,6 @@ export class TooltipDirective implements OnDestroy {
@HostListener('mouseleave')
@HostListener('focusout')
@HostListener('window:resize')
hideTooltip(): void {
this.hide();
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment