mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-24 17:32:15 +00:00
[ACA-3899] Viewer thumbnails cannot be accessed by keyboard (#6150)
* accessibility * add thumb focus * close thumbs list event * fix eventbus listener * rename parameter * track previous focused element * implement FocusKeyManager * fix getGlobalEventBus is deprecated * keyboard navigation * set tabindex * setActiveItem on list change * update test
This commit is contained in:
@@ -66,4 +66,12 @@ describe('PdfThumbComponent', () => {
|
||||
done();
|
||||
});
|
||||
});
|
||||
|
||||
it('should focus element', () => {
|
||||
component.page = page;
|
||||
fixture.detectChanges();
|
||||
component.focus();
|
||||
|
||||
expect(fixture.debugElement.nativeElement.id).toBe(document.activeElement.id);
|
||||
});
|
||||
});
|
||||
|
Reference in New Issue
Block a user