Go to main content
Go to KTH Intranet

Entrances

Tell users what are the three KTH entrances and where they are

When to use

Inside KPM.

How to use

You can get the entrances in two ways:

  1. Inject the KPM script, which includes the entrances. This script is under development
  2. Make the HTML markup yourself

How to make your own entrances

Use the code snippet for the menus in English or Swedish

Entrances menu when the current page is in Swedish
<nav class="kth-entrances" aria-label="Ingångar">
  <ul>
    <li>
      <a class="kth-menu-item" href="https://kth.se"> kth.se </a>
    </li>
    <li>
      <a class="kth-menu-item" href="https://kth.se/student"> Studentwebben </a>
    </li>
    <li>
      <a class="kth-menu-item" href="https://intra.kth.se" aria-current="true">
        Intranät
      </a>
    </li>
  </ul>
</nav>
Entrances menu when the current page is in English
<nav class="kth-entrances" aria-label="Entrances">
  <ul>
    <li>
      <a class="kth-menu-item" href="https://kth.se"> kth.se </a>
    </li>
    <li>
      <a class="kth-menu-item" href="https://kth.se/student"> Student web </a>
    </li>
    <li>
      <a class="kth-menu-item" href="https://intra.kth.se" aria-current="true">
        Intranet
      </a>
    </li>
  </ul>
</nav>

Explanation of the code snippets:

  • Entrances should be only links to KTH main site (https://kth.se), student web (https://kth.se/student) and intranet (https://intra.kth.se).
  • Use the <nav> tag as the container to indicate a navigation landmark.
  • Use aria-label attribute in the <nav> container to add an accessible name. The value of that attribute should be the same language as its content.
  • The aria-label in <nav> should not include the term “navigation”.
  • Use the menu item component for extra styling.
  • Mark the <a> with the current entrance with the attribute aria-current="true".

Research on this component