Skip to content

Remove h-tags from post-header #5620

@gfellerph

Description

@gfellerph

The current heading structure that is rendered with the header poses some SEO concerns and creates an HTML structure that is not exactly spec compliant. As the header is the first element on the page, hidden headings are rendered before the real <h1> of the page and are not starting at level 1.

Heading Map of Swiss Post Cargo showing the first heading on the page is level 2

Tasks

  • Move hidden headings to appropriate aria descriptions
  • Rework main page heading to be rendered in a <p> tag instead of a heading

Metadata

Metadata

Assignees

Labels

requestThis is a request from a contributor outside of the core team.📦 componentsRelated to the @swisspost/design-system-components package

Type

Projects

Status

🚀 Done

Relationships

None yet

Development

No branches or pull requests

Issue actions