UNPKG

@amsterdam/design-system-css

Version:

Stylesheets for all components from the Amsterdam Design System and some general utilities. Use it to apply the visual design of the City of Amsterdam to your HTML elements or non-React components.

30 lines (21 loc) 1.71 kB
<!-- @license CC0-1.0 --> # Heading Introduces a page section and describes the following content. ## Guidelines - Use Headings to allow the user to quickly grasp the structure of the page. - All headings together represent the document’s structure. Users of screen readers may use headings to navigate the page – an incorrect hierarchy will confuse them. - Every page should contain one heading with level 1. Do not skip heading levels, e.g. a level 2 Heading should be followed by one with level 3, not level 4. The `level` prop doesn’t have a default value; the correct level should be determined for each instance. - Don’t use a Heading just for its visual appearance. ## Relevant WCAG requirements - [WCAG 1.3.1](https://www.w3.org/WAI/WCAG21/quickref/#qr-content-structure-separation-programmatic): Text that looks like a heading is also recognized as a heading by a computer. Using the correct heading level makes the page structure clear for all users. - [WCAG 2.4.1](https://www.w3.org/WAI/WCAG21/quickref/#qr-navigation-mechanisms-skip): Headings can be used to navigate to the next section with the keyboard. - [WCAG 2.4.6](https://www.w3.org/WAI/WCAG21/quickref/#headings-and-labels): Use headings to describe the purpose or subject of the underlying content. - [WCAG 2.4.10](https://www.w3.org/WAI/WCAG21/quickref/#qr-navigation-mechanisms-headings): Use headings to structure the content. ## References - [W3C - Headings](https://www.w3.org/WAI/tutorials/page-structure/headings/) - [W3C - Headings & labels](https://www.w3.org/TR/WCAG21/#headings-and-labels) - [A11Y project - Heading structure](https://www.a11yproject.com/posts/how-to-accessible-heading-structure/)