Skip to content
The design kit

Page chrome

Page chrome is the frame a demo draws around its content: the skip link, the strip across the top that says whose demo it is, and the footer. It puts the same links in the same places on every demo built with the design kit.

The frame around this page is the kit’s own. Each state of the strip and the footer is shown as a picture in both themes, since a second working strip would give this page two portfolio menus. The bands a landing page runs in inside the frame are on the Layouts page. To try the real ones in the other theme, choose Light or Dark next to Theme, at the top of the page.

The skip link is the first thing the keyboard reaches, out of sight until then. Reload this page and press Tab, or Option Tab in Safari, to see it. Pressing Enter on it takes you past the strip and the site’s own links, straight to the page’s main content.

It leads to the element whose id it names, main-content unless target names a different id, and that element takes tabindex="-1" so it can take focus.

The code, The skip link and the main content it leads to
Markup, The skip link and the main content it leads to
<a class="dk-skip" href="#main-content">Skip to content</a>
<main id="main-content" tabindex="-1">...</main>
React, The skip link and the main content it leads to
<>
    <SkipLink />
    <main id="main-content" tabIndex={-1}>
        ...
    </main>
</>
What the tests check for Skip link

These are the design kit’s own tests for this part, by the file each is in. They come from the source on GitHub as it was when this page was built, so they can be newer than the version named in the footer. Each file name opens that file as it was then.

Back to contents

Strip

What the tests check for Strip

These are the design kit’s own tests for this part, by the file each is in. They come from the source on GitHub as it was when this page was built, so they can be newer than the version named in the footer. Each file name opens that file as it was then.

Back to contents

What the tests check for Site header

These are the design kit’s own tests for this part, by the file each is in. They come from the source on GitHub as it was when this page was built, so they can be newer than the version named in the footer. Each file name opens that file as it was then.

Back to contents

What the tests check for Footer

These are the design kit’s own tests for this part, by the file each is in. They come from the source on GitHub as it was when this page was built, so they can be newer than the version named in the footer. Each file name opens that file as it was then.

Back to contents