Skip to content

USWDS - Feature: Set minimum heading count for in-page navigation #5967

@stphnwlkr

Description

@stphnwlkr

Is your feature request related to a problem? Please describe.

There are often times where having one or two headings on a page makes the in-page navigation feature of limited values, especially with only a small amount of content on the page.

Describe the solution you'd like

Ideally, we would have a data attribute data-minimum-heading-count that could be set so that the in-page navigation doesn't render if there are less than or equal to the value in the attribute. This would build on the feature request #5610

Describe alternatives you've considered

I am currently working with several WordPress table of contents plugins that have this feature, and this would be a great alternative for ensuring consistency in the coding.

Additional context

No response

Code of Conduct

Metadata

Metadata

Assignees

Type

No type

Projects

Status

Done

Relationships

None yet

Development

No branches or pull requests

Issue actions