From 2f25d97a7b204e53ec7395bab8dc5c1ded0f130f Mon Sep 17 00:00:00 2001 From: Aden Hassan Date: Fri, 15 Oct 2021 13:44:50 +0200 Subject: [PATCH] feat(skip to main content link): added so that tabindex is correct when skipt-to content is clicked Squashed commit of the following: commit 6376ab1134bd008da87f8682b5d4f58270b5e4f5 Merge: 8b58ad39 dd3fa8b5 Author: Aden Hassan Date: Fri Oct 15 12:18:16 2021 +0200 Merge branch 'develop' into feature/TV-645 commit 8b58ad39a598c6b4ea5bde49d48439168e531bf8 Merge: e0e65dec 3dfbf468 Author: Aden Hassan Date: Fri Oct 15 11:49:45 2021 +0200 Merge branch 'develop' into feature/TV-645 commit e0e65dec7c2d4419aafc4537f22ff42ba4111f10 Merge: 7b9a5c1b 9a23e8b0 Author: Aden Hassan Date: Fri Oct 15 11:31:11 2021 +0200 Merge branch 'develop' into feature/TV-645 commit 7b9a5c1b07bcabc1f85814a2a97ebea281dc0e20 Author: Aden Hassan Date: Fri Oct 15 11:25:11 2021 +0200 added tabindex -1 in directive to move tab-focus to main content --- .../src/app/shared/directives/anchor-link.directive.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/apps/mina-sidor-fa/src/app/shared/directives/anchor-link.directive.ts b/apps/mina-sidor-fa/src/app/shared/directives/anchor-link.directive.ts index e6fe8ff..a15239f 100644 --- a/apps/mina-sidor-fa/src/app/shared/directives/anchor-link.directive.ts +++ b/apps/mina-sidor-fa/src/app/shared/directives/anchor-link.directive.ts @@ -13,6 +13,7 @@ export class AnchorLinkDirective { const element = document.getElementById(elementId); if (element && element.focus) { + element.tabIndex = -1; element.focus(); }