Repository navigation
fix(site/src/pages): nest settings and template builder headings under their parents - #32017
Merged
Merged
Conversation
aqandrew
approved these changes
Nov 12, 2026
Comment on lines
+147
to
+148
| // README sections start at h2; nest them under the base template's h3. | ||
| components={{ h2: "h4", h3: "h5" }} |
Collaborator
There was a problem hiding this comment.
this is such a good API/solution, shoutout to react-markdown
jeremyruppel
temporarily deployed
to
docs-preview
November 12, 2026 21:53 — with
GitHub Actions
Inactive
This branch was previously deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes out-of-order headings that Deque flagged on Settings > Security, Settings > Account, and the template builder's "Configure base template" step.
SettingsHeaderTitledefaultsleveltoh1. The Password, Single Sign On, and Your groups sections passedhierarchy="secondary"withoutlevel="h2", which every other secondary call site already passes. They now render ash2under the page'sh1.##, but it renders under the base template name'sh3. TheMarkdowncomponentsprop now remapsh2toh4andh3toh5, and the existing size selectors move with them. Nothing changes visually: before and after screenshots of the newWithPrerequisitesstory are byte-identical.Closes DEQ-118
Closes DEQ-290
Closes DEQ-500
##/###changed from h2/h3 to h4/h5The changes are not visible (heading tags only, same classes), so there are no screenshots.
Grouping, decisions, and dropped review findings
Grouping. There are two root causes, both small, so they ship in one PR (12 non-test lines):
level="h2"onSettingsHeaderTitle. I kept the primitive's default as is because all ~20 other secondary call sites already passlevelexplicitly.site/because the README sources live undercoderd/templatebuilder/bases/, and every one of them uses only##and###inside the prerequisites markers.Verification. Vitest outline tests fail on
mainand pass on this branch. I ran axe-core (wcag2a/aa, 21, 22, and best-practice) on the affected stories:SecurityPageView/UsingOIDC,SecurityForm/Example,AccountUserGroups/Example, andBaseTemplateParametersStep/DefaultandWithPrerequisites. The headings now nest correctly, and computed font size, weight, and margins of the prerequisites headings matchmain.Dropped findings.
##and###. Mapping unused levels would be speculative.api/queries/templateBuilder.tsexports no key constant, and adding one is out of scope for this fix.templateBuilderBases().queryKeymatches how other stories read keys.Pre-existing, not changed.
EmptyStatehardcodes<h5>for its message. It is used app-wide, and on Security with OIDC and no providers it produces an axeheading-order(moderate) result after the Single Sign On h2. It is a separate root cause in a shared primitive, so I left it for its own ticket.🤖 Generated by Coder Agents on behalf of @jeremyruppel.