Skip to content

Commit

Permalink
feat: accessibility - added "skip to main content" button - add tab-f…
Browse files Browse the repository at this point in the history
…ocus on main and prevent visual focus
  • Loading branch information
andreassteinmann committed Aug 30, 2024
1 parent ca5c655 commit b2ba24f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/app/app.component.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<header data-testing-id="page-header" class="top"><ish-header /></header>

<div class="wrapper">
<main class="container main-container" id="main-content">
<main class="container main-container" id="main-content" tabindex="-1">
<router-outlet />
</main>
</div>
Expand Down
1 change: 1 addition & 0 deletions src/styles/global/global.scss
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
min-height: 200px;
overflow-y: auto;
background: $color-inverse;
outline: none; // remove focus outline from container when using "skip to main content link"
}

.container {
Expand Down

0 comments on commit b2ba24f

Please sign in to comment.