skip to content

Language

Include the language component as the first element after the skip link (see the layout demo source).

Light theme

Dark theme

Invoke the dark theme on any component by applying class="ds-dark" to a container element.

Markup

<aside class="ds-language" aria-labelledby="language-label">
  <ul>
    <li id="language-label" aria-hidden="true">Language:</li>
    <li><a href="/english" lang="en" aria-current="true">English</a></li>
    <li><a href="/cymraeg" lang="cy">Cymraeg</a></li>
  </ul>
</aside>

Behavior

It is recommended the language component is removed from the top of the page once a language has been selected, to reduce clutter. This should be persisted across pages using localStorage or similar. The language options should be repreated in the footer and persist so they can be accessed at all times.