Skip to content

Title component inconsistent prop defaults #1439

@seanforyou23

Description

@seanforyou23

size prop is required without a default
headingLevel is not required, but has a default

We should align these two. headingLevel should be required as a default of h1 leads to non-semantic markup structures for users who go with defaults. It's not good for accessibility as it stands out of the box.

Further, we'd probably benefit from shortening the name from headingLevel to simply level.

Metadata

Metadata

Assignees

Labels

A11yBreaking change 💥this change requires a major release and has API changes.

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions