Skip to content

Fix heading levels on the listing card pages - #2229

Merged
cwickham merged 1 commit into
mainfrom
fix/listing-card-headings
Sep 29, 2026
Merged

cwickham merged 1 commit into
mainfrom
fix/listing-card-headings

Conversation

@cwickham

@cwickham cwickham commented Sep 28, 2026 •

Copy link
Copy Markdown
Member

The listing template ejs/links.ejs makes each card title an h4 and each subtitle an h6. The pages that use it go from the h1 title straight to h4, and axe reports heading-order on each card.

This PR:

  • Makes the card title an h2.
  • Makes the subtitle a paragraph. A subtitle is a description, not a heading.
  • Changes styles.css so the cards look the same as before.

Checked with an axe scan before and after on the six pages that use the template: all 19 heading-order instances are gone, and nothing is new or worse. The computed font size, weight, colour and spacing of the titles are the same in light and dark mode.

Check

Fixes axe heading-order on the Guide and Reference index pages.
CSS keeps the previous h4/h6 appearance.
@github-actions

Copy link
Copy Markdown
Contributor

📝 Preview Deployment

🔍 Full site preview: https://deploy-preview-2229.quarto.org

@cwickham
cwickham marked this pull request as ready for review September 29, 2026 15:06
@cwickham
cwickham merged commit c7634d3 into main Sep 29, 2026
3 checks passed
@cwickham
cwickham deleted the fix/listing-card-headings branch September 29, 2026 15:06
@github-actions

Copy link
Copy Markdown
Contributor

Successfully created backport PR for prerelease:

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.

1 participant