Commit 8d68477
fix(a11y): add H1 and correct heading structure on TSConfig Reference page
Bug: https://devdiv.visualstudio.com/DevDiv/_workitems/edit/2201717
- Add <h1>TSConfig Reference</h1> as visible page heading
(all other content pages have explicit H1; this page was missing one)
- Fix heading skip H2→H4 in showCategories: section group headings
now render as <h3> (or no heading for root-level groups, which use
<h3> directly for categories — eliminating H2→H4 skip)
- Fix heading skip H2→H5 for category names: now <h4> under sections,
<h3> at root level
- Fix heading skip H3→H5 in extends.md: ##### Example → #### Example
(en.md is regenerated from this source at build time)
- Update tsconfig.scss to match new heading element selectors
axe heading-order rule: 0 violations (was 2)
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>1 parent 89b479f commit 8d68477
3 files changed
Lines changed: 12 additions & 5 deletions
File tree
- packages
- tsconfig-reference/copy/en/options
- typescriptlang-org/src/templates
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
16 | | - | |
| 16 | + | |
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
3 | 7 | | |
4 | 8 | | |
5 | 9 | | |
| |||
53 | 57 | | |
54 | 58 | | |
55 | 59 | | |
56 | | - | |
| 60 | + | |
57 | 61 | | |
58 | 62 | | |
59 | 63 | | |
| |||
67 | 71 | | |
68 | 72 | | |
69 | 73 | | |
70 | | - | |
| 74 | + | |
71 | 75 | | |
72 | 76 | | |
73 | 77 | | |
| |||
Lines changed: 5 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
151 | 151 | | |
152 | 152 | | |
153 | 153 | | |
| 154 | + | |
154 | 155 | | |
155 | | - | |
| 156 | + | |
156 | 157 | | |
157 | 158 | | |
158 | | - | |
| 159 | + | |
159 | 160 | | |
160 | 161 | | |
161 | 162 | | |
| |||
178 | 179 | | |
179 | 180 | | |
180 | 181 | | |
| 182 | + | |
| 183 | + | |
181 | 184 | | |
182 | 185 | | |
183 | 186 | | |
| |||
0 commit comments