Skip to content

[a11y] Reduce Headings in components #1014

@simurai

Description

@simurai

Issue raised

As part of an accessibility audit, the following issue (internal link) came up: Reduce the use of Headings throughout the page.

Most issues could be resolved, but two Primer Brand components don't support this reduction.

Suggestion

  • Replace the semantic h4s of "What's Included" in PricingOptions. I think there is another effort to allow the text to be changed.
  • Allow FAQ items to accept div. Currently as prop only allows h1-h6.

Urgency

Not urgent, and might need a discussion first. If we wanna move forward, there might be more components where removing (or making it optional) of Headings might be preferred.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions