Skip to content

docs: prefer role-attribute since badge on section headings#5787

Merged
Artur- merged 1 commit into
mainfrom
fix-since-badge-section-headings
Jul 7, 2026
Merged

docs: prefer role-attribute since badge on section headings#5787
Artur- merged 1 commit into
mainfrom
fix-since-badge-section-headings

Conversation

@Artur-

@Artur- Artur- commented Jul 7, 2026

Copy link
Copy Markdown
Member

Follow-up to #5713. Per review feedback, section headings (== / ===) should annotate the since badge with a [role="since:..."] attribute on the line above the heading rather than wrapping the title in a #...# span. The span form remains required only on the top-level (=) heading, where the role attribute is not allowed, and for phrases in body text.

Follow-up to #5713. Per review feedback, section headings (== / ===)
should annotate the since badge with a [role="since:..."] attribute on
the line above the heading rather than wrapping the title in a #...#
span. The span form remains required only on the top-level (=) heading,
where the role attribute is not allowed, and for phrases in body text.

- Convert the two section headings #5713 had rewritten to span form
  (optimizing-tests, building-ui) to the role-attribute form.
- Update the CLAUDE.md Version References guidance to document both
  forms and when each applies.
@github-actions

github-actions Bot commented Jul 7, 2026

Copy link
Copy Markdown

Preview Deployment

This PR has been deployed for preview.

URL: https://docs-preview-pr-5787.fly.dev

Changed pages

Added content is highlighted in green; removed content is marked in red on each page.

Built from 2b745f4

@Artur-
Artur- merged commit 8f29b05 into main Jul 7, 2026
8 checks passed
@Artur-
Artur- deleted the fix-since-badge-section-headings branch July 7, 2026 09:59
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.

2 participants