Skip to content

fix: remove heading level skips from the heading outline#1

Merged
adrianschmidt merged 1 commit into
limefrom
fix/heading-outline
Jun 12, 2026
Merged

fix: remove heading level skips from the heading outline#1
adrianschmidt merged 1 commit into
limefrom
fix/heading-outline

Conversation

@adrianschmidt

Copy link
Copy Markdown

Fork-side PR for jgroth#185 (fixes jgroth#184), following the FORK.md workflow: the branch is based on main, the identical change is PR'd upstream, and merging here releases it as @limetech/kompendium without waiting for upstream review.

See the upstream PR for the full description. In short: the "Examples" section heading becomes an h2, example titles become h3, and the debug route gains matching context headings — all keeping today's visual design. This lets lime-elements use h4 captions in example markup and ratchet all 18 heading-order entries out of its axe baseline.

This is the fork's first code change, so merging this PR doubles as the trial run of the automatic release pipeline.

🤖 Generated with Claude Code

The heading outline of the generated docs skipped levels
(h1 -> h3 -> h5), which violates axe's heading-order rule and makes
screen-reader navigation harder, and the debug route rendered examples
with no heading context at all, so no example markup heading level
could be correct on both pages.

- The "Examples" section heading is now an h2 instead of an h3, but is
  still sized like an h3 (the other section headings are unchanged,
  since they only follow h3 or lower headings).
- Example titles are now h3 instead of h5, but are still sized like h5
  via custom properties that the playground sets on the markdown
  component.
- The debug route now renders the same heading context as the component
  page: the component name as a small h2 and the example title as a
  small h3.

With this, example markup using h4 captions is correct on both the
component page and the debug page.

fix: jgroth#184
@adrianschmidt adrianschmidt merged commit 556a164 into lime Jun 12, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Heading outline has level skips (h1 → h3 → h5), and the debug route renders no heading context

2 participants