Skip to content
This repository has been archived by the owner on Jul 11, 2024. It is now read-only.

Commit

Permalink
Display H2 to H4 in TOC
Browse files Browse the repository at this point in the history
  • Loading branch information
remibetin committed Jun 20, 2024
1 parent 6070d21 commit fe9fc42
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 4 deletions.
2 changes: 1 addition & 1 deletion _config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ exclude:

# Build settings
markdown: kramdown
kramwdown:
kramdown:
toc_levels: 2..3
input: GFM
syntax_highlighter: rouge
Expand Down
2 changes: 1 addition & 1 deletion content/forms/instructions.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ navigation:
previous: /tutorials/forms/grouping/
next: /tutorials/forms/validation/


wcag_success_criteria:
- 1.3.1
- 2.4.6
Expand Down Expand Up @@ -56,6 +55,7 @@ Provide instructions to help users understand how to complete the form and use i
{% include box.html type="end" %}
{:/}

{::options toc_levels="2,3,4" /}
{% include_cached toc.html %}

**Important:** Screen readers often switch to “Forms Mode” when they are processing content within a `<form>` element. In this mode they usually only read aloud form elements such as `<input>`, `<select>`, `<textarea>`, `<legend>`, and `<label>`. It is critical to include form instructions in ways that can be read aloud. This will be explained further below.
Expand Down
1 change: 1 addition & 0 deletions content/forms/labels.md
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ Provide labels to identify all form controls, including text fields, checkboxes,
{% include box.html type="end" %}
{:/}

{::options toc_levels="2,3,4" /}
{% include_cached toc.html %}

Labels need to describe the purpose of the form control. This section of the tutorial describes how to provide labels that are properly associated with form controls. Later sections explain how to provide [instructions](../instructions), [validate user input](../validation), and [provide feedback](../notifications) to help users complete your form.
Expand Down
2 changes: 1 addition & 1 deletion content/forms/notifications.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ navigation:
previous: /tutorials/forms/validation/
next: /tutorials/forms/multi-page/


wcag_success_criteria:
- 3.3.1
- 3.3.3
Expand Down Expand Up @@ -50,6 +49,7 @@ Provide feedback to users about the results of their form submission, whether su
{% include box.html type="end" %}
{:/}

{::options toc_levels="2,3,4" /}
{% include_cached toc.html %}

Notifications have to be concise and clear. In particular, error messages should be easy to understand and should provide simple instructions on how they can be resolved. Success messages are also important to confirm task completion.
Expand Down
1 change: 1 addition & 0 deletions content/menus/flyout.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ People with reduced dexterity, such as tremors, often have trouble operating fly
{% include box.html type="end" %}
{:/}

{::options toc_levels="2,3,4" /}
{% include_cached toc.html %}

## Indicate submenus
Expand Down
2 changes: 1 addition & 1 deletion content/page-structure/content.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@ contributing_participants:
- see <a href="/WAI/tutorials/acknowledgements/">Acknowledgements</a>
support: Developed by the Education and Outreach Working Group (<a href="https://www.w3.org/groups/wg/eowg">EOWG</a>). Developed with support from the <a href="https://www.w3.org/WAI/ACT/">WAI-ACT project</a>, co-funded by the <strong>European Commission <abbr title="Information Society Technologies">IST</abbr> Programme</strong>.


wcag_success_criteria:
- 1.3.1
wcag_techniques:
Expand All @@ -47,6 +46,7 @@ Mark up website content semantically, so that the website is extensible. Valid s
{% include box.html type="end" %}
{:/}

{::options toc_levels="2,3,4" /}
{% include_cached toc.html %}

## Articles
Expand Down

0 comments on commit fe9fc42

Please sign in to comment.