nextra icon indicating copy to clipboard operation
nextra copied to clipboard

Feedback for posts layout heading levels

Open 87xie opened this issue 1 year ago • 0 comments

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.

image

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

87xie avatar May 12 '24 22:05 87xie