Skip to content

Change Sidenav.Link children prop type #1587

@GomezIvann

Description

@GomezIvann

We have found a valid use case for which the API of the DxcSidenav.Link does not fit properly. This use case was to add a status tag, inline with the text of the Sidenav link, to let the user know the current state of each documentation page. Since the children of the Link are typed as string, that is currently not allowed.

The feature here is to replace this type with React.ReactNode.

Metadata

Metadata

Assignees

Labels

enhancementNew feature or requestjiraThis task is referenced in a story of Jira

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions