-
Notifications
You must be signed in to change notification settings - Fork 85
Closed
Description
The Card component title is always a h3 :
Lines 149 to 160 in 39140e5
| <h3 className={cx(fr.cx("fr-card__title"), classes.title)}> | |
| {linkProps !== undefined ? ( | |
| <Link | |
| {...linkProps} | |
| className={cx(linkProps.className, classes.link)} | |
| > | |
| {title} | |
| </Link> | |
| ) : ( | |
| title | |
| )} | |
| </h3> |
In order not to mess with the actual document hierarchy, we should be able to choose the title level we want.
This has already been done in the Accordion component with a titleAs property. A similar behaviour would be appropriate.
(I can work on the PR later)
Metadata
Metadata
Assignees
Labels
No labels