]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blobdiff - client/src/app/shared/misc/list-overflow.component.ts
add aria-hidden to non-descriptive icons (#2844)
[github/Chocobozzz/PeerTube.git] / client / src / app / shared / misc / list-overflow.component.ts
index c493ab79523a0ed8d111af0857217d6586cefb29..30f43ba43f37c8b88deb36cb162b23ec0194784e 100644 (file)
@@ -28,11 +28,12 @@ export interface ListOverflowItem {
   changeDetection: ChangeDetectionStrategy.OnPush
 })
 export class ListOverflowComponent<T extends ListOverflowItem> implements AfterViewInit {
+  @Input() items: T[]
+  @Input() itemTemplate: TemplateRef<{item: T}>
+
   @ViewChild('modal', { static: true }) modal: ElementRef
   @ViewChild('itemsParent', { static: true }) parent: ElementRef<HTMLDivElement>
   @ViewChildren('itemsRendered') itemsRendered: QueryList<ElementRef>
-  @Input() items: T[]
-  @Input() itemTemplate: TemplateRef<{item: T}>
 
   showItemsUntilIndexExcluded: number
   active = false
@@ -55,7 +56,7 @@ export class ListOverflowComponent<T extends ListOverflowItem> implements AfterV
     return !!this.showItemsUntilIndexExcluded
   }
 
-  @HostListener('window:resize', ['$event'])
+  @HostListener('window:resize')
   onWindowResize () {
     this.isInTouchScreen = !!this.screenService.isInTouchScreen()
     this.isInMobileView = !!this.screenService.isInMobileView()