nextra
nextra copied to clipboard
Feedback for posts layout heading levels
What
To better convey the structure of the posts page, I believe the heading level following an h1 element should be an h2 element, not an h3 element.
The current heading styles are defined in @tailwindcss/typography. If we directly change the heading level to h2, it will result in a different style from what we currently have. This issue aims to optimize accessibility while also maintaining style consistency.
Reference
- https://dequeuniversity.com/rules/axe/4.4/heading-order
- https://docs.gitlab.com/ee/development/fe_guide/accessibility/best_practices.html#provide-a-good-document-outline